| |
|
| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.OpenSystemEditorAction
All known Subclasses: org.eclipse.ui.actions.OpenFileAction,
OpenSystemEditorAction | public class OpenSystemEditorAction extends SelectionListenerAction (Code) | | 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.
|
Field Summary | |
final public static String | ID The id of this action. |
Constructor Summary | |
public | OpenSystemEditorAction(IWorkbenchPage page) Creates a new action that will open system editors on the then-selected file
resources. |
Method Summary | |
final IWorkbenchPage | getWorkbenchPage() Return the workbench page to open the editor in. | void | openFile(IFile file) Opens a system editor on the given file resource. | public void | run() | protected boolean | updateSelection(IStructuredSelection selection) The OpenSystemEditorAction implementation of this
SelectionListenerAction method enables the action only
if the selection contains just file resources. |
ID | final public static String ID(Code) | | The id of this action.
|
OpenSystemEditorAction | public OpenSystemEditorAction(IWorkbenchPage page)(Code) | | Creates a new action that will open system editors on the then-selected file
resources.
Parameters: page - the workbench page in which to open the editor |
getWorkbenchPage | final IWorkbenchPage getWorkbenchPage()(Code) | | Return the workbench page to open the editor in.
the workbench page to open the editor in |
openFile | void openFile(IFile file)(Code) | | Opens a system editor on the given file resource.
Parameters: file - the file resource |
updateSelection | protected boolean updateSelection(IStructuredSelection selection)(Code) | | The OpenSystemEditorAction implementation of this
SelectionListenerAction method enables the action only
if the selection contains just file resources.
|
|
|
|