|
Re: CreationTools and TemplateTransferDropTargetListeners [message #118721 is a reply to message #118592] |
Fri, 20 February 2004 20:48 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Matt" <mattscar@yahoo.com> wrote in message
news:c15bpa$7qe$1@eclipse.org...
> Hi,
>
> I'm using CombinedTemplateCreationEntries in my palette, and it occurs to
> me that CreationTools and TemplateTransferDropTargetListeners accomplish
> the same function. They send CreateRequests to a container when the user
> wants to create a new component. Am I missing something?
No, that's the whole point. Different users can interact with the diagram
differently, and from your editpart's point-of-view there is no difference.
> I'm using the 20040212 version, and addDropTargetListener() is deprecated
> for EditPartViewers. However, if I delete the method call, my editor
> won't create new components. Should I be replacing
> addDropTargetListener() with anything currently available?
We were too strong with some of the @deprecated tags. Basically, you should
use the jface.dnd package when appropriate, but, for compatibility, our
already-existing adapters are still typed as gef.dnd, so it is OK to
continue using them. Pick up our M7 build and let me know if you still get
deprecation warnings.
> Thanks.
>
> Matt
>
|
|
|
Powered by
FUDForum. Page generated in 0.02268 seconds