Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Can't Make Pop-up Menu ... uh pop-up
Can't Make Pop-up Menu ... uh pop-up [message #1725115] Mon, 29 February 2016 22:49 Go to next message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 207
Registered: May 2012
Senior Member
I have a diagram representation I'm trying to specify. I have successfully made it draw my model and I can create some basic stuff and connect some basic stuff. Your newest tutorial sets are very good. Thank you!

Now I want to demo that I can make a generator and fire off some code generation from the picture. I have some of this working as an External Java Action already.

In my tool Section, I have added a Pop-up menu with the Precondition literally set to the word "true" (because I have yet to figure out the very powerful, but initially very confusion expression/query language). The precondition is expecting a boolean right?

There seems to be no amount of praying, cursing, or selecting anything I can do to make this mysterious Pop-up menu... pop-up an appear.

I've put an Operation in the Pop-up menu. Nothing.

What basic thing am I missing here? I just want a basic pop-up menu to pop up on Right Click that has a single Operation called "Generate Stuff" that calls an External Java Action (which I can do already).
Re: Can't Make Pop-up Menu ... uh pop-up [message #1725739 is a reply to message #1725115] Mon, 07 March 2016 11:21 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 174
Registered: October 2014
Senior Member
Hello Brandon
My answers follow

Le 29/02/2016 23:49, Brandon Lewis a écrit :
> I have a diagram representation I'm trying to specify. I have
> successfully made it draw my model and I can create some basic stuff and
> connect some basic stuff. Your newest tutorial sets are very good.
> Thank you!
>
> Now I want to demo that I can make a generator and fire off some code
> generation from the picture. I have some of this working as an External
> Java Action already.
>
> In my tool Section, I have added a Pop-up menu with the Precondition
> literally set to the word "true" (because I have yet to figure out the
> very powerful, but initially very confusion expression/query language).
> The precondition is expecting a boolean right?
yes it expects a boolean. You can let it empty to set it to true by default
>
> There seems to be no amount of praying, cursing, or selecting anything I
> can do to make this mysterious Pop-up menu... pop-up an appear.
>
> I've put an Operation in the Pop-up menu. Nothing.
Check that you popup Menu and Operation action have a valid id.
A good practise is to launch validation (right click then validate) on
odesign element to verify that there is no error into it.

>
> What basic thing am I missing here? I just want a basic pop-up menu to
> pop up on Right Click that has a single Operation called "Generate
> Stuff" that calls an External Java Action (which I can do already).
Check that your extension has correctly been declared in your plugin
..xml [1] and that plugin is deployed on you runtime.

regards
Laurent

[1]
https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#external_java_action


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Save Button Problems
Next Topic:How to run xtext-sirius-integration
Goto Forum:
  


Current Time: Wed Jan 20 20:43:34 GMT 2021

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

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

Back to the top