Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CreationTools and TemplateTransferDropTargetListeners
CreationTools and TemplateTransferDropTargetListeners [message #118592] Fri, 20 February 2004 16:14 Go to next message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
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?

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?

Thanks.

Matt
Re: CreationTools and TemplateTransferDropTargetListeners [message #118721 is a reply to message #118592] Fri, 20 February 2004 20:48 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:enabled state of action not updating
Next Topic:RectilinearRouter
Goto Forum:
  


Current Time: Fri Nov 08 21:59:52 GMT 2024

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

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

Back to the top