Help - Tabbed View with Forms [message #527299] |
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
[Updated on: Wed, 14 April 2010 17:43] Report message to a moderator
|
|
|
Re: Help - Tabbed View with Forms [message #527809 is a reply to message #527299] |
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.06056 seconds