Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Help - Tabbed View with Forms
Help - Tabbed View with Forms [message #624099] Wed, 14 April 2010 17:41 Go to next message
Andrew Hubbs is currently offline Andrew Hubbs
Messages: 9
Registered: April 2010
Location: Dallas TX
Junior Member

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 Go to previous message
Andrew Hubbs is currently offline Andrew Hubbs
Messages: 9
Registered: April 2010
Location: Dallas TX
Junior Member

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
Previous Topic:Help - Tabbed View with Forms
Next Topic:BIRT 2.5.1 report viewer print window not resizable
Goto Forum:
  


Current Time: Thu Sep 18 16:04:54 GMT 2014

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

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