Home » Eclipse Projects » GEF » Drag and Drop in Logic Editor Example
Drag and Drop in Logic Editor Example [message #52541] |
Tue, 07 January 2003 02:01  |
Eclipse User |
|
|
|
Originally posted by: truenoto.yahoo.com
From a previous posting, it said I can drag a Task in the Task View and drop
it to a Label in the Logic Editor. I try it, but when I try to drop it to a
Label, I just get a "Stop" icon, the drag-and-drop does not seem to work for
me.
Could someone please tell me if I miss anything?
Thank you.
|
|
| | | |
Re: Drag and Drop in Logic Editor Example [message #52650 is a reply to message #52624] |
Tue, 07 January 2003 12:13   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
"Takumi Fujiwara" <truenoto@yahoo.com> wrote in message
news:avevs5$907$1@rogue.oti.com...
> How can I remove the restriction of holding the CTRL key for drag and
drop?
Yes, the DragSource can override the drop type and force it to be a Copy.
This is necessary for the TaskView, but it is not necessary for dragging
from Wordpad. In reality, I think the bug is in the TaskView, it should not
support a MOVE operation since you cannot move a task via TextTransfer.
> And can I drag a Java file in the Package Explorer to the GEF graph
editor?
> What kind of Drag and Drop listener do i need to implement?
I don't know. You'd have to look at which DragSources are added to that
Viewer, and then add a GEF TransferDropTargetListener that supports the same
SWT Transfer. Post this question to main newsgroup.
> Thank you.
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> news:aveqn7$4h0$1@rogue.oti.com...
> > I think I remember that some drag sources required that you hold the
CTRL
> > key.
> >
> > "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> > news:aveo9p$2bq$1@rogue.oti.com...
> > > You used to be able to drag from the task view and drop the text onto
a
> > > label in the logic example. I just tried it and it didn't work for me
> > > either. But I could drag text from Wordpad and drop it on the label,
so
> > > maybe the task list no longer supports text transfers.
> > >
> > > Eric
> > >
> > >
> > > Takumi Fujiwara wrote:
> > > > From a previous posting, it said I can drag a Task in the Task View
> and
> > drop
> > > > it to a Label in the Logic Editor. I try it, but when I try to drop
it
> > to a
> > > > Label, I just get a "Stop" icon, the drag-and-drop does not seem to
> work
> > for
> > > > me.
> > > >
> > > > Could someone please tell me if I miss anything?
> > > >
> > > > Thank you.
> > > >
> > > >
> > >
> >
> >
>
>
|
|
|
Re: Drag and Drop in Logic Editor Example [message #52842 is a reply to message #52650] |
Wed, 08 January 2003 13:48   |
Eclipse User |
|
|
|
Originally posted by: sy_cheung2.yahoo.com
I find out that the Package Explorer has 3 drag adapters:
SelectionTransferDragAdapter,
ResourceTransferDragAdapter,
FileTransferDragAdapter
What I would like to do is:
when user drag an element in the Package Explorer, and drop it to the Logic
Editor, it will create an Label in the Logic Editor.
Randy Hudson mentions I need to add a GEF TransferDropTargetListener, in
this case I think I need to add a Selection TransferDropTargetListener.
But what do I need to do in this SelectionTransferDropTargetListener? When
I look at the code for the TextTransferDropTargetListener, it does not
change the text in the label. Where in the code it changes the text of the
label in case of a Drop Event.
Thanks for any help.
"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:avf17q$9v2$1@rogue.oti.com...
>
> "Takumi Fujiwara" <truenoto@yahoo.com> wrote in message
> news:avevs5$907$1@rogue.oti.com...
> > How can I remove the restriction of holding the CTRL key for drag and
> drop?
>
> Yes, the DragSource can override the drop type and force it to be a Copy.
> This is necessary for the TaskView, but it is not necessary for dragging
> from Wordpad. In reality, I think the bug is in the TaskView, it should
not
> support a MOVE operation since you cannot move a task via TextTransfer.
>
> > And can I drag a Java file in the Package Explorer to the GEF graph
> editor?
> > What kind of Drag and Drop listener do i need to implement?
>
> I don't know. You'd have to look at which DragSources are added to that
> Viewer, and then add a GEF TransferDropTargetListener that supports the
same
> SWT Transfer. Post this question to main newsgroup.
>
> > Thank you.
> >
> > "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> > news:aveqn7$4h0$1@rogue.oti.com...
> > > I think I remember that some drag sources required that you hold the
> CTRL
> > > key.
> > >
> > > "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> > > news:aveo9p$2bq$1@rogue.oti.com...
> > > > You used to be able to drag from the task view and drop the text
onto
> a
> > > > label in the logic example. I just tried it and it didn't work for
me
> > > > either. But I could drag text from Wordpad and drop it on the
label,
> so
> > > > maybe the task list no longer supports text transfers.
> > > >
> > > > Eric
> > > >
> > > >
> > > > Takumi Fujiwara wrote:
> > > > > From a previous posting, it said I can drag a Task in the Task
View
> > and
> > > drop
> > > > > it to a Label in the Logic Editor. I try it, but when I try to
drop
> it
> > > to a
> > > > > Label, I just get a "Stop" icon, the drag-and-drop does not seem
to
> > work
> > > for
> > > > > me.
> > > > >
> > > > > Could someone please tell me if I miss anything?
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
| |
Re: Drag and Drop in Logic Editor Example [message #52896 is a reply to message #52842] |
Wed, 08 January 2003 14:01  |
Eclipse User |
|
|
|
Originally posted by: truenoto.yahoo.com
Please read Manfred Goetz's response to my another post titled
"TextTransfer Drag and Drop Question in Logic Editor"
"Sam Cheung" <sy_cheung2@yahoo.com> wrote in message
news:avhr00$1o8$1@rogue.oti.com...
> I find out that the Package Explorer has 3 drag adapters:
> SelectionTransferDragAdapter,
> ResourceTransferDragAdapter,
> FileTransferDragAdapter
>
> What I would like to do is:
> when user drag an element in the Package Explorer, and drop it to the
Logic
> Editor, it will create an Label in the Logic Editor.
>
> Randy Hudson mentions I need to add a GEF TransferDropTargetListener, in
> this case I think I need to add a Selection TransferDropTargetListener.
> But what do I need to do in this SelectionTransferDropTargetListener?
When
> I look at the code for the TextTransferDropTargetListener, it does not
> change the text in the label. Where in the code it changes the text of the
> label in case of a Drop Event.
>
> Thanks for any help.
>
>
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> news:avf17q$9v2$1@rogue.oti.com...
> >
> > "Takumi Fujiwara" <truenoto@yahoo.com> wrote in message
> > news:avevs5$907$1@rogue.oti.com...
> > > How can I remove the restriction of holding the CTRL key for drag and
> > drop?
> >
> > Yes, the DragSource can override the drop type and force it to be a
Copy.
> > This is necessary for the TaskView, but it is not necessary for dragging
> > from Wordpad. In reality, I think the bug is in the TaskView, it should
> not
> > support a MOVE operation since you cannot move a task via TextTransfer.
> >
> > > And can I drag a Java file in the Package Explorer to the GEF graph
> > editor?
> > > What kind of Drag and Drop listener do i need to implement?
> >
> > I don't know. You'd have to look at which DragSources are added to that
> > Viewer, and then add a GEF TransferDropTargetListener that supports the
> same
> > SWT Transfer. Post this question to main newsgroup.
> >
> > > Thank you.
> > >
> > > "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> > > news:aveqn7$4h0$1@rogue.oti.com...
> > > > I think I remember that some drag sources required that you hold the
> > CTRL
> > > > key.
> > > >
> > > > "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> > > > news:aveo9p$2bq$1@rogue.oti.com...
> > > > > You used to be able to drag from the task view and drop the text
> onto
> > a
> > > > > label in the logic example. I just tried it and it didn't work
for
> me
> > > > > either. But I could drag text from Wordpad and drop it on the
> label,
> > so
> > > > > maybe the task list no longer supports text transfers.
> > > > >
> > > > > Eric
> > > > >
> > > > >
> > > > > Takumi Fujiwara wrote:
> > > > > > From a previous posting, it said I can drag a Task in the Task
> View
> > > and
> > > > drop
> > > > > > it to a Label in the Logic Editor. I try it, but when I try to
> drop
> > it
> > > > to a
> > > > > > Label, I just get a "Stop" icon, the drag-and-drop does not seem
> to
> > > work
> > > > for
> > > > > > me.
> > > > > >
> > > > > > Could someone please tell me if I miss anything?
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Mon Jul 14 08:10:06 EDT 2025
Powered by FUDForum. Page generated in 0.10001 seconds
|