Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » "The operation is not currently available"
"The operation is not currently available" [message #325539] Thu, 21 February 2008 15:02 Go to next message
Eclipse UserFriend
Originally posted by: stefan.bley.saxsys.de

I created a plugin project and executed the extension wizard "Hello,
World action set" to get a simple menu action.
When I launch the application instance and press the sample action
button, I get a dialog that says "The operation is not currently
available". I can't debug this.

What is wrong here?

Regards, Stevy
Re: "The operation is not currently available" [message #325545 is a reply to message #325539] Thu, 21 February 2008 16:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

This happens when the system can't load your action or things it is
disabled after loading the IActionDelegate.

Do you ever set anything to disabled in your IActionDelegate? If not,
does your plugin that contributes the ActionSet have itself set to be
singleton:=true and lazy start = true?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: "The operation is not currently available" [message #325546 is a reply to message #325539] Thu, 21 February 2008 16:50 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
This usually happens when the class name specified in the plugin.xml is
not found. You might have refactored the class/package name or modified
the plugin.xml

- Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch

Stefan Bley wrote:
> I created a plugin project and executed the extension wizard "Hello,
> World action set" to get a simple menu action.
> When I launch the application instance and press the sample action
> button, I get a dialog that says "The operation is not currently
> available". I can't debug this.
>
> What is wrong here?
>
> Regards, Stevy
Re: "The operation is not currently available" [message #325569 is a reply to message #325539] Fri, 22 February 2008 11:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas.hanel.xxxxxxxx.xxx

I encountered this when I was trying to execute an action from within the
right-mouse-button menu (popup menu) of the package explorer. Hitting the
button in the toolbar worked fine. After a while I found out, that the
Action needs to implement the IWorkbenchWindowActionDelegate interface to
be able to get triggered from the RMB menu. Maybe you find this helpful.

Kind Regards

Thomas
Re: "The operation is not currently available" [message #325575 is a reply to message #325546] Fri, 22 February 2008 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thunderaxiom.gmail.com

Prakash G.R. skrev den 21-02-2008 17:50:
> This usually happens when the class name specified in the plugin.xml is
> not found. You might have refactored the class/package name or modified
> the plugin.xml

I have just seen this with a plugin compiled for a newer Java than the
one that was running eclipse.

--
Thorbjørn
Re: "The operation is not currently available" [message #325576 is a reply to message #325575] Fri, 22 February 2008 14:00 Go to previous message
Eclipse UserFriend
Originally posted by: stefan.bley.saxsys.de

Thorbjørn Andersen schrieb:
> Prakash G.R. skrev den 21-02-2008 17:50:
>> This usually happens when the class name specified in the plugin.xml
>> is not found. You might have refactored the class/package name or
>> modified the plugin.xml
>
> I have just seen this with a plugin compiled for a newer Java than the
> one that was running eclipse.

That has been the problem. I set the JRE of the plugin as well the JRE
for the Eclipse application instance to 5.0, but the compliance level
was set to 6.0. So javac 6.0 compiled my plugin code, while the Eclipse
instance has been running with 5.0.

Thank you all for your hints.
It would be fancy if the error message told me the version conflicts
instead of "is not currently available".

Regards, Stevy
Previous Topic:TreeViewer text spanning columns
Next Topic:Help button not available on wizard dialog
Goto Forum:
  


Current Time: Sun Sep 01 00:28:14 GMT 2024

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

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

Back to the top