Skip to main content



      Home
Home » Modeling » Graphiti » Marquee Tool Help(Using Marquee Tool on Container Shape)
Marquee Tool Help [message #1706077] Fri, 21 August 2015 15:50 Go to next message
Eclipse UserFriend
I am trying to change the functionality of my diagram so that I am more easily able to use the marquee tool. I have a large container shape in which I am placing objects in. When the cursor is outside the container shape but inside the diagram, the marquee tool is automatically enabled when I click and drag (seen in the first image). But whenever the cursor is inside the container shape and I click and drag, it will not allow the marquee tool to work unless clicked on in the palette (seen in the second image). I am wondering if there is a way to use the marquee tool on the container shape even when the selector tool is being used.

index.php/fa/22999/0/

index.php/fa/23000/0/

[Updated on: Tue, 25 August 2015 16:23] by Moderator

Re: Marquee Tool Help [message #1707877 is a reply to message #1706077] Thu, 10 September 2015 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Robert,

not sure if that is possible. Clicking into a shape will make GEF activate the selection mode, so Graphiti will not be able to anbale Marquee.

However, there is a hook provided by Graphiti that can be used to overrule the selection: override the method getSelection in your tool beahvior provider and return null for this shape. That will prevent the shape from being selected. Besides you might get hold of the editor palette and try to activate the marquee. I have not tried that so I'm not sure if that could work...

HTH,
Michael
Re: Marquee Tool Help [message #1707926 is a reply to message #1707877] Thu, 10 September 2015 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Ok I will try this out! I'm unsure of where to get hold of the editor palette to activate the marquee. Do you know where I can do this?
Re: Marquee Tool Help [message #1707978 is a reply to message #1707926] Fri, 11 September 2015 03:42 Go to previous message
Eclipse UserFriend
You can get the the palette (PaletteRoot) from the diagram editor by calling getPaletteRoot(). There you have access to all tool entries via getChildren().

HTH,
Michael
Previous Topic:Removing Ellipsis from Text.
Next Topic:How to link business model (file) to diagram instance?
Goto Forum:
  


Current Time: Thu Apr 24 07:19:39 EDT 2025

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

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

Back to the top