Skip to main content



      Home
Home » Eclipse Projects » Sirius » Creating multiple layers(Creating multiple layers)
Creating multiple layers [message #1736457] Wed, 29 June 2016 09:41 Go to next message
Eclipse UserFriend
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 .
Re: Creating multiple layers [message #1736473 is a reply to message #1736457] Wed, 29 June 2016 11:30 Go to previous message
Eclipse UserFriend
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
Previous Topic:Issue with compartments using Vertical Stacks
Next Topic:Transaction editing domain
Goto Forum:
  


Current Time: Mon Mar 17 05:17:54 EDT 2025

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

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

Back to the top