Examples Template

The Examples Template can be used to add a custom set of the Workbench SDK examples to the Example Launcher view. Using the template, a plug-in project will be created that contains the source for each Workbench SDK example. The source can be modified for testing custom functionality or simply viewed for learning purposes.

To create a plug-in project using the Examples Template, follow these steps:

  1. Open the Plug-in Development perspective by selecting Window->Open Perspective->Other... and selecting Plug-in Development in the Open Perspective dialog.
  2. Select File->New->Plug-in Project from the main menu of the Workbench, Eclipse, or RDz.
  3. Give your project a name and then select the Next > button.
  4. On the next page, make sure No is selected for the Would you like to create a rich client application field. Select Next >.
  5. On the next page, select Plug-in with Compuware Workbench API examples and then select Finish.

To run a custom plug-in that uses the Examples Template from within a development environment (Workbench for Eclipse, Eclipse, or RDz), follow these steps:

  1. Open the Debug perspective within the development environment.
  2. Create a launch configuration.
    1. Select Run->Run Configurations... from the main menu of the development environment (if you would like to run the custom plug-in in debug mode, select Run->Debug Configurations... instead).
    2. Select Eclipse Application from the tree on the left of the Run Configurations dialog (Debug Configurations dialog if you are running in debug mode) and then select the New launch configuration button from the toolbar along the top of the tree (the left-most button).
    3. Select the Plug-ins tab and make sure that all workspace and enabled target plug-ins is selected in the Launch with field.
    4. Select the Main tab and make sure that the Java Runtime Environment is utilizing a Java 8 compatible JRE (either a JavaSE-1.8 execution environment or Java 1.8 compatible JRE).
  3. Once the launch configuration has been created, select the Run button (Debug button if in debug mode) to launch an application with the custom plug-in.

Within the application with the custom plug-in has launched, the Example Launcher view will show both the Workbench for Eclipse API node as well as the corresponding node from the custom plug-in. While the examples under the Workbench for Eclipse API node will remain static, the examples under the node from the custom plug-in will reflect any changes made to the examples within the custom plug-in.

Was this page helpful? Yes No Submitting... Thank you