Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Using DND in RCP Eclipse 4 application model
Using DND in RCP Eclipse 4 application model [message #853663] Mon, 23 April 2012 08:13 Go to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi,

I've been following the Lars Vogel Eclipse 4 RCP turorial using 4.2M6:

http://www.vogella.com/articles/Eclipse4RCP/article.html

I now have a simple three part RCP skeleton. I decided the extend the application model by adding drag and drop to the parts using the DnDAddon and CleanupAddon addons. Sure enough, just adding these to the model gives the new functionality.

My problem is having run up the application and dragged the parts to give a new layout, on restarting the application I often get IllegalArgumentException with the message:

"part ... is not a child of this container"

Even with the exception, sometimes the new layout is restored OK. Other times I loose one or more of the parts.

Is this a bug or do I need to add some additional functionality to support DND?

Thanks for any help.

Steve.





Re: Using DND in RCP Eclipse 4 application model [message #853674 is a reply to message #853663] Mon, 23 April 2012 08:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
There've been some problems with DND which got fixed in last weeks
(though IIRC they have happened while dragging)

Please try a nightly build and if you still get errors on restart log a
bug with steps to reproduce.

Tom

Am 23.04.12 10:13, schrieb Steve Jones:
> Hi,
>
> I've been following the Lars Vogel Eclipse 4 RCP turorial using 4.2M6:
>
> http://www.vogella.com/articles/Eclipse4RCP/article.html
>
> I now have a simple three part RCP skeleton. I decided the extend the
> application model by adding drag and drop to the parts using the
> DnDAddon and CleanupAddon addons. Sure enough, just adding these to the
> model gives the new functionality.
>
> My problem is having run up the application and dragged the parts to
> give a new layout, on restarting the application I often get
> IllegalArgumentException with the message:
>
> "part ... is not a child of this container"
>
> Even with the exception, sometimes the new layout is restored OK. Other
> times I loose one or more of the parts.
>
> Is this a bug or do I need to add some additional functionality to
> support DND?
>
> Thanks for any help.
>
> Steve.
>
>
>
>
>
>
Re: Using DND in RCP Eclipse 4 application model [message #853736 is a reply to message #853674] Mon, 23 April 2012 09:36 Go to previous message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Hi Tom

Moved to:

http://download.eclipse.org/eclipse/downloads/drops4/N20120422-2000/

DND now works fine.

Thanks for your help.

Steve.
Previous Topic:disabling handledmenuitem
Next Topic:Javascript Sample
Goto Forum:
  


Current Time: Thu Apr 25 09:48:14 GMT 2024

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

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

Back to the top