public void perform(DockingWindow window) {
    TabWindow tabWindow = DockingUtil.getTabWindowFor(window);

    if (tabWindow != null && !tabWindow.isMaximized() && tabWindow.isMaximizable())
      tabWindow.maximize();
  }
  public boolean isPerformable(DockingWindow window) {
    if (!window.isMaximizable()) return false;

    TabWindow tabWindow = DockingUtil.getTabWindowFor(window);
    return tabWindow != null && !tabWindow.isMaximized() && tabWindow.isMaximizable();
  }