org.eclipse.rse.files.ui.actions
Class SystemRemoteFileLineOpenWithMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu
org.eclipse.rse.files.ui.actions.SystemRemoteFileLineOpenWithMenu
- All Implemented Interfaces:
- IContributionItem
- Direct Known Subclasses:
- SystemRemoteFileSearchOpenWithMenu
- public class SystemRemoteFileLineOpenWithMenu
- extends SystemRemoteFileOpenWithMenu
Open With menu class for openning remote files to a certain line number
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update |
_remoteLine
protected IRemoteLineReference _remoteLine
_associatedProject
protected IProject _associatedProject
SystemRemoteFileLineOpenWithMenu
public SystemRemoteFileLineOpenWithMenu()
updateSelection
public void updateSelection(IStructuredSelection selection)
- Overrides:
updateSelection in class SystemRemoteFileOpenWithMenu
fill
public void fill(Menu menu,
int index)
- Specified by:
fill in interface IContributionItem- Overrides:
fill in class SystemRemoteFileOpenWithMenu
getEditorRegistry
protected IEditorRegistry getEditorRegistry()
- Overrides:
getEditorRegistry in class SystemRemoteFileOpenWithMenu
getDefaultTextEditor
protected IEditorDescriptor getDefaultTextEditor()
- Overrides:
getDefaultTextEditor in class SystemRemoteFileOpenWithMenu
createProjectFileMenuItem
protected void createProjectFileMenuItem(Menu menu,
IEditorDescriptor descriptor,
IEditorDescriptor preferredEditor)
- Creates the menu item for the editor descriptor.
- Parameters:
menu - the menu to add the item todescriptor - the editor descriptor, or null for the system editorpreferredEditor - the descriptor of the preferred editor, or null
outputToFile
public static IRemoteFile outputToFile(IRemoteLineReference output)
openEditor
protected void openEditor(IRemoteFile file,
IEditorDescriptor descriptor)
- Overrides:
openEditor in class SystemRemoteFileOpenWithMenu
handleGotoLine
protected void handleGotoLine()
handleGotoLine
public static void handleGotoLine(IRemoteFile remoteFile,
int line,
int charStart,
int charEnd)
openWorkspaceFile
protected boolean openWorkspaceFile(IRemoteFile remoteFile,
IRemoteOutput output,
IEditorDescriptor desc)
- Open workspace file associated with IRemoteCommandShell. If there is no associated project
return.
- Parameters:
remoteFile - output -
- Returns:
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.