Skip to main content



      Home
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 Go to next message
Eclipse UserFriend
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 #52570 is a reply to message #52541] Tue, 07 January 2003 09:44 Go to previous messageGo to next message
Eclipse UserFriend
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 #52597 is a reply to message #52570] Tue, 07 January 2003 10:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.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 #52624 is a reply to message #52597] Tue, 07 January 2003 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: truenoto.yahoo.com

How can I remove the restriction of holding the CTRL key for drag and drop?

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?

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 #52650 is a reply to message #52624] Tue, 07 January 2003 12:13 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #52869 is a reply to message #52842] Wed, 08 January 2003 14:01 Go to previous messageGo to next message
Eclipse UserFriend
The label text gets changed in the LogicLabelCommand. Look at
LogicLabelEditPolicy. You'll need to do a little more than this, since
you want to create an entirely new EditPart.

Eric

Sam Cheung wrote:
> 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.
Re: Drag and Drop in Logic Editor Example [message #52896 is a reply to message #52842] Wed, 08 January 2003 14:01 Go to previous message
Eclipse UserFriend
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.
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Zoom in/out in GEF
Next Topic:[CHANGE] easier painting in Figure
Goto Forum:
  


Current Time: Mon Jul 14 08:10:06 EDT 2025

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

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

Back to the top