if (!HiViewerFactory.isWindowMenuAttachedToTaskBar()) { attachListeners(HiViewerFactory.getWindowMenu()); HiViewerFactory.attachWindowMenuToTaskBar(); }
attachListeners(HiViewerFactory.getWindowMenu()); HiViewerFactory.attachWindowMenuToTaskBar();
    void initialize(HiViewerWin view)    {        if (view == null) throw new NullPointerException("No view.");        this.view = view;        historyState = -1;        model.addChangeListener(this);         if (!HiViewerFactory.isWindowMenuAttachedToTaskBar()) {            attachListeners(HiViewerFactory.getWindowMenu());            HiViewerFactory.attachWindowMenuToTaskBar();        }     }