Add Tabbed pane to a ViewPart [message #517021] |
Thu, 25 February 2010 18:36 |
Eclipse User |
|
|
|
Originally posted by: rob.a.wood.gmail.com
I have a view that extends ViewPart and is implemented as a Form. I
need to restructure it to add more information, and the best way to
organize it visually will be to use tabs. I've investigated using
TabFolder/CTabFolder, but the TabItem can only accept a Control. At
this point the only solution I can see is to provide a very crude
simulation: use buttons as proxies for tabs, and clear / rebuild the
entire form each time a button is clicked -- this is very expensive and
error prone, so I'm looking for any a better approach.
Any sane recommendations for simulating a tabbed pane (like JTabbedPane,
but compatible with Forms) would be greatly appreciated.
- Rob
|
|
|
|
Re: Add Tabbed pane to a ViewPart [message #517731 is a reply to message #517181] |
Mon, 01 March 2010 20:46 |
Eclipse User |
|
|
|
Originally posted by: rob.a.wood.gmail.com
Paul Webster wrote:
> Robert Wood wrote:
>> I have a view that extends ViewPart and is implemented as a Form. I
>> need to restructure it to add more information, and the best way to
>> organize it visually will be to use tabs. I've investigated using
>> TabFolder/CTabFolder, but the TabItem can only accept a Control.
>
> Why would only accepting a control be a problem? AFAIK you would place
> a Composite in each CTabItem. You can then break up your Form, one per
> Composite as you need to break up information.
>
> Check out org.eclipse.ui.part.MultiPageEditorPart (as a code example)
> which uses a CTabFolder and is used to implement editors like the PDE
> MANIFEST.MF editor.
>
> PW
>
Thanks for the suggestion. I studied MultiPageEditorPart, and, after a
little trial and error, got it working.
|
|
|
Powered by
FUDForum. Page generated in 0.02751 seconds