In Eclipse, a view is a workbench element that gives a user a specific view. A view object can be created and embedded into any section on the Eclipse workbench.
The Developer Studio Kernel plug-in samples contain a sample for creating a plug-in with a simple view.
- Create an Eclipse plug-in using the Developer Studio Kernel plug-in samples option with the
plug-in with a viewtemplate.
To integrate a new view to the workbench, Eclipse has an in-built extension point to which you can add the class you define in the view. In the
plugin.xmlfile, define that extension point as follows:
- The class defining the view, mentioned in the extension point, should implement the
org.eclipse.ui.part.ViewPartclass where you can define all the part controls, action handlers and view elements.
- Upon running the sample, click Window > Show View and you see the view listed as shown below,
- Select the view and click OK. The view appears in the View pane,