Creating a profile tooling plug-in project

Before you can generate profile tooling, you must create a profile tooling plug-in project. With a profile tooling plug-in project, you can include and deploy a profile in a plug-in project, generate a model that represents your tooling code for a specific profile, and generate the tooling code from the model that represents your profile. Then you can deploy the generated plug-in into an installation so that the profile tooling is available for other users.

About this task

To create a profile tooling plug-in project:

Procedure

  1. Click File > New > Project.
  2. In the New Project wizard, expand Modeling > UML Extensibility > UML Profile Tooling Plug-in Project and then click Next.
  3. On the Plug-in Project page, type a project name and click Next.
  4. On the Plug-in Content page, click Next.
  5. On the Templates page, click UML Profile Tooling Plug-in Project and click Next.
  6. In the New UML Profile Tooling Plug-in Project page, complete one of these steps:
    • To specify an existing profile, click Browse, and select a deployed profile, a profile in your workspace, or a profile on your computer.
    • To create a profile, click New, and type a profile name and file name, specify the appropriate model library type depending on the profile you are creating, and then click OK.
  7. If you specified an existing profile, select any combination of Post-Project Creation Options:
    • Generate Tooling Model - This option generates a model that represents your tooling code. You cannot generate a tooling model if you have not defined a profile. If you selected a deployed profile, you are forced to generate a tooling model while Generate Tooling Code is an option.
      Tip: You can click Advanced to specify additional settings for your tooling model.
      • Use the General page to specify any of the following components for individual profile elements: menus, palettes, properties, or wizards.
      • Use the Elements page to define the specific profile elements for which to generate tooling.
      • Use the Shapes page to define graphics for the profile elements. If you select the check box beside a profile element, the generated code enables you to create customized shapes. If you clear the check box beside an element, the default UML notation is displayed.
    • Generate Tooling Code - This option takes the tooling model and creates the Java code plug-in.
      Note: If you select neither option, a non-Java plugin that includes the required XML to deploy a profile is created. Leaving both options cleared is helpful when you want to deploy a profile but do not want to write the XML for it.
  8. Click Finish. A new Eclipse plug-in project is created that contains your previously specified profile, the optionally generated tooling model, as well as the optionally generated tooling code. If you have generated the tooling model, you can now customize the profile tooling.

Feedback