Class ApplicationEditorTasks
- java.lang.Object
-
- com.e1c.g5.dt.applications.ui.editor.ApplicationEditorTasks
-
public final class ApplicationEditorTasks extends Object
The helper class for simplifiedIApplicationEditorTask
creation.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
.
-
-