2 Replies Latest reply on Aug 24, 2005 10:57 PM by mculpepper

    Plugin cookbook

    starksm64

      I spent some time going over the plugin cookbook over vacation. Under eclipse 3.1 I had the following issues in the indicated sections:


      3.2 Create the Plugin

      - Without using a template there is no project.xml created. I copied the plugin.xml from the helloworld example and deleted its actions and updated for the second example.

      3.3.1. Creating the Extension
      - The Example2ContextMenus steps on page 9 do not indicate that an action should be added to the Example2ContextMenus.popups.ifileContribution element in the plugin.xml. It just describes what the action field values should be set to.

      3.3.2. Testing
      - When running the plugin in eclipse, the plugin menu was not displayed when clicking no the text file. The problem relates back to not using a template as the plugin.xml was not included in the plugin binary. The META-INF/MANIFEST was also missing the singleton:=true attribute in the Bundle-SymbolicName and this was showing up as a problem.

      3.4.2. Testing this Extension
      The Task menu is under Window->Show View->Other.../Basic/Tasks

      The custom popup menu does not display when right clicking in the task list view. No idea what the problem was. A section on getting debug info out of eclipse would be a good section.


      Overall, I find the target of this cookbook to be too generic. Its fine as background for the jboss plugins, but What I was looking for is how to extend the JBossIDE functions.


      Some simple example plugins that could be covered include:

      - jndi viewer for a jboss server
      - jmx viewer for a jboss server
      - jndi.properties editor for ejb/ejb3 projects