Rational Programming Patterns for System z

Creating a plug-in dedicated to user micropatterns

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 can clear the selected check boxes in the Options pane. It is not necessary to generate an activator or to 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 COBOL Micropattern wizard. Click Next.
  4. On the COBOL micropattern page, enter the name of the Java™ class in which you will describe your micropattern. Select the entity type in which you will be able to use the micropattern. You can create a:
    • Simple micropattern, which generates code only where it is declared, between its start and end tags..
    • Global micropattern, which generates code in various parts of the code. Select the Global micropattern box in this case.

Results

The plug-in in which you can develop your micropattern 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 micropattern extension point.
Figure 1. Micropattern extension point
<extension 
      point="com.ibm.pdp.framework.microPattern">
     <handler
            refPatternId="com.ibm.pdp.pacbase.batch"
            class="com.micropattern.sample.UserMicroPattern">
     </handler>
</extension>

To develop your micropattern, 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)