Using ContentManager

To add a content

Use the following :
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.

To remove a content

Use the following :
ContentManager contentManager = toolWindowManager.getContentManager();
contentManager.removeContent(tools);

Removes the content from the manager.

To get the selected content

Use the following :
ContentManager contentManager = toolWindowManager.getContentManager();
Content content = contentManager.getSelectedContent();

Returns the selected content, or null if the selection is empty.

To change the ContentManagerUI

Use the following :
ContentManager contentManager = toolWindowManager.getContentManager();
ContentManagerUI contentManagerUI = new ... TODO
contentManager.setContentManagerUI(contentManagerUI);

Sets the content manager ui to contentManagerUI.

To enable/disable the ContentManager

Use the following :
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.