Generating a plug-in project for editor extensions

To generate a plug-in project for editor extensions, use the New Plug-in Project wizard.

Procedure

  1. Open the Plugin Development perspective.
  2. On the main menu of the workbench, click File > New > Project.
  3. In the New Project wizard, expand Plug-in Development, select Plug-in Project, and click Next. The New Plug-in Project wizard opens.
  4. In the Project name field of the Plug-in Project page, enter a name for the new project and click Next. For example, you might create a plug-in project named systemz.common.editor.extensionpoints.
  5. In the ID field of the Content page, enter an ID for the new project and click Next. The default value uses the plug-in name for the ID, such as systemz.common.editor.extensionpoints.
  6. Click Finish. The wizard creates a plug-in project, adds the project to the Package Explorer view, and opens the manifest file in the plug-in manifest editor.
  7. If you did not already open the Plug-in Development perspective, open it when prompted.
  8. On the Extensions page, click Add. The New Extension window opens.
  9. To add an extension point for a new preprocessor or for content assist:
    1. Clear the check box beside Show only extension points from the required plug-ins. This action populates the extension Points list with all available extension points.
    2. Select the extension point to add to the plug-in:
      • com.ibm.systemz.editor.preprocessorBehavior to add a preprocessor extension
      • com.ibm.systemz.editor.completionProposalComputer to add a content assist extension
  10. Repeat step 9 for each extension you want to add.

Results

The Eclipse workbench generates a plugin.xml file and adds extensions to it for the extension points that you selected. For more information about these extensions, see Tagging preprocessor and content assist extensions.

Feedback