Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Edge Creation Problem
Edge Creation Problem [message #1698293] Fri, 12 June 2015 23:19 Go to next message
Shin-Yi Lin is currently offline Shin-Yi LinFriend
Messages: 34
Registered: June 2015
Member
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?

The Palette and Representation Diagram:
index.php/fa/22164/0/

The Edge Creation Steps:
index.php/fa/22165/0/
index.php/fa/22166/0/
index.php/fa/22167/0/

The metamodel:
index.php/fa/22168/0/

Regards,

Shin-Yi
  • Attachment: 0.jpg
    (Size: 10.58KB, Downloaded 449 times)
  • Attachment: 1.jpg
    (Size: 56.53KB, Downloaded 442 times)
  • Attachment: 2.jpg
    (Size: 42.72KB, Downloaded 433 times)
  • Attachment: 3.jpg
    (Size: 52.83KB, Downloaded 438 times)
  • Attachment: 4.jpg
    (Size: 18.97KB, Downloaded 416 times)
Re: Edge Creation Problem [message #1698400 is a reply to message #1698293] Mon, 15 June 2015 10:50 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 556
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
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 #1698451 is a reply to message #1698400] Mon, 15 June 2015 18:57 Go to previous messageGo to next message
Shin-Yi Lin is currently offline Shin-Yi LinFriend
Messages: 34
Registered: June 2015
Member
Hi David,

Thank you for replying. I can first select the tool in the palette but can't click on the source and
target node then.

Regards,

Shin-Yi
Re: Edge Creation Problem [message #1698457 is a reply to message #1698401] Mon, 15 June 2015 19:07 Go to previous messageGo to next message
Shin-Yi Lin is currently offline Shin-Yi LinFriend
Messages: 34
Registered: June 2015
Member
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?
index.php/fa/22182/0/

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?
index.php/fa/22183/0/

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 389 times)
  • Attachment: 6.jpg
    (Size: 52.42KB, Downloaded 372 times)
Re: Edge Creation Problem [message #1698594 is a reply to message #1698457] Tue, 16 June 2015 14:51 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
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 #1699028 is a reply to message #1698594] Fri, 19 June 2015 15:37 Go to previous messageGo to next message
Shin-Yi Lin is currently offline Shin-Yi LinFriend
Messages: 34
Registered: June 2015
Member
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?

And, I my tool does reference edge mapping.

Thanks & Regards,

Shin-Yi
Re: Edge Creation Problem [message #1699161 is a reply to message #1699028] Mon, 22 June 2015 08:48 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
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
Re: Edge Creation Problem [message #1699240 is a reply to message #1699161] Mon, 22 June 2015 21:58 Go to previous message
Shin-Yi Lin is currently offline Shin-Yi LinFriend
Messages: 34
Registered: June 2015
Member
Hi Maxime,

Thank you again Surprised I succeed to make AND edge tool. I guess I should study more about definitions of items, expression, etc. Very Happy

Best Regards,

Shin-Yi
Previous Topic:Composite Layout
Next Topic:Keybinding conflict Sirius & XText
Goto Forum:
  


Current Time: Thu Mar 04 19:52:24 GMT 2021

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

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

Back to the top