| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.OpenSystemEditorAction org.eclipse.ui.actions.OpenFileAction
OpenFileAction | public class OpenFileAction extends OpenSystemEditorAction (Code) | | 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.
|
Field Summary | |
final public static String | ID The id of this action. |
Constructor Summary | |
public | OpenFileAction(IWorkbenchPage page) Creates a new action that will open editors on the then-selected file
resources. | public | OpenFileAction(IWorkbenchPage page, IEditorDescriptor descriptor) Creates a new action that will open instances of the specified editor on
the then-selected file resources. |
Method Summary | |
boolean | ensureFileLocal(IFile file) Ensures that the contents of the given file resource are local. | void | openFile(IFile file) Opens an editor on the given file resource. |
ID | final public static String ID(Code) | | The id of this action.
|
OpenFileAction | public OpenFileAction(IWorkbenchPage page)(Code) | | 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)(Code) | | 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 Parameters: descriptor - the editor descriptor, or null if unspecified |
ensureFileLocal | boolean ensureFileLocal(IFile file)(Code) | | Ensures that the contents of the given file resource are local.
Parameters: file - the file resource true if the file is local, and false ifit could not be made local for some reason |
openFile | void openFile(IFile file)(Code) | | Opens an editor on the given file resource.
Parameters: file - the file resource |
Fields inherited from org.eclipse.ui.actions.OpenSystemEditorAction | final public static String ID(Code)(Java Doc)
|
|
|