views:

15

answers:

0

Hi,

I have been developing a plugin for Eclipse. I added a menu item 'CloMan' to the popup menu of the Package Explorer. Everything was working fine. But now I see that nothing is happening when I click the 'CloMan' menu item. Any idea about what might have gone wrong? What to check? My plugin.xml has the following content:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>    
<extension
     point="org.eclipse.ui.menus">
     <menuContribution
        locationURI="popup:org.eclipse.jdt.ui.PackageExplorer">
        <command
           commandId="cloman.PackageExplorerPopup"
           icon="icons/CloMan.gif"
           label="CloMan"
           style="push">
        </command>
     </menuContribution>  
</extension>
<extension
     point="org.eclipse.ui.commands">         
     <command
        defaultHandler="cloman.PackageExplorerPopup"
        id="cloman.PackageExplorerPopup"
        name="PackageExplorerPopup">
    </command>                          
</extension>
</plugin>

My PackageExplorerPopup.java has the following code:

public class PackageExplorerPopup extends AbstractHandler { 
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {       
    System.out.println("from PackageExplorerPopup");
            return null;
      }
}

My MANIFEST.MF has the following content:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: CloMan
Bundle-SymbolicName: org.fahim.plugin.CloMan;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: cloman.Activator
Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime,
  org.eclipse.core.resources;bundle-version="3.5.2",
  org.eclipse.jdt.core;bundle-version="3.5.2",
  org.eclipse.jface.text;bundle-version="3.5.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.eclipse.ui.part

And the content of my build.properties as follows:

  output.. = bin/
  bin.includes = META-INF/,\
           plugin.xml