Using CWorkingArea

Hi,

I’ve been working around with DockingFrames, and SingleCDockable works just fine ! thank you.

But I’m having trouble working with CStation, and I must missing something, so here is my question:

I wan’t to build a simple CContentArea, and within this CContentArea, I wan’t a CWorkingArea (just like Eclipse :wink: )

Call me silly, but I can’t figure out how to do this simple thing !!

dock = new CControl(frame);
ThemeMap themes = dock.getThemes();
themes.select(ThemeMap.KEY_ECLIPSE_THEME);
CContentArea content = dock.getContentArea();
frame.getContentPane().add(content);
CWorkingArea working = dock.createWorkingArea(„editors“);
working.setVisible(true);

And later I „add“ some SingleCDockable:

		dockable = new DefaultSingleCDockable(getClass().getName(), null);
		dockable.setTitleText(listRenderer.getText()); 
		dockable.setTitleIcon(listRenderer.getIcon());
		dockable.setTitleToolTip(listRenderer.getToolTipText());
		dockable.getContentPane().add(dockPanel);
		dock.add(dockable);

But, hey ! nothing like a working area is displayed !

Can you tell me what I’m obviously mising ?

Regards

ok sorry, reading this http://forum.byte-welt.de/showpost.php?p=7504&postcount=4

(that btw did not match “CWorkingArea” search )

I managed to make it work.

I just added

working.setLocation( CLocation.base().normal() );

therefore the "simplest way to “create” an eclipse like layout is to

CWorkingArea working = dock.createWorkingArea("editors");
working.setVisible(true);
working.setLocation( CLocation.base().normal() );

thank you, anyway for this smart/nice docking framework