org.topbraidcomposer.core.change
Class TBCChangeEngine

java.lang.Object
  extended by org.topbraid.core.change.AbstractChangeEngine
      extended by org.topbraidcomposer.core.change.TBCChangeEngine
All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoContext, IChangeEngine

public class TBCChangeEngine
extends AbstractChangeEngine


Field Summary
 boolean directMode
          A flag to always force the execution of changes in the current thread.
 
Fields inherited from class org.topbraid.core.change.AbstractChangeEngine
currentOperation, operationHistory, silentMode
 
Constructor Summary
TBCChangeEngine(org.eclipse.ui.IWorkbench workbench)
           
 
Method Summary
 void asynchExecAfterNextOperation(java.lang.Runnable r)
           
protected  ChangeOperation createChangeOperation(IChange change)
           
 void execute(ChangeOperation operation, org.eclipse.core.runtime.IProgressMonitor monitor, java.lang.Runnable andThen)
           
protected  void postProcessOperation(ChangeOperation operation, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void redo(ChangeOperation operation)
           
protected  void runAndThen(ChangeOperation operation, java.lang.Runnable andThen)
           
 void undo(ChangeOperation operation)
           
 void updateInferenceModels(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.topbraid.core.change.AbstractChangeEngine
addChangeEngineListener, addRenamingChangeListener, clearHistory, commitBufferingGraph, dispose, execute, execute, execute, execute, execute, getInstanceCountProvider, getLabel, getOperationHistory, getOperations, getUndoContext, matches, notifyListeners, notifyRenamingChangeListeners, recordTripleChange, removeChangeEngineListener, removeRenamingChangeListener, reportGraphChange, setIgnoreMode, updateInferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directMode

public boolean directMode
A flag to always force the execution of changes in the current thread. This is needed to support mechanisms such as the LZX servlet.

Constructor Detail

TBCChangeEngine

public TBCChangeEngine(org.eclipse.ui.IWorkbench workbench)
Method Detail

asynchExecAfterNextOperation

public void asynchExecAfterNextOperation(java.lang.Runnable r)

createChangeOperation

protected ChangeOperation createChangeOperation(IChange change)
Overrides:
createChangeOperation in class AbstractChangeEngine

execute

public void execute(ChangeOperation operation,
                    org.eclipse.core.runtime.IProgressMonitor monitor,
                    java.lang.Runnable andThen)
Specified by:
execute in interface IChangeEngine
Specified by:
execute in class AbstractChangeEngine

postProcessOperation

protected void postProcessOperation(ChangeOperation operation,
                                    org.eclipse.core.runtime.IProgressMonitor monitor)
Overrides:
postProcessOperation in class AbstractChangeEngine

redo

public void redo(ChangeOperation operation)
          throws org.eclipse.core.commands.ExecutionException
Specified by:
redo in interface IChangeEngine
Overrides:
redo in class AbstractChangeEngine
Throws:
org.eclipse.core.commands.ExecutionException

runAndThen

protected void runAndThen(ChangeOperation operation,
                          java.lang.Runnable andThen)
Overrides:
runAndThen in class AbstractChangeEngine

undo

public void undo(ChangeOperation operation)
          throws org.eclipse.core.commands.ExecutionException
Specified by:
undo in interface IChangeEngine
Overrides:
undo in class AbstractChangeEngine
Throws:
org.eclipse.core.commands.ExecutionException

updateInferenceModels

public void updateInferenceModels(org.eclipse.core.runtime.IProgressMonitor monitor)