com.intellij.openapi.wm.ToolWindowFactory Java Examples
The following examples show how to use
com.intellij.openapi.wm.ToolWindowFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ToolWindowBase.java From consulo with Apache License 2.0 | 6 votes |
public void ensureContentInitialized() { if (myContentFactory != null) { ToolWindowFactory contentFactory = myContentFactory; // clear it first to avoid SOE myContentFactory = null; if (!myToolWindowManager.isUnified()) { myContentManager.removeAllContents(false); contentFactory.createToolWindowContent(myToolWindowManager.getProject(), this); } else { if (contentFactory.isUnified()) { myContentManager.removeAllContents(false); contentFactory.createToolWindowContent(myToolWindowManager.getProject(), this); } else { myContentFactory = null; // nothing // FIXME just leave initialize label } } } }
Example #2
Source File: ToolWindowBase.java From consulo with Apache License 2.0 | 3 votes |
public void setContentFactory(ToolWindowFactory contentFactory) { myContentFactory = contentFactory; contentFactory.init(this); }