toolWindow.setType(ToolWindowType.DOCKED);
}
}
public void propertyChange(PropertyChangeEvent evt) {
ToolWindowType type = (ToolWindowType) evt.getNewValue();
switch (type) {
case DOCKED:
putValue(Action.SMALL_ICON, resourceManager.getIcon(MyDoggyKeySpace.SLIDING));
putValue(Action.SHORT_DESCRIPTION, resourceManager.getString("@@tool.tooltip.undock"));
setVisible(((SlidingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.SLIDING)).isEnabled());