Skip to main content



      Home
Home » Modeling » Papyrus » "The chosen operation is not enabled" (Designer> Generate Code )
"The chosen operation is not enabled" [message #1820770] Tue, 28 January 2020 09:18 Go to next message
Eclipse UserFriend
I have installed the Papyrus Designer. I have created a class diagram. But when I right click and choose Designer> Generate Code I get an error message "The chosen operation is not enabled".

I have worked with the Designer previously and been able to Generate Code. Any ideas?
Re: "The chosen operation is not enabled" [message #1822711 is a reply to message #1820770] Wed, 11 March 2020 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I did ran into the same issue. I tried a lot of things to get this back working, including reinstalling Eclipse, the Papyrus main and Designer plugins. But nothing seemed to help, although I could generate code for a new project.
Finally I found out that I could resolve the issue by removing spaces from the Eclipse project name.
Maybe this helps to resolve your problem too.
Regards,
Sander
Re: "The chosen operation is not enabled" [message #1822748 is a reply to message #1822711] Thu, 12 March 2020 13:22 Go to previous messageGo to next message
Eclipse UserFriend
It sounds like the code generation plugin is missing. You can install it using the Help->Install new software... menu option.

There are several code generators. I personally use Papyrus to generate C++ code, but perhaps you want the Java generator.
Re: "The chosen operation is not enabled" [message #1823555 is a reply to message #1822748] Sat, 28 March 2020 13:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I can confirm that the handler code fails in case of spaces in the project name. The code checks whether the project hosting the model exists. This fails, if the obtained project name contains spaces, as they are encoded as %20. Please post a bug.

Best regards
Re: "The chosen operation is not enabled" [message #1824064 is a reply to message #1823555] Tue, 07 April 2020 06:58 Go to previous message
Eclipse UserFriend
I've corrected this problem in the context of CDT editor improvements. It should be fixed by using a nightly build now, see update site: https://hudson.eclipse.org/papyrus/job/papyrus-designer-2019-06/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/
Previous Topic:[SysML] SI Units Library & Import
Next Topic:Problem in graphics
Goto Forum:
  


Current Time: Mon Jul 14 17:59:06 EDT 2025

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

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

Back to the top