this.parentComponent = parentComponent;
this.toolWindowManager = toolWindowManager;
}
public Component getComponent() {
MyDoggyToolWindowManager nestedToolManager = new MyDoggyToolWindowManager();
// Add a tool
ToolWindow toolWindow = nestedToolManager.registerToolWindow("Nested Tool 1",
"Nested Tool 1",
null,
new JButton("Nested Hello World 1"),
ToolWindowAnchor.RIGHT);
toolWindow.setAvailable(true);
toolWindow.setType(ToolWindowType.SLIDING);
// Setup contents
ContentManager subContentManager = nestedToolManager.getContentManager();
subContentManager.setContentManagerUI(new MyDoggyMultiSplitContentManagerUI());
Content browseContent = subContentManager.addContent("Browse", "Browse", null, new JButton("BrowseButton"), null,
new MultiSplitConstraint(AggregationPosition.BOTTOM));