[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Reacting on single-click
|
single-click on something which is already selected will send a delayede
DIRECT_EDIT request to the editpart.
Shift+Click is defined as append selection. If you want it to do something
different when the part is already selected, you'll have to extend the
DrgaEditPartsTracker
"Iwan Vosloo" <iwan@xxxxxxxxxxxx> wrote in message
news:cncnu4$ior$1@xxxxxxxxxxxxxxxxxx
> Hello,
>
> I have a typical graphical editor and want to open A view (say viewA) when
> a user double-clicks on a node (This part solved from the FAQ), and
> another view (say viewB) when a user just clicks on a node. (Or
> alternatively double-clicks with shift held in).
>
> I like handling opening of the views in EditPart.performRequest(...) as
> recommended in the FAQ for double clicks, since it is not a command that
> edits the model.
>
> So, the question is - where do I listen for a single click event, or, how
> can I check the status of control keys (like shift) at the time of a
> double-click from the mouse?
>
> Thank
> -i
>