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 IApplicationEditorTaskcreateTask(String name, Consumer<org.eclipse.core.runtime.IProgressMonitor> task) CreatesIApplicationEditorTask.static IApplicationEditorTaskcreateTask(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 ornullif 'undo' is not allowed.- Returns:
- an
IApplicationEditorTaskinstance, 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
IApplicationEditorTaskinstance, nevernull.
-