Home » Eclipse Projects » Sirius » Edge Creation Problem
|
Re: Edge Creation Problem [message #1698400 is a reply to message #1698293] |
Mon, 15 June 2015 10:50 |
|
Le 13/06/2015 01:19, Shin-Yi Lin a écrit :
> Hi All,
Hi.
> I have a problem of dragging and dropping Edge from Palette to Representation Diagram.
Edge creation tools do not support Drag and Drop from the palette to
execute them (as they require two mouse clicks from the user). If you
first select the tool in the palette and then click on the source and
target node, does your tool work as expected?
Regards,
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Edge Creation Problem [message #1698401 is a reply to message #1698293] |
Mon, 15 June 2015 11:00 |
|
Hi,
Le 13/06/2015 01:19, Shin-Yi Lin a écrit :
> Hi All,
>
> I have a problem of dragging and dropping Edge from Palette to Representation Diagram. I want to link AND-relationship Edge between Nodes. I guess the problem is located in Create Edge View. Could anyone help me with the problem?
Did you change the synchronization options of the mappiing ?
Your tool contain only a CreateEdgeView operation, without any domain
model modifiation. I think you should replace the create edge view task
per a set of operations to create the "Contribution" element, set the
targetSoftgoal reference, and the other step of your domain operation.
If you use Sirius in autorefresh and with no unsynchronized mappings,
you do not have to create the views, Sirius will do it after your model
modifications.
>
> The Palette and Representation Diagram:
>
>
> The Edge Creation Steps:
>
>
>
>
> The metamodel:
>
>
> Regards,
>
> Shin-Yi
>
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Re: Edge Creation Problem [message #1698457 is a reply to message #1698401] |
Mon, 15 June 2015 19:07 |
Shin-Yi Lin Messages: 34 Registered: June 2015 |
Member |
|
|
Hi Maxime,
Maxime Porhel wrote on Mon, 15 June 2015 11:00Hi,
Le 13/06/2015 01:19, Shin-Yi Lin a écrit :
> Hi All,
>
> I have a problem of dragging and dropping Edge from Palette to Representation Diagram. I want to link AND-relationship Edge between Nodes. I guess the problem is located in Create Edge View. Could anyone help me with the problem?
Did you change the synchronization options of the mappiing ?
>> Does it the one that locates in the Element Base Edge -> Advanced -> Synchronization options?
Your tool contain only a CreateEdgeView operation, without any domain
model modifiation. I think you should replace the create edge view task
per a set of operations to create the "Contribution" element, set the
targetSoftgoal reference, and the other step of your domain operation.
>> Do you mean Create an Instance just like the screenshot below?
If you use Sirius in autorefresh and with no unsynchronized mappings,
you do not have to create the views, Sirius will do it after your model
modifications.
>> I still can't place the edge between two nodes after these modification. Is there something wrong?
>
> The Palette and Representation Diagram:
>
>
> The Edge Creation Steps:
>
>
>
>
> The metamodel:
>
>
> Regards,
>
> Shin-Yi
>
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Regards,
Shin-Yi
-
Attachment: 5.jpg
(Size: 56.84KB, Downloaded 502 times) -
Attachment: 6.jpg
(Size: 52.42KB, Downloaded 484 times)
|
|
|
Re: Edge Creation Problem [message #1698594 is a reply to message #1698457] |
Tue, 16 June 2015 14:51 |
|
Le 15/06/2015 21:07, Shin-Yi Lin a écrit :
> Hi Maxime,
>
> Maxime Porhel wrote on Mon, 15 June 2015 11:00
>> Hi,
>>
>> Le 13/06/2015 01:19, Shin-Yi Lin a écrit :
>>> Hi All,
>>>
>>> I have a problem of dragging and dropping Edge from Palette to Representation Diagram. I want to link AND-relationship Edge between Nodes. I guess the problem is located in Create Edge View. Could anyone help me with the problem?
>>
>> Did you change the synchronization options of the mappiing ?
>>>> Does it the one that locates in the Element Base Edge -> Advanced -> Synchronization options?
Yes, you can find information about this in [1].
>>
>>
>> Your tool contain only a CreateEdgeView operation, without any domain
>> model modifiation. I think you should replace the create edge view task
>> per a set of operations to create the "Contribution" element, set the
>> targetSoftgoal reference, and the other step of your domain operation.
>>>> Do you mean Create an Instance just like the screenshot below?
You should modify the model with the set of operations corresponding to
you tool goal: you have created a ANDDecomposition, then you have to
use some SetOperation elements on it or on the source/target variables
to link them all.
Note that the context of the evaluation of your first changeContext
operation (eContainer()) is the source semantic element (it also
corresponds to the source variable).
>>
>>
>> If you use Sirius in autorefresh and with no unsynchronized mappings,
>> you do not have to create the views, Sirius will do it after your model
>> modifications.
>>
>>>> I still can't place the edge between two nodes after these modification. Is there something wrong?
Yes you have created your ANDDecomposition but how Sirius can find it to
draw the edge if you do set seantic relations between elements ?
Does your tool reference your edge mapping ?
Regards
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1] See Synchronisation paragraph in
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#graphical_elements
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Re: Edge Creation Problem [message #1699161 is a reply to message #1699028] |
Mon, 22 June 2015 08:48 |
|
Le 19/06/2015 17:37, Shin-Yi Lin a écrit :
> Hi Maxime,
>
> I still don't know exactly what "use some SetOperation elements on it or
> on the source/target variables to link them all" means. Could you
> describe it more explicitly?
I do not know you metamodel, but you have to list the operations you
want to be performed by the tool during the AND tool execution.
From you previous screenshots, I think you want to create a
Contribution in the source SoftGoal and then set the targetSoftgoal of
this Contribution to the target SoftGoal.
So you will need a "Change Context" (right click > New Operation >
Change Context) with expression set to var:source, in this element you
might create a "Create Instance", the reference name will be
contribTypeToParent as it seems to be a containment feature and the type
name will be SoftGoal ( _yourPackageName_.SoftGoal would be better).
Then in this Create Instance operation, you can create a "Set" operation
with targetSoftgoal as feature name and var:target as value.
The tool will modify your model, and then Sirius will refresh your
diagram. If your changes does not match the edge mapping definition, you
will not have visual changes.
>
> And, I my tool does reference edge mapping.
>
> Thanks & Regards,
>
> Shin-Yi
Regards
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Goto Forum:
Current Time: Thu Mar 28 21:03:10 GMT 2024
Powered by FUDForum. Page generated in 0.03321 seconds
|