RSE
Release 1.0

org.eclipse.rse.files.ui.actions
Class SystemRemoteFileLineOpenWithMenu

java.lang.Object
  extended byorg.eclipse.jface.action.ContributionItem
      extended byorg.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu
          extended byorg.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


Field Summary
protected  IProject _associatedProject
           
protected  IRemoteLineReference _remoteLine
           
 
Fields inherited from class org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu
_remoteFile, ID, page, registry
 
Constructor Summary
SystemRemoteFileLineOpenWithMenu()
           
 
Method Summary
protected  void createProjectFileMenuItem(Menu menu, IEditorDescriptor descriptor, IEditorDescriptor preferredEditor)
          Creates the menu item for the editor descriptor.
 void fill(Menu menu, int index)
           
protected  IEditorDescriptor getDefaultTextEditor()
           
protected  IEditorRegistry getEditorRegistry()
           
protected  void handleGotoLine()
           
static void handleGotoLine(IRemoteFile remoteFile, int line, int charStart, int charEnd)
           
protected  void openEditor(IRemoteFile file, IEditorDescriptor descriptor)
           
protected  boolean openWorkspaceFile(IRemoteFile remoteFile, IRemoteOutput output, IEditorDescriptor desc)
          Open workspace file associated with IRemoteCommandShell.
static IRemoteFile outputToFile(IRemoteLineReference output)
           
 void updateSelection(IStructuredSelection selection)
           
 
Methods inherited from class org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu
createDefaultMenuItem, createMenuItem, getDefaultEditor, getEditorDescriptor, getImage, getPreferredEditor, isDynamic, setDefaultEditor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_remoteLine

protected IRemoteLineReference _remoteLine

_associatedProject

protected IProject _associatedProject
Constructor Detail

SystemRemoteFileLineOpenWithMenu

public SystemRemoteFileLineOpenWithMenu()
Method Detail

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 to
descriptor - the editor descriptor, or null for the system editor
preferredEditor - 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:

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.