public static class ToolWindowHeadlessManagerImpl.MockToolWindow extends java.lang.Object implements ToolWindowEx
ToolWindow.BorderSHOW_CONTENT_ICON| Constructor and Description |
|---|
MockToolWindow(Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(java.lang.Runnable runnable) |
void |
activate(java.lang.Runnable runnable,
boolean autoFocusContents) |
void |
activate(java.lang.Runnable runnable,
boolean autoFocusContents,
boolean forced) |
void |
addContentManagerListener(ContentManagerListener listener) |
ToolWindowAnchor |
getAnchor() |
javax.swing.JComponent |
getComponent() |
ContentManager |
getContentManager() |
ContentManager |
getContentManagerIfCreated() |
ToolWindowContentUiType |
getContentUiType() |
InternalDecorator |
getDecorator() |
Disposable |
getDisposable() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getId() |
ToolWindowType |
getInternalType() |
Project |
getProject() |
ActionCallback |
getReady(java.lang.Object requestor) |
java.lang.String |
getStripeTitle() |
java.lang.String |
getTitle() |
ToolWindowType |
getType() |
void |
hide(java.lang.Runnable runnable)
Hides tool window.
|
void |
installWatcher(ContentManager contentManager) |
boolean |
isActive() |
boolean |
isAutoHide() |
boolean |
isAvailable() |
boolean |
isDisposed() |
boolean |
isShowStripeButton() |
boolean |
isSplitMode() |
boolean |
isVisible() |
void |
remove()
Delete tool window.
|
void |
setAdditionalGearActions(ActionGroup additionalGearActions) |
void |
setAnchor(ToolWindowAnchor anchor,
java.lang.Runnable runnable) |
void |
setAutoHide(boolean state) |
void |
setAvailable(boolean value) |
void |
setAvailable(boolean available,
java.lang.Runnable runnable)
Sets whether the tool window available or not.
|
void |
setContentUiType(ToolWindowContentUiType type,
java.lang.Runnable runnable) |
void |
setDefaultContentUiType(ToolWindowContentUiType type) |
void |
setDefaultState(ToolWindowAnchor anchor,
ToolWindowType type,
java.awt.Rectangle floatingBounds) |
void |
setIcon(javax.swing.Icon icon)
Sets new window icon.
|
void |
setShowStripeButton(boolean show) |
void |
setSplitMode(boolean isSideTool,
java.lang.Runnable runnable)
There are four base
anchors for Tool Window: TOP, LEFT, BOTTOM, RIGHT. |
void |
setStripeTitle(java.lang.String title)
Sets new window stripe button text.
|
void |
setTabActions(AnAction... actions) |
void |
setTabDoubleClickActions(java.util.List<AnAction> actions) |
void |
setTitle(java.lang.String title)
Sets new window title.
|
void |
setTitleActions(AnAction... actions) |
void |
setToHideOnEmptyContent(boolean hideOnEmpty) |
void |
setType(ToolWindowType type,
java.lang.Runnable runnable) |
void |
show(java.lang.Runnable runnable) |
void |
showContentPopup(java.awt.event.InputEvent inputEvent) |
void |
stretchHeight(int value) |
void |
stretchWidth(int value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetUseLastFocusedOnActivationgetActivation, getHelpId, hide, setHelpId, showpublic MockToolWindow(Project project)
public Project getProject()
getProject in interface ToolWindowExpublic Disposable getDisposable()
getDisposable in interface ToolWindowpublic void remove()
ToolWindowremove in interface ToolWindowpublic java.lang.String getId()
getId in interface ToolWindowpublic boolean isActive()
isActive in interface ToolWindowpublic void activate(java.lang.Runnable runnable)
activate in interface ToolWindowrunnable - A command to execute right after the window gets activated. The call is asynchronous since it may require animation.public boolean isDisposed()
isDisposed in interface ToolWindowpublic boolean isVisible()
isVisible in interface ToolWindowpublic void setShowStripeButton(boolean show)
setShowStripeButton in interface ToolWindowshow - if false stripe button should be hidden.public boolean isShowStripeButton()
isShowStripeButton in interface ToolWindowpublic ActionCallback getReady(java.lang.Object requestor)
public void show(java.lang.Runnable runnable)
show in interface ToolWindowrunnable - A command to execute right after the window shows up. The call is asynchronous since it may require animation.public void hide(java.lang.Runnable runnable)
ToolWindowhide in interface ToolWindowrunnable - A command to execute right after the window hides. The call is asynchronous since it may require animation.public ToolWindowAnchor getAnchor()
getAnchor in interface ToolWindowpublic void setAnchor(ToolWindowAnchor anchor, java.lang.Runnable runnable)
setAnchor in interface ToolWindowpublic boolean isSplitMode()
isSplitMode in interface ToolWindowpublic void setSplitMode(boolean isSideTool,
java.lang.Runnable runnable)
ToolWindowanchors for Tool Window: TOP, LEFT, BOTTOM, RIGHT.
For each anchor there are two groups tool windows - not split and split for better organizing.
For example, you can see two actions in Move To group: Left Top and Left Bottom.
'Left' here is anchor or side where the button is located,
'Top' and 'Bottom' are two subsets of buttons (not split and split).setSplitMode in interface ToolWindowToolWindowAnchorpublic boolean isAutoHide()
isAutoHide in interface ToolWindowpublic void setAutoHide(boolean state)
setAutoHide in interface ToolWindowpublic void setToHideOnEmptyContent(boolean hideOnEmpty)
setToHideOnEmptyContent in interface ToolWindowpublic ToolWindowType getType()
getType in interface ToolWindowpublic void setType(ToolWindowType type, java.lang.Runnable runnable)
setType in interface ToolWindowpublic javax.swing.Icon getIcon()
getIcon in interface ToolWindownull if window has no icon.public void setIcon(javax.swing.Icon icon)
ToolWindowsetIcon in interface ToolWindowpublic java.lang.String getTitle()
getTitle in interface ToolWindownull if window has no title.public void setTitle(java.lang.String title)
ToolWindowsetTitle in interface ToolWindowpublic java.lang.String getStripeTitle()
getStripeTitle in interface ToolWindowpublic void setStripeTitle(java.lang.String title)
ToolWindowsetStripeTitle in interface ToolWindowpublic boolean isAvailable()
isAvailable in interface ToolWindowpublic void setContentUiType(ToolWindowContentUiType type, java.lang.Runnable runnable)
setContentUiType in interface ToolWindowpublic void setDefaultContentUiType(ToolWindowContentUiType type)
setDefaultContentUiType in interface ToolWindowpublic ToolWindowContentUiType getContentUiType()
getContentUiType in interface ToolWindowpublic void setAvailable(boolean available,
java.lang.Runnable runnable)
ToolWindowsetAvailable in interface ToolWindowpublic void setAvailable(boolean value)
setAvailable in interface ToolWindowpublic void installWatcher(ContentManager contentManager)
installWatcher in interface ToolWindowpublic javax.swing.JComponent getComponent()
getComponent in interface ToolWindowpublic ContentManager getContentManager()
getContentManager in interface ToolWindowpublic ContentManager getContentManagerIfCreated()
getContentManagerIfCreated in interface ToolWindowpublic void addContentManagerListener(ContentManagerListener listener)
addContentManagerListener in interface ToolWindowpublic void setDefaultState(ToolWindowAnchor anchor, ToolWindowType type, java.awt.Rectangle floatingBounds)
setDefaultState in interface ToolWindowpublic void activate(java.lang.Runnable runnable,
boolean autoFocusContents)
activate in interface ToolWindowpublic void activate(java.lang.Runnable runnable,
boolean autoFocusContents,
boolean forced)
activate in interface ToolWindowpublic void showContentPopup(java.awt.event.InputEvent inputEvent)
showContentPopup in interface ToolWindowpublic ToolWindowType getInternalType()
getInternalType in interface ToolWindowExpublic void stretchWidth(int value)
stretchWidth in interface ToolWindowExpublic void stretchHeight(int value)
stretchHeight in interface ToolWindowExpublic InternalDecorator getDecorator()
getDecorator in interface ToolWindowExpublic void setAdditionalGearActions(ActionGroup additionalGearActions)
setAdditionalGearActions in interface ToolWindowExpublic void setTitleActions(AnAction... actions)
setTitleActions in interface ToolWindowExpublic void setTabActions(AnAction... actions)
setTabActions in interface ToolWindowExpublic void setTabDoubleClickActions(java.util.List<AnAction> actions)
setTabDoubleClickActions in interface ToolWindowEx