Class ApplicationEditorTasks
java.lang.Object
com.e1c.g5.dt.applications.ui.editor.ApplicationEditorTasks
The helper class for simplified
IApplicationEditorTask
creation.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic IApplicationEditorTask
createTask
(String name, Consumer<org.eclipse.core.runtime.IProgressMonitor> task) CreatesIApplicationEditorTask
.static IApplicationEditorTask
createTask
(String name, Consumer<org.eclipse.core.runtime.IProgressMonitor> task, Consumer<org.eclipse.core.runtime.IProgressMonitor> undoTask) Creates undoableIApplicationEditorTask
.
-
Method Details
-
createTask
public static IApplicationEditorTask createTask(String name, Consumer<org.eclipse.core.runtime.IProgressMonitor> task, Consumer<org.eclipse.core.runtime.IProgressMonitor> undoTask) Creates undoableIApplicationEditorTask
.- Parameters:
name
- the localized name of the task, cannot benull
.task
- the task, cannot benull
.undoTask
- the undo task ornull
if 'undo' is not allowed.- Returns:
- an
IApplicationEditorTask
instance, nevernull
.
-
createTask
public static IApplicationEditorTask createTask(String name, Consumer<org.eclipse.core.runtime.IProgressMonitor> task) CreatesIApplicationEditorTask
.- Parameters:
name
- the localized name of the task, cannot benull
.task
- the task, cannot benull
.- Returns:
- an
IApplicationEditorTask
instance, nevernull
.
-