[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Need meta key info
|
"CL [dnoyeb] Gilbert" <Lamont_Gilbert@xxxxxxxxxxxxxxxxx> wrote in message
news:d1hlhb$hvn$1@xxxxxxxxxxxxxxxxxx
>I need to know what keys are being held down during a TemplateDrop action,
>and also during a paste action. The past action is my own action and
>command, but how to I know what keys are held down, and at which point
>would you recommend me capturing that info?
>
>
> The TemplateDrop seems to be limited to Drop Copy only, but I want a
> DropLink. Any idea on how I should go about getting that?
See handleDragOperationChanged. COPY is set there. A link would suggest
that the created item links back to a single instance of the template.
i.e., changing the template would update all dropped instances of that
template.
> Looks like we have a whole new duplicated DropTargetListener here instead
> of the one used normally by Java.
What does that mean? The drop listener is determined by the windowing
toolkit, and java has many such toolkits available. In the case of GEF, we
use a jface utility class which is derived from the SWT interface.