Advice on a tab implementation in GEF/draw2d [message #201399] |
Mon, 31 October 2005 16:26 |
Eclipse User |
|
|
|
Hello. I'm trying to implement a visual editor that supports tabs. The
visual page that I'm creating has a header area, and then a collection of
tabs underneath it. Unfortunately, the model I'm working with contains a
header element and then one or more tab elements (there is no
corresponding TabFolder model element to contain the TabItems).
My question is, what is the best way to create this invisible "TabFolder"
piece that has no corresponding model element? Do I want to create a
TabFolderEditPart inside my RootPageEditPart and then somehow reroute the
addChild commands to add all TabEditParts to the TabFolderEditPart, or do
I want to create a TabFolderFigure (LayeredPane) in my RootPageFigure and
then add all TabFigures to it (so the TabFolderFigure does not have a
corresponding EditPart)?
I've been fumbling through my different options, but haven't found one
that seems clean.
Any advice would be appreciated!
-Ryan
|
|
|
Powered by
FUDForum. Page generated in 0.03397 seconds