|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectContributionItem
com.ibm.etools.systems.files.ui.actions.SystemRemoteFileOpenWithMenu
Open with menu class for remote files
Field Summary | |
---|---|
protected IRemoteFile |
_remoteFile
|
static String |
ID
The id of this action. |
protected IWorkbenchPage |
page
|
protected IEditorRegistry |
registry
|
Constructor Summary | |
---|---|
SystemRemoteFileOpenWithMenu()
Constructs a new instance of SystemOpenWithMenu . |
Method Summary | |
---|---|
protected void |
createDefaultMenuItem(Menu menu,
IRemoteFile file)
Creates the menu item for clearing the current selection. |
protected void |
createMenuItem(Menu menu,
IEditorDescriptor descriptor,
IEditorDescriptor preferredEditor)
Creates the menu item for the editor descriptor. |
void |
fill(Menu menu,
int index)
|
protected IEditorDescriptor |
getDefaultEditor(IRemoteFile remoteFile)
|
protected Image |
getImage(IEditorDescriptor editorDesc)
Returns an image to show for the corresponding editor descriptor. |
protected IEditorDescriptor |
getPreferredEditor(IRemoteFile remoteFile)
Returns the preferred editor for the remote file. |
boolean |
isDynamic()
|
protected void |
openEditor(IRemoteFile file,
IEditorDescriptor descriptor)
|
protected void |
setDefaultEditor(IRemoteFile remoteFile,
String editorId)
|
void |
updateSelection(IStructuredSelection selection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IWorkbenchPage page
protected IRemoteFile _remoteFile
protected IEditorRegistry registry
public static final String ID
Constructor Detail |
public SystemRemoteFileOpenWithMenu()
SystemOpenWithMenu
.
Method Detail |
public void updateSelection(IStructuredSelection selection)
protected Image getImage(IEditorDescriptor editorDesc)
editorDesc
- the editor descriptor, or null for the system editor
protected void createMenuItem(Menu menu, IEditorDescriptor descriptor, IEditorDescriptor preferredEditor)
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
protected void openEditor(IRemoteFile file, IEditorDescriptor descriptor)
protected IEditorDescriptor getPreferredEditor(IRemoteFile remoteFile)
IDE.getDefaultEditor(IFile)
.
Otherwise, get the default editor associated with that remote file name from the editor registry.
remoteFile
- the remote file.
null
if none.protected IEditorDescriptor getDefaultEditor(IRemoteFile remoteFile)
protected void setDefaultEditor(IRemoteFile remoteFile, String editorId)
public void fill(Menu menu, int index)
public boolean isDynamic()
protected void createDefaultMenuItem(Menu menu, IRemoteFile file)
menu
- the menu to add the item tofile
- the file bing edited
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |