Remote Systems
v6.4.1

com.ibm.etools.systems.files.ui.actions
Class SystemRemoteFileLineOpenWithMenu

java.lang.Object
  extended byContributionItem
      extended bycom.ibm.etools.systems.files.ui.actions.SystemRemoteFileOpenWithMenu
          extended bycom.ibm.etools.systems.files.ui.actions.SystemRemoteFileLineOpenWithMenu
Direct Known Subclasses:
SystemRemoteFileSearchOpenWithMenu

public class SystemRemoteFileLineOpenWithMenu
extends SystemRemoteFileOpenWithMenu

Open With menu class for openning remote files to a certain line number

See Also:
Serialized Form

Field Summary
protected  IProject _associatedProject
           
protected  IRemoteLineReference _remoteLine
           
 
Fields inherited from class com.ibm.etools.systems.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  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 com.ibm.etools.systems.files.ui.actions.SystemRemoteFileOpenWithMenu
createDefaultMenuItem, createMenuItem, getDefaultEditor, getImage, getPreferredEditor, isDynamic, setDefaultEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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)
Overrides:
fill 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:

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.