|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor org.eclipse.emf.henshin.interpreter.impl.LoggingApplicationMonitor
public class LoggingApplicationMonitor
ApplicationMonitor
implementation with logging capabilities.
Field Summary | |
---|---|
protected URI |
autoSaveURI
|
protected PrintStream |
logStream
|
protected int |
maxSteps
|
protected boolean |
onlyFailures
|
protected boolean |
onlyRuleApplications
|
protected boolean |
onlySuccesses
|
protected boolean |
onlyUnitApplications
|
protected int |
step
|
Fields inherited from class org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor |
---|
canceled, undo |
Constructor Summary | |
---|---|
LoggingApplicationMonitor()
|
Method Summary | |
---|---|
void |
cancel()
Cancel the current application (no undo). |
void |
cancelAndUndo()
Cancel and undo the current application. |
protected void |
logStep(UnitApplication application,
boolean success,
String stepKind)
|
void |
notifyExecute(UnitApplication application,
boolean success)
Notify this monitor that a unit application has been executed. |
void |
notifyRedo(UnitApplication application,
boolean success)
Notify this monitor that a unit application has been redone. |
void |
notifyUndo(UnitApplication application,
boolean success)
Notify this monitor that a unit application has been undone. |
void |
setAutoSaveURI(URI autoSaveURI)
|
void |
setLogStream(PrintStream logStream)
|
void |
setMaxSteps(int maxSteps)
|
void |
setOnlyFailures(boolean onlyFailures)
|
void |
setOnlyRuleApplications(boolean onlyRuleApplications)
|
void |
setOnlySuccesses(boolean onlySuccesses)
|
void |
setOnlyUnitApplications(boolean onlyUnitApplications)
|
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.BasicApplicationMonitor |
---|
isCanceled, isUndo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PrintStream logStream
protected boolean onlyRuleApplications
protected boolean onlyUnitApplications
protected boolean onlySuccesses
protected boolean onlyFailures
protected URI autoSaveURI
protected int step
protected int maxSteps
Constructor Detail |
---|
public LoggingApplicationMonitor()
Method Detail |
---|
public void cancel()
ApplicationMonitor
cancel
in interface ApplicationMonitor
cancel
in class BasicApplicationMonitor
public void cancelAndUndo()
ApplicationMonitor
cancelAndUndo
in interface ApplicationMonitor
cancelAndUndo
in class BasicApplicationMonitor
public void notifyExecute(UnitApplication application, boolean success)
ApplicationMonitor
notifyExecute
in interface ApplicationMonitor
notifyExecute
in class BasicApplicationMonitor
application
- Executed unit application.success
- Whether the unit application was successful.public void notifyUndo(UnitApplication application, boolean success)
ApplicationMonitor
notifyUndo
in interface ApplicationMonitor
notifyUndo
in class BasicApplicationMonitor
application
- Undone unit application.public void notifyRedo(UnitApplication application, boolean success)
ApplicationMonitor
notifyRedo
in interface ApplicationMonitor
notifyRedo
in class BasicApplicationMonitor
application
- Redone unit application.success
- Whether the unit application was successfully redone.protected void logStep(UnitApplication application, boolean success, String stepKind)
public void setLogStream(PrintStream logStream)
public void setOnlyRuleApplications(boolean onlyRuleApplications)
public void setOnlyUnitApplications(boolean onlyUnitApplications)
public void setOnlySuccesses(boolean onlySuccesses)
public void setOnlyFailures(boolean onlyFailures)
public void setAutoSaveURI(URI autoSaveURI)
public void setMaxSteps(int maxSteps)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |