Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Diagram extensions behave differently
Diagram extensions behave differently [message #1225883] Tue, 31 December 2013 03:06 Go to next message
Michael Lukaszczyk is currently offline Michael LukaszczykFriend
Messages: 14
Registered: November 2013
Junior Member
Hey there, (it´s me again Wink...)

I noticed that a diagram extension that extends a diagram outside it´s own VSP scope behaves differently then it would be, if it would extend a diagram in it´s own VSP´s scope. I want to extend the basic ecore design editor "viewpoint:/org.eclipse.sirius.sample.ecore.design/Design" and provide an additional layer. The problem is, that all the container nodes appear twice now. But I just want to override a style for an existing container in the base layer. When I copy the ecore.odesign file to my own project and extend the local Design viewpoint I get my desired result. But I don´t want the additional dependency/redundancy in my project. I want to reuse the viewpoint from the plugin. Is this maybe a bug or is it supposed to be like this? I mean, it´s still an extension, so it shouldn´t be like this, right?

Thanks,

Michael
Re: Diagram extensions behave differently [message #1226626 is a reply to message #1225883] Thu, 02 January 2014 08:33 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Michael,

Le 31/12/2013 04:06, Michael Lukaszczyk a écrit :
> Hey there, (it´s me again ;)...)
>
> I noticed that a diagram extension that extends a diagram outside it´s
> own VSP scope behaves differently then it would be, if it would extend a
> diagram in it´s own VSP´s scope. I want to extend the basic ecore design
> editor "viewpoint:/org.eclipse.sirius.sample.ecore.design/Design" and
> provide an additional layer.

This an accepted construction.


The problem is, that all the container
> nodes appear twice now. But I just want to override a style for an
> existing container in the base layer.

Could you present the VSM structure you chose for that ? Addtional Layer
+ Node/ContainerMappingImport or AdditionalLayer + Node/ContainerMapping
or AdditionLayer + StyleCustomization ?

When I copy the ecore.odesign file
> to my own project and extend the local Design viewpoint I get my desired
> result. But I don´t want the additional dependency/redundancy in my
> project. I want to reuse the viewpoint from the plugin. Is this maybe a
> bug or is it supposed to be like this?

You should not have to copy the ecore.design in your project, and the
behavior should be the same with the extended VSM in plugins or in the
same project. With more details on your extension (structure, semantic
candidates expressions), I will maybe be able to explain what happens
and to answer you questions.

I mean, it´s still an extension,
> so it shouldn´t be like this, right?
>
> Thanks,
>
> Michael


Regards,

Maxime


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Diagram extensions behave differently [message #1226912 is a reply to message #1226626] Fri, 03 January 2014 03:06 Go to previous message
Michael Lukaszczyk is currently offline Michael LukaszczykFriend
Messages: 14
Registered: November 2013
Junior Member
Dear Maxime,

thanks for your response again. It was already helping Wink. I created an additional node mapping and switched it now to a style customization. That was my mistake! Now it´s fine ,)

Thanks,

Michael
Previous Topic:Can not reference my own Service ("Unknown service...")
Next Topic:How can I change the vertical alignment of a label?
Goto Forum:
  


Current Time: Thu Mar 28 12:20:29 GMT 2024

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

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

Back to the top