diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/popup.html b/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/popup.html deleted file mode 100755 index 3c39a717d93..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/popup.html +++ /dev/null @@ -1,146 +0,0 @@ - - - -
- - - - -The org.eclipse.rse.ui.popupMenus extension point is defined in the -plugin org.eclipse.rse.ui, and it is patterned -after Eclipse's org.eclipse.ui.popupMenus extension point. However, it is -both simplified and extended specifically for remote objects. -
-The primary element in the markup for this extension point is the <objectContribution> element, -which scopes the remote objects to which the child elements apply: -
-Within each <objectContribution> element are zero or more <menu> elements for -optionally defining cascading submenus, and <action> elements for the actual actions. -To have the actions show up in a cascading menu, use the <menu> element with these -attributes: -
-Within each <menu> element are one or more <separator> elements that partition the cascading -menu into groups. Groups are simply named physical areas of the menu. The order in which they are defined is the order they -appear in the menu. Actions always go into groups. Groups avoid the need to specify relative information to identify where -within a pop-up menu to place actions. There is only one attribute for this element: -
-Finally, within <objectContribution> elements are one or more <action> elements identifying the -actual actions, each of which only show up if the scoping criteria is met for that parent <objectContribution> -element. The attributes for <action> elements are: -
--The path attribute for the <menu> element, and the menubarPath attribute for the <action> -element, are the most difficult to master. The rules are reasonably simple though: -
-To use this extension point you will create a class that extends the -SystemAbstractPopupMenuExtensionAction class in the -package org.eclipse.rse.ui.actions. This is your action class, -and when the user selects your action, the run() -method in your action class will be called. You will rarely extend the SystemAbstractPopupMenuExtensionAction base class -directly, though. Instead there are subclasses of it that offer additional functionality for specific types of remote objects, -as shown here: -
- - -Base Class | -Description | -
---|---|
SystemAbstractPopupMenuExtensionAction in - org.eclipse.rse.ui plugin | -Base class offering generic support for any remote object pop-up menu action, for any system type. | -
SystemAbstractRemoteFilePopupMenuExtensionAction - in org.eclipse.rse.files.ui plugin | -Specialized base class offering specific support for any remote file object pop-up menu action, for any system type. | -
See the pop-up menu action tutorial for a step-by-step example.
- - diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage.html b/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage.html deleted file mode 100755 index d7d71a13ed3..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - -The org.eclipse.rse.ui.propertyPages extension point is defined in the
-plugin org.eclipse.rse.ui, and it is patterned after Eclipse's org.eclipse.ui.propertyPages extension point, but both
-simplified and extended specifically for remote objects.
-What is a property page?
-It is a page that shows up in the Eclipse Properties dialog that users
-get to by right-clicking on an object within any tree or table view, and selecting
-the Properties action.
Extenders supply one or more <page> elements within the beginning and ending <extension> element for this. -The attributes of this <page> element are:
-To use this extension point your class will typically extend one of the supplied base classes to -make it easier to create these property pages for remote objects. The only method you must implement in these -classes is createContents(Composite), which populates the details page on the right side when the node is -selected on the left side. The supplied classes are listed here: -
- -Base Class | -Description | -
---|---|
SystemAbstractPropertyPageExtensionAction - in org.eclipse.rse.ui plugin. | -Base class offering generic support for any remote object property page. | -
SystemAbstractRemoteFilePropertyPageExtensionAction - in org.eclipse.rse.files.ui plugin. | -Specialized base class offering specific support for any remote file object property page. | -
-
- -See the property page tutorial for a step-by-step example.
- - diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure1.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure1.gif deleted file mode 100755 index 14bda64e820..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure1.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure2.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure2.gif deleted file mode 100755 index 7950bb9aa4a..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/plugin/propertypage_figure2.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup.html deleted file mode 100755 index bfdbcdd105f..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - -In this tutorial, you will use the RSE pop-up menus -extension point to -create a pop-up menu action that will appear -in the context menu for any .jar file, for any connection to -any system type. The action will be labeled "Show contents" and will simply -run the jar -tvf JDK command when selected, displaying the results -in the command console. You could expand this example to copy the file -to a local temporary folder, extract the list of file names within the jar, and -display those names in an Eclipse table view. -
- -Tip: If you prefer your Java code to use lined-up braces, select the -first two options in the Code -Formatter preferences page for Java, via Windows->Preferences. - -This will affect code generated by wizards. The source code shown assumes this option has been set, but this is not required. - -
- <!-- ======================================= -->
- <!-- Remote Object Popup Menu Actions -->
- <!-- ======================================= -->
- <extension point="org.eclipse.rse.ui.popupMenus">
- <objectContribution id="actions.jar"
- typecategoryfilter="files"
- typefilter="file"
- namefilter="*.jar">
- <action id="actions.jar.show"
- enablesFor="1"
- label="Show contents"
- tooltip="List contents of this file"
- class="samples.ui.actions.ShowJarContents">
- </action>
- </objectContribution>
- </extension>
-
-Save and close the file.
-
- IRemoteFile selectedFile = getFirstSelectedRemoteFile();
- String cmdToRun = "jar -tvf " + selectedFile.getAbsolutePath();
- runCommand(cmdToRun);
-
-
- private void runCommand(String command) {
- IRemoteCmdSubSystem cmdss = getRemoteCmdSubSystem();
- if (cmdss != null && cmdss.isConnected()) {
- RemoteCommandHelpers.runUniversalCommand(getShell(), command, ".", cmdss);
- } else {
- MessageDialog.openError(getShell(), "No command subsystem", "Found no command subsystem");
- }
- }
-
- /**
- * Gets the Command subsystem associated with the current host
- */
- private IRemoteCmdSubSystem getRemoteCmdSubSystem() {
- IHost myHost = getSubSystem().getHost();
- IRemoteCmdSubSystem[] subsys = RemoteCommandHelpers.getCmdSubSystems(myHost);
- for (int i = 0; i < subsys.length; i++) {
- if (subsys[i].getSubSystemConfiguration().supportsCommands()) {
- return subsys[i];
- }
- }
- return null;
- }
-
- Thats it! Now, you can try your new action. Use Run->Run As->Run-time Workbench. Drill -down in the RSE to a Jar file in a local or remote connection and right-click to see and run your new action. Notice -how it does not appear for files that do not end with the ".jar" extension. This is because of the "namefilter" attribute -in our extension point .xml file. - - diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_newClass.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_newClass.gif deleted file mode 100755 index 1e097dc6b0a..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_newClass.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_run.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_run.gif deleted file mode 100755 index e6646d36a48..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_run.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_see.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_see.gif deleted file mode 100755 index 5a1734fe85c..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/popup_see.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage.html deleted file mode 100755 index 22aeaa128e4..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage.html +++ /dev/null @@ -1,84 +0,0 @@ - - - -
- - - - -In this tutorial, you will use the RSE propertyPage -extension point to -create a property page that will appear -in the Properties dialog for any folder, for any connection to -any system type. The page will be labeled "Folder Contents" and will show the -cumulative size of the contents of the folder, and the number of folders and files within it. -This will show the extension point, plus how to use some of the RSE user interface helpers, as well -as the remote file API for querying information about remote folders and files. -
- -Tip: If you prefer your Java code to use lined-up braces, select the -first two options in the Code -Formatter preferences page for Java, via Windows->Preferences. - -This will affect code generated by wizards. The source code shown assumes this option has been set, but this is not required. - - - - -
- <!-- ======================================= -->
- <!-- Remote Object Property Pages -->
- <!-- ======================================= -->
- <extension point="org.eclipse.rse.ui.propertyPages">
- <page name="Folder Contents"
- class="samples.ui.propertypages.FolderInfoPropertyPage"
- id="samples.ui.PropertyPage1"
- typefilter="folder"
- typecategoryfilter="files">
- </page>
- </extension>
-
-
Thats it! Now, you can try out your new property page. Use Run->Run As->Run-time Workbench. Drill -down in the RSE to a folder in a local or remote connection and right-click to see -and run your new property page. This sample is a unique case, in that this operation could potentially run for a long time, as you are recursively walking all -the sub-folders and files to accumulate the size and count information. Because of this, we put this work -in a background thread, and update the GUI as each sub-folder is processed. We also supply a stop button -to the user and watch for them pressing Cancel or closing the dialog. When the thread ends, the -result looks like this. -
Notice how this property page only appears for folders, due to the typefilter="folder" attribute -in our extension point xml. - - \ No newline at end of file diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_newClass.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_newClass.gif deleted file mode 100755 index 32531d37c14..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_newClass.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_done.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_done.gif deleted file mode 100755 index 084a08ecf48..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_done.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_during.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_during.gif deleted file mode 100755 index b14fcf530c6..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_run_during.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_see.gif b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_see.gif deleted file mode 100755 index 9f5d4882d0c..00000000000 Binary files a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/propertypage_see.gif and /dev/null differ diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorials.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorials.html index fe3fb0ce224..74c6e81c8e0 100755 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorials.html +++ b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorials.html @@ -13,8 +13,8 @@
This section walks through the tutorials that demonstrate how to use the RSE extension points to extend the RSE:
The source code for all tutorials is available in the RSE-examples package, which diff --git a/rse/doc/org.eclipse.rse.doc.isv/reference/extension-points/index.html b/rse/doc/org.eclipse.rse.doc.isv/reference/extension-points/index.html index 4686f958f0c..66a1bb4efa6 100755 --- a/rse/doc/org.eclipse.rse.doc.isv/reference/extension-points/index.html +++ b/rse/doc/org.eclipse.rse.doc.isv/reference/extension-points/index.html @@ -21,8 +21,6 @@