Interface IApplicationEditorTask
-
public interface IApplicationEditorTaskThe application editor task.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetName()Returns the localized name of the task.booleanisUndoable()Returnstrueif task can be undone.default voidredo(org.eclipse.core.runtime.IProgressMonitor monitor)Redoes the taskvoidrun(org.eclipse.core.runtime.IProgressMonitor monitor)Runs the task.voidundo(org.eclipse.core.runtime.IProgressMonitor monitor)Undoes the task.
-
-
-
Method Detail
-
getName
String getName()
Returns the localized name of the task.- Returns:
- the localized name of the task, never
null.
-
run
void run(org.eclipse.core.runtime.IProgressMonitor monitor)
Runs the task.- Parameters:
monitor- the progress monitor, cannot benull.
-
isUndoable
boolean isUndoable()
Returnstrueif task can be undone.- Returns:
trueif task can be undone,false- otherwise.
-
undo
void undo(org.eclipse.core.runtime.IProgressMonitor monitor)
Undoes the task.- Parameters:
monitor- the progress monitor, cannot benull.
-
redo
default void redo(org.eclipse.core.runtime.IProgressMonitor monitor)
Redoes the task- Parameters:
monitor- the progress monitor, cannot benull.
-
-