Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Bad context after a Selection Wizard Description
Bad context after a Selection Wizard Description [message #1385097] Wed, 04 June 2014 10:13 Go to next message
nicolas nusswitz is currently offline nicolas nusswitz
Messages: 5
Registered: May 2014
Junior Member
Hi all,

i would create an edge between 2 elements that's an objet named "Interface" in my model.

1 - Element Edition : selection wizard description
The first is the root element of my diagram description and i use a selection wizard description for choose the second element.
2 - init operation
The "init operation" provide 3 variables :
element => selected element
containerView => Diagram
container => first element.
3 - new operation > Create Instance
I create a new instance of "Interface" with this selected element (var:element).
Now, i would add this instance at interface's list of the first element :
Reference name : "interfaces"
Type Name : Interface
variable name : instance
4 - new operation > set value
Feature name : "targetElemet"
Value expression : var:element

Problem : The new instance is not added at the first element (var:container) but to the second element.


I don't know why ? because the operation context is normaly the first element !!!!

If you have an idea,

Thank,
Re: Bad context after a Selection Wizard Description [message #1385254 is a reply to message #1385097] Thu, 05 June 2014 08:26 Go to previous message
nicolas nusswitz is currently offline nicolas nusswitz
Messages: 5
Registered: May 2014
Junior Member
Sorry,

it's my Ecore Model that's wrong.
I have defined a bidirectional relation between application and these interfaces.

I have revised my model and it's now good !

Thank
Previous Topic:Diagram refreshing and Java service Debugging
Next Topic:Stuck on creating a representation
Goto Forum:
  


Current Time: Wed Oct 01 06:21:08 GMT 2014

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

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