Class MarkerViewHandler

    • Constructor Detail

      • MarkerViewHandler

        public MarkerViewHandler()
    • Method Detail

      • 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 history
        title - a title (or null) used to log failure
        monitor - the progress monitor to be used (or null) during the operation.
        uiInfo - the IAdaptable (or null) provided by the caller in order to supply UI information for prompting the user if necessary. When this parameter is not null, 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 using Display.syncExec(Runnable) so that it can be called outside of the UI Thread.
        Parameters:
        event - the event
        Returns:
        IMarker[]