protected void setUp() {
if (!setup) {
final ToolWindow topOfTheWorld = toolWindowManager.registerToolWindow("topOfTheWorld", null, null,
new JTextArea("I'm on top of the world!"), ToolWindowAnchor.TOP);
DockedTypeDescriptor descriptor = topOfTheWorld.getTypeDescriptor(DockedTypeDescriptor.class);
descriptor.setMinimumDockLength(200);
descriptor.setDockLength(200);
final ToolWindow leftWing = toolWindowManager.registerToolWindow("leftWing", null, null,
new JTextArea("Left Wing"), ToolWindowAnchor.LEFT);
descriptor = leftWing.getTypeDescriptor(DockedTypeDescriptor.class);
descriptor.setMinimumDockLength(200);
descriptor.setDockLength(200);
final ToolWindow rightWing = toolWindowManager.registerToolWindow("rightWing", null, null,
new JTextArea("Right Wing"), ToolWindowAnchor.RIGHT);
descriptor = rightWing.getTypeDescriptor(DockedTypeDescriptor.class);
descriptor.setMinimumDockLength(200);
descriptor.setDockLength(200);
final ToolWindow bottomDweller = toolWindowManager.registerToolWindow("bottomDweller", null, null,
new JTextArea("Bottom dweller"), ToolWindowAnchor.BOTTOM);
descriptor = bottomDweller.getTypeDescriptor(DockedTypeDescriptor.class);
descriptor.setMinimumDockLength(200);
descriptor.setDockLength(200);
frame.getContentPane().add(toolWindowManager);
frame.pack();
}
}