Sample: Developing a plug-in and pattern type with Eclipse

You can create a plug-in and pattern type with Eclipse.

Before you begin

Download and install the Plug-in Development Kit (PDK) and set up the development environment.
Important: If you use the sample pattern types as a reference to build your own pattern type, be sure that you do not include the International Program License Agreement (IPLA) from the sample. Put your license in the licenses directory of the pattern type before you build the pattern type. The PDK does not automatically generate a license for newly created pattern types.

Procedure

  1. Go to the workspace that you created by using the steps in "Setting up the plug-in samples environment "Setting up the plug-in samples environment."
  2. Build a single plug-in.
    1. Right-click the build.plugin.xml file in the root of the project and click Run As > Ant Build.
      The plug-in starts to build.
    2. After the build process, refresh the project and a new folder named export displays.
      All of the build artifacts are listed in the export folder. The plug-in package is in the root of export folder.
  3. Build all plug-ins in the workspace.
    1. Right-click the build.plugin.xml file in the root of the plugin.depends project and click Run As > Ant Build.
      The plug-in starts to build.
    2. After the build process, refresh the project.
      A new folder named image displays in the subfolder plugins, where all of the built plug-in packages are located.
  4. Build a single pattern type. You must build all plug-ins in the workspace first.
    1. Right-click the build.patterntype.xml file in the root of the pattern type project. In the Hello sample, the pattern type project is patterntype.hello. Click Run As > Ant Build.
      The plug-in starts to build.
    2. After the build process, refresh the project.
      All of the build artifacts are listed in the export folder. The plug-in package is in the root of patterntypes folder.

What to do next

Import a plug-in or pattern type into the catalog to test it.