Skip to main content



      Home
Home » Eclipse Projects » Sirius » Problem in diagram navigation(On Double-click navigation from one Diagram page to other Diagram page)
Problem in diagram navigation [message #1736681] Fri, 01 July 2016 03:13 Go to next message
Eclipse UserFriend
Hi,

I am new to Sirius, just trying to create a Diagram_A and Diagram_B and inside Diagram_A I have one container and two sub-container. I have the below requirements:
When I drag and drop the container into Diagram_A and double-click it then it should navigate to Diagram_B and their I should be able to drag & drop the sub-container. And the sub-container should not be reflected into my Diagram_A it should be only present in Diagram_B.

Thank you,
Manish
Re: Problem in diagram navigation [message #1736752 is a reply to message #1736681] Fri, 01 July 2016 09:08 Go to previous message
Eclipse UserFriend
Le 01/07/2016 14:21, Manish Kumar a écrit :
> Hi,

Hi.

> I am new to Sirius, just trying to create a Diagram_A and Diagram_B and
> inside Diagram_A I have one container and two sub-container. I have the
> below requirements: When I drag and drop the container into Diagram_A
> and double-click it then it should navigate to Diagram_B and their I
> should be able to drag & drop the sub-container. And the sub-container
> should not be reflected into my Diagram_A it should be only present in
> Diagram_B.

I'm not sure I understand the details correctly.

By "drag and drop X into Y" do you mean creating an X from Y's palette?

Also, you first mention "inside Diagram_A I have one container and two
sub-container" and later "the sub-container should not be reflected into
my Diagram_A it should be only present in Diagram_B". Are Diagram_A and
Diagram_B two instances of the same kind of representation, or two
separate kinds of diagrams?

Sirius has Support for representation navigation, and for double-click
tools (see the documentation for details), but from what I understand of
your case, it doesn't seem they can be combined in a way that
corresponds exactly to the workflow you want.

You may need to create a double-click tool, and implement it by calling
custom Java code (see [1]) to call into the Sirius Java APIs. For
example, DialectUIServices.openEditor(Session, DRepresentation,
IProgressMonitor) can be used to programmatically open an editor on an
existing representation (Diagram_B if I follow your case correctly).

Regards,
Pierre-Charles

[1]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods

--
Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Model evolution and Sirius
Next Topic:Find target EObject of an edge on delete action
Goto Forum:
  


Current Time: Sat Mar 15 11:04:44 EDT 2025

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

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

Back to the top