private static boolean algebraVisible(Perspective p2) { if (p2 == null || p2.getDockPanelData() == null) { return false; } for (DockPanelData dp : p2.getDockPanelData()) { if (dp.getViewId() == App.VIEW_ALGEBRA) { return dp.isVisible() && !dp.isOpenInFrame(); } } return false; }
/** * Check if just the euclidian view is visible in the document just loaded. * * @return */ private boolean isJustEuclidianVisible() { if (tmpPerspectives == null) { return true; } Perspective docPerspective = getTmpPerspective(null); if (docPerspective == null) { return true; } boolean justEuclidianVisible = false; for (DockPanelData panel : docPerspective.getDockPanelData()) { if ((panel.getViewId() == App.VIEW_EUCLIDIAN) && panel.isVisible()) { justEuclidianVisible = true; } else if (panel.isVisible()) { justEuclidianVisible = false; break; } } return justEuclidianVisible; }