Class OpenSystemEditorAction

All Implemented Interfaces:
IAction, ISelectionChangedListener
Direct Known Subclasses:

public class OpenSystemEditorAction extends SelectionListenerAction
Standard action for opening a system editor on the currently selected file resource.

This class may be instantiated; it is not intended to be subclassed.

This class is not intended to be subclassed by clients.
  • Field Details

  • Constructor Details

    • OpenSystemEditorAction

      public OpenSystemEditorAction(IWorkbenchPage page)
      Creates a new action that will open system editors on the then-selected file resources.
      page - the workbench page in which to open the editor
  • Method Details

    • run

      public void run()
      Description copied from class: Action
      The default implementation of this IAction method does nothing. Subclasses should override this method if they do not need information from the triggering event, or override runWithEvent(Event) if they do.
      Specified by:
      run in interface IAction
      run in class Action
      See Also:
    • updateSelection

      protected boolean updateSelection(IStructuredSelection selection)
      The OpenSystemEditorAction implementation of this SelectionListenerAction method enables the action only if the selection contains just file resources.
      updateSelection in class BaseSelectionListenerAction
      selection - the new selection
      true if the action should be enabled for this selection, and false otherwise