Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Catch drop events into WB editor from other views(How to extend the WB so that notficiations can be received on drop events)
Catch drop events into WB editor from other views [message #874593] Mon, 21 May 2012 07:55 Go to next message
Reguel Wermelinger is currently offline Reguel WermelingerFriend
Messages: 2
Registered: May 2012
Junior Member
Hi

I'd like to extend the GWT window builder editor so that i can drop custom items from another eclipse view into the widget designer.

I already tried to reach my goal by contributing to org.eclipse.ui.dropActions. This extensionPoint would exactly do what I need. But the window builder seems no to support PluginTransfer drop actions.

So far I could not find a way to get notifications on WB drop events. Is there an extension point which i couldn't find where it is possible to register for drop events?
In my case i wan't to enable dropping of my custom items from another view and then get notficiations when an item was dropped on a WB widget.

index.php/fa/9805/0/

Regards,
Reguel
Re: Catch drop events into WB editor from other views [message #875006 is a reply to message #874593] Tue, 22 May 2012 00:04 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Well, there are no API for DND in WindowBuilder.
All component creation operations should go through the palette.
I'm open however to possible contributions, if you want to prepare patch for review.


Konstantin Scheglov,
Google, Inc.
Re: Catch drop events into WB editor from other views [message #875319 is a reply to message #874593] Tue, 22 May 2012 14:16 Go to previous messageGo to next message
Reguel Wermelinger is currently offline Reguel WermelingerFriend
Messages: 2
Registered: May 2012
Junior Member
I've found a way to react on drop events which came from outside the WB editor (see attached source). It's kind of hack, which is enough for now, as we're currently only writing a prototype.
Thanks for your offer to contribute a patch after a review. I will come back to it when we decide to use the Window Builder for the real project. Then we will need a proper way to enable this D'nD mechanism.

[Updated on: Tue, 22 May 2012 14:17]

Report message to a moderator

Re: Catch drop events into WB editor from other views [message #875916 is a reply to message #875319] Wed, 23 May 2012 14:52 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Actually this hack looks very good for hack Smile

Konstantin Scheglov,
Google, Inc.
Previous Topic:varargs as properties
Next Topic:CodeMaps updates for WindowBuilder
Goto Forum:
  


Current Time: Fri Nov 28 10:04:11 GMT 2014

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

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