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
-
public abstract class MarkerViewHandler extends AbstractHandler
MarkerViewHandler is the abstract class of the handlers for theMarkerSupportView
- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description MarkerViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.MarkerSupportView
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
-
-
-
-
Method Detail
-
getView
public MarkerSupportView getView(ExecutionEvent event)
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
public IMarker[] getSelectedMarkers(ExecutionEvent event)
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
[]
-
-