Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Multi labeled nodes
Multi labeled nodes [message #1391729] Tue, 01 July 2014 10:11 Go to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
Hi all,

I am trying to figure out how to extend Sirius in order to get what we need for our project.

I need to have a node with some attributes inside (as labels) and I need to be able to edit them directly from the diagram.

I know that I can use a Node Container with one node for each attribute but I am trying to avoid some performance issues that I've asked in this thread. I've set all the "semantic candidates" with the references from my model and now it's way better, but not enough.

So what I have in mind is to have a node with some labels at the same time.
e.g. a node with 4 string attributes

I am having a look at the SiriusWrapLabel class, so what it comes to my mind is to have a Style with many instances of this class.

Please correct me if I'm wrong, but I think that I would need :

- A new kind of node (by extending the DNode)
- A new node style (by extending the SimpleStyleNode)
- A new kind of labels (by extending the SiriusWrapLabel)

I've added the DNode extension in the diagram.ecore and I have generated again the classes.

Do I need to do the same in others ecore files?

Any hint in order to reach something like this?

Many thanks.

KR,
Ignacio
Re: Multi labeled nodes [message #1391905 is a reply to message #1391729] Tue, 01 July 2014 15:23 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi Ignacio,

Why not using a list container ? (see
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#containers)

Regards,

Florian


On 07/01/2014 12:11 PM, Ignacio Arechaga Fernandez wrote:
> Hi all,
>
> I am trying to figure out how to extend Sirius in order to get what we
> need for our project.
>
> I need to have a node with some attributes inside (as labels) and I need
> to be able to edit them directly from the diagram.
>
> I know that I can use a Node Container with one node for each attribute
> but I am trying to avoid some performance issues that I've asked in
> https://www.eclipse.org/forums/index.php/t/781879/. I've set all the
> "semantic candidates" with the references from my model and now it's way
> better, but not enough.
>
> So what I have in mind is to have a node with some labels at the same
> time. e.g. a node with 4 string attributes
>
> I am having a look at the SiriusWrapLabel class, so what it comes to my
> mind is to have a Style with many instances of this class.
> Please correct me if I'm wrong, but I think that I would need :
> - A new kind of node (by extending the DNode)
> - A new node style (by extending the SimpleStyleNode)
> - A new kind of labels (by extending the SiriusWrapLabel)
>
> I've added the DNode extension in the diagram.ecore and I have generated
> again the classes.
>
> Do I need to do the same in others ecore files?
>
> Any hint in order to reach something like this?
>
> Many thanks.
>
> KR,
> Ignacio

[Updated on: Tue, 01 July 2014 15:29]

Report message to a moderator

Previous Topic:Can a Sirius modeler be available as plug-ins ?
Next Topic:Container not related to any semantic model element
Goto Forum:
  


Current Time: Tue Apr 23 15:19:00 GMT 2024

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

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

Back to the top