Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Control setParent method
Control setParent method [message #760137] Thu, 01 December 2011 13:11 Go to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
Hi,

I see that in http://www.eclipse.org/rap/noteworthy/1.3/news_M2.php you have said that Control#setParent()has been added to the API. I am using 1.5M2 and when I checked the source code of Control#setParent()it contains no implementation. Could you please let me know the reason for not implementing setParent() method? We use the same code for RCP on windows which uses org.eclipse.swt.win32.win32.<version>.jar and it has a proper implementation of Control#setParent().
Re: Control setParent method [message #760254 is a reply to message #760137] Thu, 01 December 2011 17:10 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Control#setParent() is an optional operation. The JavaDoc for says "...
if the underlying operating system supports this feature".
It is a considerable effort to implement and we decided to use the given
resources for other features.

For compatibility with SWT, we provided an empty implementation. You can
use Control#isReparentable() to check whether a control can be reparented.

If you *really* have a need for reparentable widgets, you may open an
enhancement request. As it is not on the plan for 1.5, I doubt that it
will be implemented in the near future.

HTH
Rüdiger

On 01.12.2011 14:11, Avrajit wrote:
> Hi,
>
> I see that in http://www.eclipse.org/rap/noteworthy/1.3/news_M2.php you
> have said that Control#setParent()has been added to the API. I am using
> 1.5M2 and when I checked the source code of Control#setParent()it
> contains no implementation. Could you please let me know the reason for
> not implementing setParent() method? We use the same code for RCP on
> windows which uses org.eclipse.swt.win32.win32.<version>.jar and it has
> a proper implementation of Control#setParent().


--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:IRunnableWithProgress does not correctly reset the focus
Next Topic:Control setParent method
Goto Forum:
  


Current Time: Wed Apr 24 20:31:22 GMT 2024

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

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

Back to the top