Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Disable selection of figures in GEF
Disable selection of figures in GEF [message #642857] Fri, 03 December 2010 00:55 Go to next message
oinkl is currently offline oinklFriend
Messages: 17
Registered: September 2010
Junior Member
I'm using GEF to create a graphical editing application using Eclipse as an RCP.

In the graphical editor, I have a figure that draws a scale/ruler. How do I disable selection of this ruler figure?

Currently, whenever I click the ruler, the editor centres the view on the ruler. I don't want the ruler to even be clickable or selectable in the first place.

How do I achieve this?

Thanks.

[Updated on: Fri, 03 December 2010 02:09]

Report message to a moderator

Re: Disable selection of figures in GEF [message #644435 is a reply to message #642857] Sat, 11 December 2010 08:29 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
Hi,

EditPart#isSelectable() should do the trick. You will have to overwrite it for those edit parts that should not be selectable.

Cheers
Alexander
Re: Disable selection of figures in GEF [message #644526 is a reply to message #644435] Mon, 13 December 2010 02:41 Go to previous message
oinkl is currently offline oinklFriend
Messages: 17
Registered: September 2010
Junior Member
Excellent, that worked perfectly, thanks.
Previous Topic:draw2d interaction sequence
Next Topic:Can I change the cursor during DnD?
Goto Forum:
  


Current Time: Fri Apr 19 09:08:01 GMT 2024

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

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

Back to the top