Help - Tabbed View with Forms [message #624099] |
Wed, 14 April 2010 17:41 |
|
Hi,
I am trying to build a tabbed ViewPart with eclipse.ui.forms.
The goal is essentially something that looks similar to the Eclipse IDE Manifest.mf editor but as a view rather than an editor and any editing within the view will be to an EMF model.
Is there support already built into the eclipse forms to create this sort of view like there is for an editor?
Below is the approach I have taken so far but this could be barking up the wrong tree.
What I have done so far:
In a class extending ViewPart
Create a ManagedForm
Add a CTabFolder to it
Create several CTabItems on the folder
This is where I am running into trouble. How should I set the CTabItem data to change the view content when the tab is changed?
I can post code if it helps clarify my problem.
Thank you for any suggestions and I will post any solutions I come up with for others trying to do something similar.
Andrew
Thanks,
Andrew Hubbs
|
|
|
Re: Help - Tabbed View with Forms [message #624101 is a reply to message #624099] |
Fri, 16 April 2010 14:47 |
|
I have solved my issue with this. I used the approach I listed in the original post. I could not get things to work before because I had incorrectly set layout data.
Successful process:
In a Viewpart subclass:
create form
add CTabFolder
add CTabItems
add Composites that hold your widgets to the CTabFolder
set the CTabItem control to the corresponding composites.
If anyone has any questions or additional comments let me know.
Andrew
Thanks,
Andrew Hubbs
|
|
|
Powered by
FUDForum. Page generated in 0.04370 seconds