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
-- Returns:
MarkerSupportView
ornull
-
execute
public void execute(IUndoableOperation operation, String title, IProgressMonitor monitor, IAdaptable uiInfo)
Execute the specified undoable operation- Parameters:
operation
-title
-monitor
-uiInfo
-
-
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
-- Returns:
IMarker
[]
-
-