Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How can I use selection wizard to select from a list of String?(Selection Wizard)
How can I use selection wizard to select from a list of String? [message #1822948] Tue, 17 March 2020 09:16 Go to next message
Yufei Zhou is currently offline Yufei ZhouFriend
Messages: 24
Registered: March 2020
Junior Member
Hi,
I'm trying to use a selection wizard to choose the name of a component, and all the available names are saved in a config file which are all in the type of String. I see that the Candidate Expression property in the Selection Wizard mentioned that this expression should return a Collection of EObjects, but unfortunately String type is not an EObject. So I wonder is there any way I can put a list of String in the Selection Wizard's Candidates Expression without a great performance loss?
Thanks so much for any advice.
Re: How can I use selection wizard to select from a list of String? [message #1823147 is a reply to message #1822948] Fri, 20 March 2020 10:11 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 492
Registered: May 2011
Senior Member
Hello,

The selection wizard (and other tool) are expecting model elements, you will have trouble to display information coming from a file that is not in the Sirius session (your config file). I think you either need to import the content of the config file as model elements, or have an action/button that open a custom dialog that process your config file.

Best regards,
Steve


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Node label margin
Next Topic:Element icons get blurred
Goto Forum:
  


Current Time: Sun Oct 25 03:29:31 GMT 2020

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

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

Back to the top