/** * Set the main application. Gives other perspectives access to information * provided by the main application * * @param application the main application */ @Override public void setMainApplication(GUIApplication application) { super.setMainApplication(application); m_mainKFPerspective = (MainKFPerspective) m_mainApplication.getPerspectiveManager() .getPerspective(KFDefaults.APP_ID); if (m_mainKFPerspective == null) { remove(m_buttonHolder); } }
/** * Set the main application. Gives other perspectives access to information * provided by the main application * * @param application the main application */ @Override public void setMainApplication(GUIApplication application) { super.setMainApplication(application); m_mainKFPerspective = (MainKFPerspective) m_mainApplication.getPerspectiveManager() .getPerspective(KFDefaults.APP_ID); if (m_mainKFPerspective == null) { remove(m_buttonHolder); } }
} else if (getMainApplication() != null) { Perspective p = getMainApplication().getPerspectiveManager().getPerspective( PreprocessPanel.PreprocessDefaults.ID); preprocessPanel = (PreprocessPanel) p;
} else if (getMainApplication() != null) { Perspective p = getMainApplication().getPerspectiveManager().getPerspective( PreprocessPanel.PreprocessDefaults.ID); preprocessPanel = (PreprocessPanel) p;