Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Error finding plugin action in M7
Error finding plugin action in M7 [message #199291] Sun, 22 February 2004 09:45 Go to next message
Eclipse UserFriend
I have a plugin which is running without problems in Eclipse 2.0 & 2.1.
When I migrated it to Eclipse 3.0 M7 (OSGi bundle), it does not start:

Could not create action delegate for id:
de.hawlitzek.eclipse.jdt.methodwizard.NewMethodWizard
Reason:
Plug-in de.hawlitzek.eclipse30.jdt.methodwizard was unable to load class
de.hawlitzek.eclipse.jdt.methodwizard.NewMethodAction.

But the action class is there and contained in the plugins jar. It is also
registered in plugin.xml (here are some excerpts):

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="de.hawlitzek.eclipse30.jdt.methodwizard"
name="Method Wizard Plug-in"
version="1.1.0"
provider-name="Hawlitzek IT-Consulting GmbH"
class="de.hawlitzek.eclipse.jdt.methodwizard.MethodWizardPlugin ">

<runtime>
<library name="methodwizard.jar">
<export name="*"/>
</library>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.jdt.core" version="3.0.0"/>
<import plugin="org.eclipse.jdt.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui.workbench.texteditor"
version="3.0.0"/>
<import plugin="org.eclipse.ui.ide" version="3.0.0"/>
<import plugin="org.eclipse.jface.text" version="3.0.0"/>
</requires>

<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="Java Method Creation"
visible="true"
id="de.hawlitzek.eclipse.jdt.methodwizard.sourceext.toolbar ">
<action
label="Create a method..."
icon="icons/newmethod_wiz.gif"
tooltip="New method"

class="de.hawlitzek.eclipse.jdt.methodwizard.NewMethodAction "

toolbarPath="org.eclipse.jdt.ui.JavaElementCreationActionSet/JavaWizards "
id="de.hawlitzek.eclipse.jdt.methodwizard.NewMethodWizard">
</action>
</actionSet>
</extension>

Any idea why the runtime workbench and also the real runtime have no
access to my classes any more?

Thanks,
Florian Hawlitzek

Hawlitzek IT-Consulting GmbH
Re: Error finding plugin action in M7 [message #199577 is a reply to message #199291] Mon, 23 February 2004 04:13 Go to previous message
Eclipse UserFriend
> I have a plugin which is running without problems in Eclipse 2.0 & 2.1.
> When I migrated it to Eclipse 3.0 M7 (OSGi bundle), it does not start:

Finally I found out what the problem was:
The plugin runtime of Eclipse was changed in 3.0M7 so that it needs a
default
constructor for the plugin class. In Eclipse 2.x there was only a
constructor
with a descriptor.
This change is not backward compatible and neither documented in the
porting guide nor reflected in the migration tool!

Florian Hawlitzek
Hawlitzek IT-consulting GmbH
Previous Topic:Showing dialogs before workbench window is created.
Next Topic:CVS Compare work one way but not the other
Goto Forum:
  


Current Time: Fri Jun 06 21:44:49 EDT 2025

Powered by FUDForum. Page generated in 0.26275 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top