Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » drag
drag [message #165586] Wed, 26 January 2005 01: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] Wed, 26 January 2005 03:29 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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: Sat Dec 21 16:07:00 GMT 2024

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

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

Back to the top