Jump to: navigation, search

DTP Capabilities Location

Revision as of 10:20, 6 April 2010 by Bfitzpat.redhat.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DTP Capabilities How To

In Galileo, the DTP Capabilities plug-in was included as part of the package process. In Helios, capabilities were pulled out of that process and to be documented separately.

The goal of this document is to explain:

  1. Where to find the existing Capabilities plug-in in CVS
  2. Or how to implement your own Capabilities for DTP

Existing Capabilities Plug-in

The existing Capabilities plug-in can be found in CVS...

Anonymous CVS server info:

   * Host: dev.eclipse.org
   * Repository Path: /cvsroot/datatools
   * User: anonymous
   * Password: <empty>
   * Connection method: pserver
   * Plug-in (within org.eclipse.datatools.build): org.eclipse.datatools.capabilities

Really all that's in this plug-in is the org.eclipse.ui.activities extension point in the plugin.xml at this point.

Capabilities Implementation

As mentioned in the last section, really capabilities boil down to the org.eclipse.ui.activities extension. All that the extension does is shut down the DTP plug-ins:

  <extension
        point="org.eclipse.ui.activities">

<activity

   	  description="%activity.description"
         id="org.eclipse.datatools.capabilities.activity"
         name="%activity.name"/>
   <activityPatternBinding
         activityId="org.eclipse.datatools.capabilities.activity"
         pattern="org\.eclipse\.datatools\..*/.*">
   </activityPatternBinding>
  </extension>

More fine-grained disabling of particular plug-ins can be done, but this takes care of the high level "switch" to turn off DTP functionality in the workbench via Capabilities.