Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Calling different diagram file on ctrl+Click on element
Calling different diagram file on ctrl+Click on element [message #178815] Tue, 25 March 2008 08:02 Go to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 24
Registered: July 2009
Junior Member
Hi ,

My Requirenment is in my Diagram file I have a element. This element
is having a attribute called destination in which I will specify the name
of new diagram file to open. I want when I press CTRL+Click on that
element it should open the diagram files specified in the element.How can
I make my element understand that CTRL+click has been pressed.

Thanks in Advance.
Vikas Goyal
Re: Calling different diagram file on ctrl+Click on element [message #178984 is a reply to message #178815] Tue, 25 March 2008 18:21 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Vikas,

It is possible to open related diagram by double-clicking on the element.
If you are interested in this possibility then try setting "relatedDiagrams"
property for the node mapping of corresponding diagram node.

-----------------
Alex Shatalin
Re: Calling different diagram file on ctrl+Click on element [message #179040 is a reply to message #178984] Wed, 26 March 2008 04:34 Go to previous messageGo to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 24
Registered: July 2009
Junior Member
Thanks Alex,

I have wizard associated with my element and I am openeing the
wizards on double click on element . So I cant use double click option to
go to related diagram. Is there any other way to handle this?

Best Regards,
Vikas
Re: Calling different diagram file on ctrl+Click on element [message #179076 is a reply to message #179040] Wed, 26 March 2008 11:10 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Vikas,

Ctrl+click is reserved by GEF for appending to the current selection.
While it is possible to override this behavior, it would require quite a
lot of manual code modification. You should start by overriding the drag
tracker that your edit part returns.


Best regards,
Boris


Vikas Goyal wrote:
> Thanks Alex,
>
> I have wizard associated with my element and I am openeing the
> wizards on double click on element . So I cant use double click option
> to go to related diagram. Is there any other way to handle this?
>
> Best Regards,
> Vikas
>
Previous Topic:How to know the bordered figure position
Next Topic:Diagram xmi file
Goto Forum:
  


Current Time: Sat Apr 27 04:12:59 GMT 2024

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

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

Back to the top