Class ApplicationEditingContext
java.lang.Object
com.e1c.g5.dt.internal.applications.ui.editor.ApplicationEditingContext
- All Implemented Interfaces:
IApplicationEditingContext
The
IApplicationEditingContext
implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the listener.void
dispose()
Disposes the editing context.void
Executes the specified task.org.eclipse.core.commands.operations.IUndoContext
Returns the undo context.boolean
isDirty()
Returnstrue
if the editing context is dirty.void
Removes the listener.void
save()
Saves the editing context.
-
Constructor Details
-
ApplicationEditingContext
public ApplicationEditingContext()Creates a new editing context.
-
-
Method Details
-
execute
Description copied from interface:IApplicationEditingContext
Executes the specified task.- Specified by:
execute
in interfaceIApplicationEditingContext
- Parameters:
task
- the task, cannot benull
.
-
isDirty
public boolean isDirty()Description copied from interface:IApplicationEditingContext
Returnstrue
if the editing context is dirty.- Specified by:
isDirty
in interfaceIApplicationEditingContext
- Returns:
true
if the editing context is dirty,false
- otherwise.
-
save
public void save()Description copied from interface:IApplicationEditingContext
Saves the editing context.- Specified by:
save
in interfaceIApplicationEditingContext
-
dispose
public void dispose()Description copied from interface:IApplicationEditingContext
Disposes the editing context.- Specified by:
dispose
in interfaceIApplicationEditingContext
-
getUndoContext
public org.eclipse.core.commands.operations.IUndoContext getUndoContext()Description copied from interface:IApplicationEditingContext
Returns the undo context.- Specified by:
getUndoContext
in interfaceIApplicationEditingContext
- Returns:
- the undo context, never
null
.
-
addListener
Description copied from interface:IApplicationEditingContext
Adds the listener.- Specified by:
addListener
in interfaceIApplicationEditingContext
- Parameters:
listener
- the listener to add, cannot benull
.- See Also:
-
removeListener
Description copied from interface:IApplicationEditingContext
Removes the listener.- Specified by:
removeListener
in interfaceIApplicationEditingContext
- Parameters:
listener
- the listener to remove, cannot benull
.- See Also:
-