Class OpenFileAction

All Implemented Interfaces:
IAction, ISelectionChangedListener

public class OpenFileAction extends OpenSystemEditorAction
Standard action for opening an editor on the currently selected file resource(s).

Note that there is a different action for opening closed projects: OpenResourceAction.

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

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

  • Constructor Details

    • OpenFileAction

      public OpenFileAction(IWorkbenchPage page)
      Creates a new action that will open editors on the then-selected file resources. Equivalent to OpenFileAction(page,null).
      Parameters:
      page - the workbench page in which to open the editor
    • OpenFileAction

      public OpenFileAction(IWorkbenchPage page, IEditorDescriptor descriptor)
      Creates a new action that will open instances of the specified editor on the then-selected file resources.
      Parameters:
      page - the workbench page in which to open the editor
      descriptor - the editor descriptor, or null if unspecified