containerLayout.setColumn(new double[]{0,0});
// add actions for the current type...
focusable = null;
ToolWindowTypeDescriptor typeDescriptor = descriptor.getTypeDescriptor(toolWindowType);
addToolWindowAction(typeDescriptor.getToolWindowAction(ToolWindowAction.HIDE_ACTION_ID));
addToolWindowAction(typeDescriptor.getToolWindowAction(ToolWindowAction.MAXIMIZE_ACTION_ID));
addToolWindowAction(typeDescriptor.getToolWindowAction(ToolWindowAction.PIN_ACTION_ID));
addToolWindowAction(typeDescriptor.getToolWindowAction(ToolWindowAction.FLOATING_ACTION_ID));
addToolWindowAction(typeDescriptor.getToolWindowAction(ToolWindowAction.DOCK_ACTION_ID));
// Add custom actions...
for (ToolWindowAction toolWindowAction : typeDescriptor.getToolWindowActions()) {
if (!(toolWindowAction instanceof PlafToolWindowAction)) {
int index = (Integer) toolWindowAction.getValue("constraint");
addToolWindowAction(toolWindowAction, index);
}
}