Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Creating multiple layers(Creating multiple layers)
Creating multiple layers [message #1736457] Wed, 29 June 2016 13:41 Go to next message
naveen ramesh is currently offline naveen rameshFriend
Messages: 56
Registered: May 2016
Member
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 15:30 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
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
Previous Topic:Issue with compartments using Vertical Stacks
Next Topic:Transaction editing domain
Goto Forum:
  


Current Time: Tue Apr 16 11:12:06 GMT 2024

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

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

Back to the top