Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Which edit policy handles the clicking of a button figure?
Which edit policy handles the clicking of a button figure? [message #213752] Mon, 10 April 2006 17:52 Go to next message
Jan van der Ven is currently offline Jan van der VenFriend
Messages: 18
Registered: July 2009
Junior Member
Dear group,


I have a Figure, composed of several other figures. One of these others
is a Button. I attached a MouseListener in the Figure definition. I had
my doubts because I assumed this was the wrong place.

The listener calls a dialog, the dialog writes to a field/member.

Several questions:
Why does the mouse listener only respond to double clicks?
How do I get the part to know whether the Button got clicked?
Do I need an edit policy?
Do I need to create the Button in the part.createFigure and add the
listener there?

Please advice


Jan v.d. Ven
Re: Which edit policy handles the clicking of a button figure? [message #214013 is a reply to message #213752] Wed, 12 April 2006 12:02 Go to previous message
Jan van der Ven is currently offline Jan van der VenFriend
Messages: 18
Registered: July 2009
Junior Member
I found out that the MouseListener should be an ActionListener. That
solves the double click part.
Also I create these interactive elements in the editpart. This solves
the communication problem. And there is no need for a policy.
Jan H. van der Ven wrote:
> Dear group,
>
>
> I have a Figure, composed of several other figures. One of these others
> is a Button. I attached a MouseListener in the Figure definition. I had
> my doubts because I assumed this was the wrong place.
>
> The listener calls a dialog, the dialog writes to a field/member.
>
> Several questions:
> Why does the mouse listener only respond to double clicks?
> How do I get the part to know whether the Button got clicked?
> Do I need an edit policy?
> Do I need to create the Button in the part.createFigure and add the
> listener there?
>
> Please advice
>
>
> Jan v.d. Ven
Previous Topic:AbstractEMFOperation cannot be resolved
Next Topic:move Anchor on node
Goto Forum:
  


Current Time: Fri Apr 26 21:50:30 GMT 2024

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

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

Back to the top