Contributing to Eclipse
by Kent Beck and Erich Gamma

Example 1:

<extension point="org.eclipse.ui.popupMenus">
     <objectContribution
     objectClass="org.eclipse.jdt.core.resources.IFile"
     id="org.threeriversinstitute.ddjexample">
     <action
     label="Hello"
     class="org.threeriversinstitute.ddjexample.HelloAction"
     id="org.threeriversinstitute.ddjexample.helloaction">
     </action>
     </objectContribution>
</extension>

Example 2:

<extension
   point="org.eclipse.contribution.spider.handles">
   <handle
     id="org.eclipse.erich.sourceHandle"
     targetClass="org.eclipse.contribution.spider.ObjectFigure"
     class="org.eclipse.contribution.erich.ShowSourceHandle"
     icon="icons/showSource.gif"/>
</extension>


Example 3:

public void mouseUp() {
    String qualifiedName= selectedObject.getQualifiedClassName();
    IJavaProject[] projects;
    projects= JavaCore.create(
                         ResourcesPlugin.getWorkspace().
                         getRoot()).getJavaProjects();
    for (int i= 0; i < projects.length; i++) {
        IJavaProject project= projects[i];
        IType type= project.findType(qualifiedName);
        if (type != null) {
            JavaUI.openInEditor(type);
            return;
        }
    }
}


Example 4:

<feature
      id="org.eclipse.contribution.spiderfeature"
      version="1.0.2">
   <requires>
      <import plugin="org.eclipse.core.resources"/>
    ...
   </requires>
    ...
   <plugin
         id="org.eclipse.contribution.spider"
         version="0.0.1">
   </plugin>
</feature>


Example 5:

<site>
  <feature   
     url="features/org.eclipse.contribution.spiderfeature1.0.2.jar">
  </feature>
</site>






2


