setupContentManagerUI();
}
protected void setupContentManagerUI() {
ContentManager contentManager = toolWindowManager.getContentManager();
MultiSplitContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
contentManager.setContentManagerUI(contentManagerUI);
contentManagerUI.setShowAlwaysTab(true);
contentManagerUI.setTabPlacement(TabbedContentManagerUI.TabPlacement.BOTTOM);
contentManagerUI.addContentManagerUIListener(new ContentManagerUIListener() {
public boolean contentUIRemoving(ContentManagerUIEvent event) {
System.out.println("event = " + event);
return JOptionPane.showConfirmDialog(frame, "Are you sure?") == JOptionPane.OK_OPTION;
}
public void contentUIDetached(ContentManagerUIEvent event) {
JOptionPane.showMessageDialog(frame, "Hello World!!!");
}
});
TabbedContentUI contentUI = contentManagerUI.getContentUI(toolWindowManager.getContentManager().getContent(0));
contentUI.setCloseable(true);
contentUI.setDetachable(true);
contentUI.setTransparentMode(true);
contentUI.setTransparentRatio(0.7f);