Skip to main content



      Home
Home » Eclipse Projects » GEF » drag
drag [message #165586] Tue, 25 January 2005 20:32 Go to next message
Eclipse UserFriend
Originally posted by: pablocardenal.icqmail.com

Hi,
In the logic example if I add the following code to the LogicEditor class
in the initializeGraphicalViewer() :

getGraphicalViewer().addDragSourceListener(
new FileTransferDragSourceListener(getGraphicalViewer()));


Then if I draw a Label, I cannot edit/resize/move it

Could somebody give me some tip about why this happens?

Thanks,
Pablo
Re: drag [message #165594 is a reply to message #165586] Tue, 25 January 2005 22:29 Go to previous message
Eclipse UserFriend
Are you saying that it works just fine if your model already had that label
when the editor was created? And that it doesn't work if you create it from
the palette? If it doesn't ever work, you might want to check that all edit
policies are properly installed and that your EditPart doesn't override
getTargetEditPart() or isSelectable(). Do you see any errors in the error
log?

"Pablo" <pablocardenal@icqmail.com> wrote in message
news:ct6ruq$9sm$1@www.eclipse.org...
> Hi,
> In the logic example if I add the following code to the LogicEditor class
> in the initializeGraphicalViewer() :
>
> getGraphicalViewer().addDragSourceListener(
> new FileTransferDragSourceListener(getGraphicalViewer()));
>
> Then if I draw a Label, I cannot edit/resize/move it
>
> Could somebody give me some tip about why this happens?
> Thanks,
> Pablo
Previous Topic:How do I create Figures that look like SWT controls?
Next Topic:How to add two or more connections between two editpart?
Goto Forum:
  


Current Time: Tue Jun 24 01:04:08 EDT 2025

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

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

Back to the top