public abstract class AbstractWorkspaceHandler
extends org.eclipse.core.commands.AbstractHandler
Constructor and Description |
---|
AbstractWorkspaceHandler(String jobName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(org.eclipse.core.commands.ExecutionEvent event) |
protected abstract void |
execute(org.eclipse.core.commands.ExecutionEvent event,
org.eclipse.emf.cdo.workspace.CDOWorkspace workspace,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute the given event.
|
String |
getJobName()
Get the display name of the current job.
|
protected static void |
refreshDirtyState(org.eclipse.core.commands.ExecutionEvent event)
Refresh the dirty state of the
CDOWorkspace . |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
public AbstractWorkspaceHandler(String jobName)
jobName
- display job namepublic final String getJobName()
public final Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
IHandler.execute(org.eclipse.core.commands.ExecutionEvent)
protected abstract void execute(org.eclipse.core.commands.ExecutionEvent event, org.eclipse.emf.cdo.workspace.CDOWorkspace workspace, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.commands.ExecutionException
event
- the eventworkspace
- the CDOWorkspace
monitor
- a progress monitororg.eclipse.core.commands.ExecutionException
- if execution failsprotected static void refreshDirtyState(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
CDOWorkspace
.event
- the eventorg.eclipse.core.commands.ExecutionException
- if refresh failsCopyright © 2019. All rights reserved.