| A Recent Source of the "Could not create action delegate" Error [message #190811] |
Fri, 06 February 2004 17:46  |
Eclipse User |
|
|
|
When I upgraded to a recent Eclipse integration build, my plugin stopped
working. When I tried to invoke a plugin-supplied action, I got "The chosen
operation is not currently available" at the user interface and "Could not
create action delegate for..." and "...unable to load class..." in the error
log.
After poking around for quite awhile, I found the problem. My plugin
declared the contructor MyPlugin(IPluginDescriptor), but the latest builds
require an argumentless constructor, MyPlugin(), as well. Eclipse couldn't
load my action delegate class because it couldn't instantiate my plugin
class.
I hope this explanation helps someone else with the same problem. /Jim White
|
|
|
|
|
| Re: A Recent Source of the "Could not create action delegate" Error [message #212965 is a reply to message #212599] |
Thu, 18 March 2004 10:59  |
Eclipse User |
|
|
|
the problem disappeared when I recreated a project without OSGi support
Charles-Philip Bentley wrote:
> Hi Jim,
>
> in fact whenever I do a
>
> if(something instanceof IClass)
>
> I get this error
>
> Unhandled event loop exception
> Reason:
> org/eclipse/ui/IClass
>
> any idea why M7 acts like that?
>
> Charles
>
> Charles-Philip Bentley wrote:
>
>> I have been stuck for one bloody week because of this error (from M4
>> to M7). It is amazing. I have a default contructor in my plug in class
>> (only that one in fact)
>> However I still get the following error even when it is willing to run
>>
>> Could not create action delegate for id: spec.actions.SyncSpecAction2
>> Reason:
>> Internal plug-in action delegate error on creation.
>>
>>
>> What's pissing me off is that sometimes the action delegate is
>> created, and sometimes not (when I put a try catch statement in the
>> run(IAction action) method
>>
>> The action class is something like this
>>
>> public class SyncSpec2 implements IEditorActionDelegate
>>
>> Am I supposed to use IActionDelegate2?
>>
>>
>> Jim White wrote:
>>
>>> When I upgraded to a recent Eclipse integration build, my plugin stopped
>>> working. When I tried to invoke a plugin-supplied action, I got "The
>>> chosen
>>> operation is not currently available" at the user interface and
>>> "Could not
>>> create action delegate for..." and "...unable to load class..." in
>>> the error
>>> log.
>>>
>>> After poking around for quite awhile, I found the problem. My plugin
>>> declared the contructor MyPlugin(IPluginDescriptor), but the latest
>>> builds
>>> require an argumentless constructor, MyPlugin(), as well. Eclipse
>>> couldn't
>>> load my action delegate class because it couldn't instantiate my plugin
>>> class.
>>>
>>> I hope this explanation helps someone else with the same problem.
>>> /Jim White
>>>
>>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03733 seconds