1 / 12

New Plug-in Template Wizard

New Plug-in Template Wizard. Present by Kun-Tse Wu. Outline. Creating a plug-in project Writing your own plug-in template org.eclipse.pde.ui.pluginContent org.eclipse.pde.ui.templates org.eclipse.pde.ui.newExtension Conclusion. Creating a plug-in project. Part I.

Download Presentation

New Plug-in Template Wizard

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. New Plug-in Template Wizard Present by Kun-Tse Wu

  2. Outline • Creating a plug-in project • Writing your own plug-in template • org.eclipse.pde.ui.pluginContent • org.eclipse.pde.ui.templates • org.eclipse.pde.ui.newExtension • Conclusion

  3. Creating a plug-in project Part I • To create a plug-in project, bring up the New Plug-in Project creation wizard viaFile > New > Plug-in Project.

  4. Creating a plug-in project Part II • On the Plug-in Content page, you set the data with which the plugin.xml file will be initialized, including the plug-id, version and name.

  5. Creating a plug-in project Part III • This page shows the various templates that PDE provides which generate useful content such as views, editors, property pages etc.

  6. Creating a plug-in project Part IV • In this example, we will create a plug-in with the "Hello, World" template. • This page will let you customize the sample extension that we are creating.

  7. Creating a plug-in project Part V • When you press Finish, the wizard will create the new project, all the specified folders and files, and the initial Java build path.

  8. Writing your own template • PDE provides several template plug-ins that will generate a plug-in with one or more fully-working extensions. • We can create our own template through these extension points. • org.eclipse.pde.ui.pluginContent • org.eclipse.pde.ui.templates • org.eclipse.pde.ui.newExtension

  9. org.eclipse.pde.ui.pluginContent • This extension point provides for contributing wizards that create additional content of the PDE plug-in projects. org.eclipse.pde.ui.pluginContent • Need a class which implements org.eclipse.pde.ui.IPluginContentWizard HelloWorldNewWizard.java

  10. org.eclipse.pde.ui.templates • This extension point registers plug-in project content templates that are used to generate code for the new extensions. org.eclipse.pde.ui.templates • Need a class that implements org.eclipse.pde.ui.templates.ITemplateSection HelloWorldTemplate.java

  11. org.eclipse.pde.ui.newExtension • This extension point should be used to contribute wizards that will be used to create and edit new extensions in PDE plug-in manifest editor. org.eclipse.pde.ui.newExtension • From the ‘Extensions’ page of the editor, click ‘Add...’. In the wizard that comes up, select ‘Extension Templates’ in the left pane and choose the template of choice in the right pane.

  12. Conclusion • In order to generate pluggable software automatically , PDE template plug-ins can help us to generate a plug-in project. • In order to collect the necessary information about the pluggable software, we use new plug-in project wizard helping us to create the new plug-in.

More Related