Interface IApplicationEditingContext
- 
 public interface IApplicationEditingContextThe editing context for the Application Editors infrastructure.It allows to execute tasks and navigate through execution history, i.e. it allows to perform undo/redo actions. Also it provides an easy way to save or rollback(see dispose()) the editor state.- Since:
- 1.0.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(IApplicationEditingContextListener listener)Adds the listener.voiddispose()Disposes the editing context.voidexecute(IApplicationEditorTask task)Executes the specified task.org.eclipse.core.commands.operations.IUndoContextgetUndoContext()Returns the undo context.booleanisDirty()Returnstrueif the editing context is dirty.voidremoveListener(IApplicationEditingContextListener listener)Removes the listener.voidsave()Saves the editing context.
 
- 
- 
- 
Method Detail- 
executevoid execute(IApplicationEditorTask task) Executes the specified task.- Parameters:
- task- the task, cannot be- null.
 
 - 
isDirtyboolean isDirty() Returnstrueif the editing context is dirty.- Returns:
- trueif the editing context is dirty,- false- otherwise.
 
 - 
savevoid save() Saves the editing context.
 - 
disposevoid dispose() Disposes the editing context.
 - 
getUndoContextorg.eclipse.core.commands.operations.IUndoContext getUndoContext() Returns the undo context.- Returns:
- the undo context, never null.
 
 - 
addListenervoid addListener(IApplicationEditingContextListener listener) Adds the listener.- Parameters:
- listener- the listener to add, cannot be- null.
- See Also:
- IApplicationEditingContextListener
 
 - 
removeListenervoid removeListener(IApplicationEditingContextListener listener) Removes the listener.- Parameters:
- listener- the listener to remove, cannot be- null.
- See Also:
- IApplicationEditingContextListener
 
 
- 
 
-