Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Disable mouse click on editpart in policy
Disable mouse click on editpart in policy [message #212308] Tue, 21 March 2006 11:00 Go to next message
Eclipse UserFriend
Originally posted by: rudolf.pischek.cleverlance.com

Hi, how can I disable mouse click on EditPart? E.g. I have a ButtonEditPart which extends org.eclipse.gef.editparts.AbstractGraphicalEditPart. And this ButtonEditPart has a policy which extends org.eclipse.gef.editpolicies.SelectionEditPolicy. When sb clicks on the button, void showSelection() is called. But I don't know How I can return DISABLE click action?
Re: Disable mouse click on editpart in policy [message #212662 is a reply to message #212308] Tue, 28 March 2006 14:05 Go to previous message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
If you don't want your EditPart to be selectable, then there is an api on
AbstractEditpart#isSelectable you can override to return false. The
SelectionEditPolicy is used to display selection feedback only.

-Steve

"Rudolf Pischek" <rudolf.pischek@cleverlance.com> wrote in message
news:3584204.1142938872411.JavaMail.root@cp1.javalobby.org...
> Hi, how can I disable mouse click on EditPart? E.g. I have a
ButtonEditPart which extends
org.eclipse.gef.editparts.AbstractGraphicalEditPart. And this ButtonEditPart
has a policy which extends org.eclipse.gef.editpolicies.SelectionEditPolicy.
When sb clicks on the button, void showSelection() is called. But I don't
know How I can return DISABLE click action?
Previous Topic:Where can I download the JavaDoc of Draw2D
Next Topic:can we implement bendpoint policy for a line
Goto Forum:
  


Current Time: Thu Apr 25 13:04:20 GMT 2024

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

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

Back to the top