Model Enumeration pluglet setup instructions

This project takes approximately 15 minutes. Before you run the Model Enumeration pluglet sample, you must activate the pluglet projects and pluglets capability, and import the sample pluglet.

About this task

Once you have imported the pluget sample into your workspace, you can run the Model Enumeration pluglet.

Procedure

  1. Activate the pluglet projects and pluglets capability:
    1. Click Window > Customize Perspective . In the Customize Perspective window, click the Shortcuts tab and be sure New is specified in the Submenus list.
    2. In the Shortcut Categories list, select Pluglets to enable the related shortcuts. Make sure that the Pluglet and Pluglets Project check boxes are checked in the Shortcut list.
    3. Click the Commands tab. In the Available command groups list, select Pluglets and Modeling.
    4. Click OK.
    To check if your perspective is customized, click File > New , and check if the Pluglets Project was added to the pull down menu.
  2. Importing the sample:
    1. On the Model Enumeration pluglet overview page, click Get the sample.
    2. In the Import Sample wizard, the Model Enumeration pluglet sample is filled in for you. Accept the default values and click Finish.
  3. Running the Model Enumeration pluglet sample:
    1. Run the pluglet for the first time by selecting the pluglet sample ModelEnumeration.java in the Project Explorer.
    2. Right-click on ModelEnumeration.java ..
    3. Select Run AsPluglet.
    4. Select your class. Click Run > Internal Tools > ModelEnumeration.

Results

The pluglet runs, and the results are displayed in the Console window.

After you have run the pluglet once, you can see that the Internal Tools menu is populated with a new menu item, ModelEnumeration pluglet. You can use this menu item to run the pluglet and display the contents of the selected modeling elements.


Feedback