edu.stanford.smi.protege.ui.PreferencesPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protege Show documentation
Show all versions of protege Show documentation
Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.
package edu.stanford.smi.protege.ui;
import edu.stanford.smi.protege.util.ValidatableTabComponent;
public class PreferencesPanel extends ValidatableTabComponent {
private static final long serialVersionUID = 102285543910901051L;
private GeneralPreferencesPanel generalPreferencesPanel;
private ConfigureProtegePropertiesPanel configureProtegePropertiesPanel;
public PreferencesPanel() {
generalPreferencesPanel = new GeneralPreferencesPanel();
configureProtegePropertiesPanel = new ConfigureProtegePropertiesPanel(null);
addTab("General", generalPreferencesPanel);
addTab("Property Files", configureProtegePropertiesPanel);
}
@Override
public void saveContents() {
/*
* We want the save order to be:
* 1.ConfigureProtegePropertiesPanel
* 2.GeneralPreferencesPanel
* so that no.2 overrides no.1
*/
configureProtegePropertiesPanel.saveContents();
generalPreferencesPanel.saveContents();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy