Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Help - Tabbed View with Forms(Requesting help creating a tabbed view (not editor) with forms)
Help - Tabbed View with Forms [message #527299] Wed, 14 April 2010 13: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

[Updated on: Wed, 14 April 2010 13:43]

Report message to a moderator

Re: Help - Tabbed View with Forms [message #527809 is a reply to message #527299] Fri, 16 April 2010 10: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:Is it possible to Data Bind to non-GUI odjects
Next Topic:Help - Tabbed View with Forms
Goto Forum:
  


Current Time: Sat Aug 23 09:26:01 EDT 2014

Powered by FUDForum. Page generated in 0.01556 seconds