Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Add composite to view after createPartControl
Add composite to view after createPartControl [message #448513] Tue, 25 April 2006 15:37 Go to next message
Alex is currently offline AlexFriend
Messages: 65
Registered: July 2009
Member
Hi,

I have the following problem:

I want to dynamically add a composite to a view after the createPartControl method has been executed. The idea is to retrieve the composite from a certain plugin (there are a couple of different plugins providing appropriate composites) and to add it to the view dynamically.

Unfortunately, if I try to add a composite after the createPartControl method, the composite is not displayed. If I call the composite's constructor within the method everything works fine...

Any ideas about how to solve the problem??

Thanks, Alex
Re: Add composite to view after createPartControl [message #448521 is a reply to message #448513] Tue, 25 April 2006 17:33 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Check out PageBook and PageBookView that can be used in a view to accept
composites after it has been created.

Later,
PW


Re: Add composite to view after createPartControl [message #448548 is a reply to message #448513] Wed, 26 April 2006 01:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: glenn.janet.co.jp

> Unfortunately, if I try to add a composite after the createPartControl method, the composite is not displayed.

Try calling parent.layout().
Also, you can save the reference to the parent Composite parameter in createPartControl(..).
Re: Add composite to view after createPartControl [message #448551 is a reply to message #448548] Wed, 26 April 2006 07:18 Go to previous message
Alex is currently offline AlexFriend
Messages: 65
Registered: July 2009
Member
Calling parent.layout() worked - thanks a lot!!
Previous Topic:How to Refresh a ViewPart's Icon
Next Topic:Filesystem handles only released when app is closed!!?
Goto Forum:
  


Current Time: Tue Nov 05 14:17:09 GMT 2024

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

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

Back to the top