Package org.eclipse.ui.views.markers
Class MarkerViewHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.views.markers.MarkerViewHandler
MarkerViewHandler is the abstract class of the handlers for the
MarkerSupportView
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(IUndoableOperation operation, String title, IProgressMonitor monitor, IAdaptable uiInfo) Execute the specified undoable operationIMarker[]
getSelectedMarkers
(ExecutionEvent event) Get the selected markers for the receiver in the view from event.getView
(ExecutionEvent event) Get the view this event occurred on.Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
MarkerViewHandler
public MarkerViewHandler()
-
-
Method Details
-
getView
Get the view this event occurred on.- Parameters:
event
- the event- Returns:
MarkerSupportView
ornull
-
execute
public void execute(IUndoableOperation operation, String title, IProgressMonitor monitor, IAdaptable uiInfo) Execute the specified undoable operation- Parameters:
operation
- the operation to be executed and then added to the historytitle
- a title (ornull
) used to log failuremonitor
- the progress monitor to be used (ornull
) during the operation.uiInfo
- the IAdaptable (ornull
) provided by the caller in order to supply UI information for prompting the user if necessary. When this parameter is notnull
, it should minimally contain an adapter for the org.eclipse.swt.widgets.Shell.class.
-
getSelectedMarkers
Get the selected markers for the receiver in the view from event. If the view cannot be found then return an empty array. This is run usingDisplay.syncExec(Runnable)
so that it can be called outside of the UIThread
.- Parameters:
event
- the event- Returns:
IMarker
[]
-