|
Re: Form and View [message #335590 is a reply to message #335584] |
Wed, 15 April 2009 17:48 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 4/15/2009 11:27 AM, Kar wrote:
> Hi all,
> Hope someone can give me an hint on what to do .
>
> I have a view and inside the createPartControl I'm displaying
> information about the selected object in a different view.
>
> Information are displayed using Form
> (org.eclipse.ui.forms.widgets.ScrolledForm); the point is, I need to
> change the number of displayed sections when the view gets the focus
> (this depends on the type of the selected object).
>
> What is the correct approach:
> - Destroy the form and the toolkit and start on the onfocus to recreate
> everything .
> - Or should I use the parent composite from the CreatePartControl to do
> something.
You could use a org.eclipse.swt.custom.StackLayout with a composite for
each type of object, and switch the "top" composite when the selection
changes.
Hope this helps,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.04024 seconds