Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "New Plug-in Template Wizard Present by Kun-Tse Wu."— Presentation transcript:

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

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

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

4 Creating a plug-in project 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. 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. Part II

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

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

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

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


Download ppt "New Plug-in Template Wizard Present by Kun-Tse Wu."

Similar presentations


Ads by Google