Extending an Existing PerspectiveThis tutorial continues the 3 Example of creating a view tutorial, it assumes that a view and a plugin have both be created. Declare Extension in plugin.xml:Edit the plugin.xml file of your plugin. Add a extension to the org.eclipse.ui.perspectiveExtensions extension point. The following snippet of xml should be added to the plugin.xml file: <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective"> <view id="tutorial.view1" relationship="stack" relative="org.eclipse.ui.views.ResourceNavigator"/> </perspectiveExtension> </extension> The extensions tab of the plugin.xml editor should now look similar to the following image: ![]() Run ApplicationCreate a new Application Launcher by doing the following:
The workbench should now look similar to the following image: ![]() |
(c) Copyright (c) 2004,2005 Refractions Research Inc. and others. |