[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: SelectionTool - something like a "selection changed" event/request?

Iwan Vosloo wrote:
Hello,

Supposing a user clicks on something with the selection tool active - does it generate a request? I need somehow to intercept such an event.

I am struggling to find some sort of definitive document describing what events the SelectionTool reacts on, and what Requests it generates for each. Is there something like this out there?

-i


/** * @see org.eclipse.gef.EditPart#setSelected(int) */ public void setSelected(int value) { super.setSelected(value); }

To deal with object specific selections I override that method. I specifically use it to add highlights to my editparts when they are selected. Is this the best way to do it? Not sure, so if any GEF developers want to give a better idea how to deal with this, go for it!

Peace,

~ Chris