|
Re: Creating multiple layers [message #1736473 is a reply to message #1736457] |
Wed, 29 June 2016 15:30 |
|
Le 29/06/2016 à 15:41, naveen ramesh a écrit :
> Hi,
> In my model i have containers and they have n number of sub
> containers.So in my diagram view it is difficult for the user to view
> multiple sub containers created inside the container.So i want to create
> a multi layered diagram view such that instead viewing the containers
> and sub containers in the single diagram view i want to create diagram
> view for each container such that i can view sub containers in the
> different diagram view on double click on the container and it should
> have the relationship between different containers and sub containers
> even if it is present in the different diagram view .
You can effectively create a diagram dedicated to your container
semantic element using "representation Creation" tool[1]. Moreover, you
can define a "Representation navigation" tool to navigate from a
selection to a Representation[1].
If you absolutely want to use the double click action to create the
Representation, then you can do it using the double click tool[1] and
then calling a service in the tool operation (Change context for
example) [2] to create your representation with
org.eclipse.sirius.business.api.dialect.command.CreateRepresentationCommand
or directly with DialectManager.INSTANCE.createRepresentation. Note that
the service called by a tool in Sirius is called in an EMF transaction.
regards
Laurent
[1]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/diagrams/Diagrams.html?cp=69_2_1_4#tools
[2]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Writing_Queries.html?cp=69_2_8_7#service_methods
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03058 seconds