Rational Programming Patterns for System z

Creating a plug-in dedicated to user command lines

A specific creation wizard is available to create this type of plug-in.

Procedure

  1. To open the creation wizard, select File > New > Project > Plug-in Project.
  2. The following two pages are standard pages used for the creation of Eclipse projects.
    Note: On the Content page, you must clear the selected check boxes in the Options pane. You must not generate an activator or indicate that the plug-in will make contributions to the UI.
  3. On the Templates page, select Create a plug-in using one of the templates and RPPz Subcommand wizard. Click Next.
  4. Enter the name of the Java™ class in which you will describe your command. Specify also the identifier of the extension point.

Results

The plug-in in which you can write your command line has been created in Eclipse. You can see it in the Package Explorer view of the Plug-in development perspective.
The plugin.xml file contains the user command-line extension point.
Figure 1. Command-line extension point
<extension 
       point="com.ibm.pdp.product.tools.rppSubCommand">
     <rppSubcommand
            rppSubCommandId="rppCommandId"
            class="com.rppsubcommand.sample.SampleRppSubCommand">
     </rppSubcommand>
</extension>

To write your command line, open the plug-in and the Java class generated from the name you specified in the creation wizard.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)