Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Selection Wizard(How to receive result from Selection Wizard)
Selection Wizard [message #1820995] Tue, 04 February 2020 10:04 Go to next message
Leonid Novikov is currently offline Leonid NovikovFriend
Messages: 22
Registered: January 2017
Junior Member
How to receive result from Selection Wizard
Hello!
I try to use Sirius for creation of the diagramme of objects UML. As a prototype I use UMLDesigner. As a practical example diagramm Maven POMs for product. In the elementary kind about such:

Fig1.png

Peculiarity consists that at creation of a new element it is necessary to choose base element from among existing (class for instance or attribute of class fo Slot). Thus, by the time of creation slots, the attribute of a class should be already chosen (see an illustration from specification UML).

Fig2.png

I have thought what to solve this problem (a choice of a class for a instance and a choice of attribute of this class for slot) it is possible with use Sirius Selection Wizard. But it has not turned out!
Has begun with the simple: Selection Wizard InstanceSpecification:

Fig.3

Fig.4 (limit Files Per Message!)

Method for testing of result of work Selection Wizard:

Fig5.

Display of the wizard:

Fig6.

After a select, the method was not started (a tests line is not printed!). Diagnostics about errors is not presented!
Note, I have cleaned the second argument (result of a choice). The method was started!
I cannot accuse Selection Wizard! I do something incorrectly! What?
In Manual о способе получении результата работы Selection Wizard и обо всем, что находится под операцией Begin, нет упоминания вообще.
Friends! Help!
Excuse for bad English! In my 80 years it is possible to learn a programming language, but foreign already late!
Leonid Novikov
lnew@yandex.ru

  • Attachment: Fig1.png
    (Size: 16.88KB, Downloaded 25 times)
  • Attachment: Fig2.png
    (Size: 41.93KB, Downloaded 23 times)
  • Attachment: Fig3.png
    (Size: 63.44KB, Downloaded 25 times)
  • Attachment: Fig5.png
    (Size: 43.81KB, Downloaded 19 times)
  • Attachment: Fig6.png
    (Size: 44.83KB, Downloaded 21 times)
Re: Selection Wizard [message #1821009 is a reply to message #1820995] Tue, 04 February 2020 14:08 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 546
Registered: July 2009
Senior Member
Hi,

From a quick look at the wizard configuration (in Fig3.png), I think the issue is in your "Browse Expression": it expects the elements selected by the user to be available in a variable named "classes", but the wizard is configured to use the name "element". In your "Selection Wizard" definition, the first child "Element Select Variable" is set to "element": this is the name of the variable where Sirius will place the element(s) selected by the user. You can either change it to "classes", or simply use "element" in your expression, but the two names must match.

Try using "service:getClassesForInstanceSpec(element)" instead (or rename the "Element Select Variable" above to "classes").

Quote:

Excuse for bad English! In my 80 years it is possible to learn a programming language, but foreign already late!


That's impressive! Good luck!

Regards,
Pierre-Charles


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Selection Wizard
Next Topic:how to locate at the element in table through navigation tool from diagram
Goto Forum:
  


Current Time: Wed Oct 28 06:56:11 GMT 2020

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

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

Back to the top