ContentManager contentManager = toolWindowManager.getContentManager();
Content tools = ContentcontentManager.addContent("Tools" // Content Key
"Tools", // Content title
null, // Content Item
toolsContent, // Content component
"ToolWindows" // Content tooltip text
);
Adds a component represented by a unique identifier key
with a title and/or icon, either of which can be null.
ContentManager contentManager = toolWindowManager.getContentManager(); contentManager.removeContent(tools);
Removes the content from the manager.
ContentManager contentManager = toolWindowManager.getContentManager(); Content content = contentManager.getSelectedContent();
Returns the selected content, or null if the selection is empty.
ContentManager contentManager = toolWindowManager.getContentManager(); ContentManagerUI contentManagerUI = new ... TODO contentManager.setContentManagerUI(contentManagerUI);
Sets the content manager ui to contentManagerUI.
ContentManager contentManager = toolWindowManager.getContentManager(); contentManager.setEnabled(false); // or true to enable
Enables or disables the content manager. If the content manager is disable the whole space will be available for toolwindows.