Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Define Selection Wizard Programmatically
Define Selection Wizard Programmatically [message #1794096] Thu, 23 August 2018 12:19 Go to next message
Bo Liu is currently online Bo LiuFriend
Messages: 31
Registered: July 2016
Member
Hello Community,

does anyone know how to define a selection wizard programmatically?
I want to use it in Java Service or External Java Action.

Or is there a way to define a Selection Wizard in a Selection Wizard.
What I want to do is, after I selection an element in the first selection wizard and click on finish, the second selection wizard will come up and I can selelction the second element.

Is it possible to do so?

Regards,
Bo
Re: Define Selection Wizard Programmatically [message #1794098 is a reply to message #1794096] Thu, 23 August 2018 13:10 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 388
Registered: May 2011
Senior Member
Hello,

Among the model operation of your Selection Wizard, you can add an operation "Open Wizard" [1] where your will be able to select your second element.

Otherwise if you still want to do it programmatically, you can call the command PaneBasedSelectionWizardCommand. You will find examples of that in PaneBasedSelectionWizardTests.

Regards,
Steve
[1]https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#wizard


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Define Selection Wizard Programmatically [message #1794099 is a reply to message #1794098] Thu, 23 August 2018 13:47 Go to previous messageGo to next message
Bo Liu is currently online Bo LiuFriend
Messages: 31
Registered: July 2016
Member
Hello,

thanks for the reply.
I also noticed the option "Open Wizard",
What I don't know is, how do I define it to use it as Selection Wizard.
E.g, how do I set the candidates Expression there? and how do I pass parameters there?

Regards,
Bo
Re: Define Selection Wizard Programmatically [message #1794107 is a reply to message #1794099] Thu, 23 August 2018 15:29 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 388
Registered: May 2011
Senior Member
Hello,

In fact, it is the same wizard widget as can be defined in the properties view[1]. For instance, you will need to define at least a page[2] in this wizard. As this wizard operation, is triggered from a Selection Wizard, you will need to use the variables provided by the Selection Wizard to specify the Wizard operation. For instance, the "var:element" expression provided by the Selection Wizard will return a list of element selected in the Selection Wizard and will be needed for the "Semantic Candidate Expression" of the page of the wizard operation.

Regards,
Steve

[1] https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html
[2] https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html#pages


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Define Selection Wizard Programmatically [message #1794123 is a reply to message #1794107] Fri, 24 August 2018 06:45 Go to previous message
Bo Liu is currently online Bo LiuFriend
Messages: 31
Registered: July 2016
Member
Hello,

thanks for the reply!
I'll try that out!

Regards,
Bo
Previous Topic:Sirius Element Properties Title Edit
Next Topic:Arrange all
Goto Forum:
  


Current Time: Fri Nov 16 14:41:06 GMT 2018

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

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

Back to the top