Package com._1c.g5.v8.bm.integration
Interface IBmPlatformLocalEditingContext
- 
- All Superinterfaces:
- IBmPlatformEditingContext
 
 public interface IBmPlatformLocalEditingContext extends IBmPlatformEditingContext The local editing context.In addition to IBmEditingContextthe local editing context allows to navigate through a history of task execution. It can be reached by undo and redo operations. The undo/redo has a coupledcanUndo()/canRedo()operation which gives the information about the possibility to perform the undo/redo.The editing context can be saved. It means that the modified objects will be written on a disk in resources. The awareness whether editing context has 'unsaved' modifications can be reached by the calling isDirty().After all necessary tasks are executed the context should be disposed. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStateListener(IBmEditingContextStateListener listener)Adds the given state listener to the editing context.booleancanRedo()Checks if undo operation can be performed.booleancanUndo()Checks if undo operation can be performed.voiddispose()Disposes the editing context.org.eclipse.core.commands.operations.IUndoContextgetUndoContext()Returns theIUndoContextinstance corresponding to the editing context.booleanisDirty()Checks if the editing context is in the 'unsaved' state.booleanisDisposed()Checks whether the editing context is disposed.voidredo()Performs the redo operation.voidremoveStateListener(IBmEditingContextStateListener listener)Removes the given state listener from the editing context.voidsave()Saves the editing context asynchronously.voidsave(boolean sync)Saves the editing context.voidundo()Performs the undo operation.- 
Methods inherited from interface com._1c.g5.v8.bm.integration.IBmPlatformEditingContextexecute
 
- 
 
- 
- 
- 
Method Detail- 
canUndoboolean canUndo() Checks if undo operation can be performed.- Returns:
- trueif undo operation can be performed,- falseotherwise.
 
 - 
canRedoboolean canRedo() Checks if undo operation can be performed.- Returns:
- trueif redo operation can be performed,- falseotherwise.
 
 - 
undovoid undo() Performs the undo operation. Throws an exception if undo operation cannot be performed.
 - 
redovoid redo() Performs the redo operation. Throws an exception if redo operation cannot be performed.
 - 
isDirtyboolean isDirty() Checks if the editing context is in the 'unsaved' state.- Returns:
- trueif the editing context is in dirty state,- falseotherwise.
 
 - 
savevoid save() Saves the editing context asynchronously. It writes modified in tasks objects into resources.
 - 
savevoid save(boolean sync) Saves the editing context. It writes modified in tasks objects into resources.- Parameters:
- sync- The flag indicating whether the editing context will be saved synchronously.
 
 - 
disposevoid dispose() Disposes the editing context.
 - 
addStateListenervoid addStateListener(IBmEditingContextStateListener listener) Adds the given state listener to the editing context.- Parameters:
- listener- The state listener. May not be- null
 
 - 
removeStateListenervoid removeStateListener(IBmEditingContextStateListener listener) Removes the given state listener from the editing context.- Parameters:
- listener- The state listener. May not be- null.
 
 - 
getUndoContextorg.eclipse.core.commands.operations.IUndoContext getUndoContext() Returns theIUndoContextinstance corresponding to the editing context.- Returns:
- the IUndoContextinstance.
 
 - 
isDisposedboolean isDisposed() Checks whether the editing context is disposed.- Returns:
- trueif the editing context is disposed,- falseotherwise
 
 
- 
 
-