Dashboard > UDIG Developer Guide > Home > 2 Programmers Guide > 8 Working with Extension Points > 4 Example of extending an existing perspective
4 Example of extending an existing perspective Log In | Sign Up   View a printable version of the current page.

Added by Jesse Eichar , last edited by Jody Garnett on Nov 19, 2005  (view change)
Labels: 
(None)

Extending an Existing Perspective

This 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 Application

Create a new Application Launcher by doing the following:

  • Right click on your new plugin and select Run As > Eclipse Application.
  • Your view should open up and you can click you button (which does nothing currently).
  • Close the intro page

The workbench should now look similar to the following image:

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS