Tabbed panel - NEED HELP!! [message #207973] |
Tue, 24 January 2006 19:27 |
Eclipse User |
|
|
|
Originally posted by: renato.sysmap.com.br
Hi,
I'm trying to create a tabbed panel for a GUI builder using GEF/Draw2d.
I've already searched the archives and tried to take a look at ediagram
example but it seems too complex and uses EMF concepts (that I don't
have knowledge), so all my work (and this help request) is based on
Logic example.
So, from logic, we have the following packages and its classes:
-model-
LogicElement <- LogicSubpart <--- LogicDiagram <- Circuit(and other
| containers)
|- LogicLabel(and other components)
-edit-
LogicEditPart <--- LogicContainerEditPart <--- CircuitEditPart
| |- LogicDiagramEditPart
| |- (other containers)
|- LogicLabelEditPart(and other components)
Given this scenario, I thought about creating 2 new components: a
TabContainer (container for tab pages only) and a TabPage (container for
containers and components).
Question #1: Which class should these new ones extend (both model and edit)?
Question #2: About the TabContainerEditPart, it should be a figure
composed of 2 panels, a buttons panel (that controls the active/visible
layer) and which kind of layered panel (to hold the tab panels - layers)?
Question #3: How to create and manage layers? Is there any example that
does it?
Question #4: About the TabPageEditPart, should it be a figure like
CircuitEditPart (FreeformLayer within a ScrollPane) or like
LogicDiagramEditPart (FreeformLayer)?
Thanks in advance,
Renato.
|
|
|
Powered by
FUDForum. Page generated in 0.02958 seconds