Drag and Drop in Logic Editor Example [message #53234] |
Thu, 09 January 2003 21:31 |
Eclipse User |
|
|
|
Originally posted by: sy_cheung2.yahoo.com
Could someone please tell me what is the functionality of
FileTransferDragSourceListener? Why it set the drag source event data to
"some text"? When will that get invoke?
And what about LogicTemplateTransferDropTargetListener? Is this for the
drag and drop on the palette only? When will
TextTransferDropTargetListener get invoke?
Thanks.
|
|
|
|
Re: Drag and Drop in Logic Editor Example [message #53607 is a reply to message #53447] |
Fri, 10 January 2003 19:38 |
Eclipse User |
|
|
|
Originally posted by: sy_cheung2.yahoo.com
Thanks. All Drop Target Listener are initialize in
initializeGraphicalViewer() of LogicEditor. How call GET tell the difference
between different Transfer Drop Target Listeners and decide which one to
use for different transfer? It just call addDropTargetListener() adding them
to the graphical viewer one by one?
Thanks in advance.
Sam
protected void initializeGraphicalViewer() {
getGraphicalViewer().setContents(getLogicDiagram());
getGraphicalViewer().addDropTargetListener(
new LogicTemplateTransferDropTargetListener(getGraphicalViewer() ));
getGraphicalViewer().addDropTargetListener(
new TextTransferDropTargetListener(getGraphicalViewer(),
TextTransfer.getInstance()));
}
"Manfred Goetz" <xgoetz@de.ibm.com> wrote in message
news:avmmrf$4bv$1@rogue.oti.com...
> "Sam Cheung" <sy_cheung2@yahoo.com> wrote in message
> news:avkosg$u1n$1@rogue.oti.com...
> > Could someone please tell me what is the functionality of
> > FileTransferDragSourceListener? Why it set the drag source event data to
> > "some text"? When will that get invoke?
> > And what about LogicTemplateTransferDropTargetListener? Is this for the
> > drag and drop on the palette only? When will
> > TextTransferDropTargetListener get invoke?
> >
> > Thanks.
>
> LogicTemplateTransferDropListener is just the
> TemplateTransferDropTargetListener from gef.dnd tuned to return
> LogicTemplateFactories. It supports dropping Templates dragged from
> whereever they are and calling a Factory to create Editparts from that
> Templates- ok usually that would be a palette.
> Concerning the other two: They are not used. Perhaps we should not assume
> that every class in Logicexample makes sense. After all, it is still being
> worked on.
>
>
|
|
|
|
Re: Drag and Drop in Logic Editor Example [message #243126 is a reply to message #53234] |
Mon, 26 May 2008 07:23 |
Eclipse User |
|
|
|
Originally posted by: shady_86.sify.com
the TextTransferDropTargetListener is used to drag text from anywhere and drop it on the label.
and i am also looking why FileTransferDragSourceListener is used, if any one know the answer then please do reply here..,
|
|
|
Powered by
FUDForum. Page generated in 0.02218 seconds