use of pcgen.gui2.prefs.PCGenPrefsPanel in project pcgen by PCGen.
the class PreferencesPluginsPanel method applyOptionValuesToControls.
private void applyOptionValuesToControls() {
for (PCGenPrefsPanel prefsPanel : panelList) {
prefsPanel.applyOptionValuesToControls();
}
// Copy Settings
copySettingsPanel.registerAffectedPanel(characterStatsPanel);
copySettingsPanel.registerAffectedPanel(defaultsPanel);
copySettingsPanel.registerAffectedPanel(languagePanel);
}
use of pcgen.gui2.prefs.PCGenPrefsPanel in project pcgen by PCGen.
the class PreferencesPluginsPanel method setOptionsBasedOnControls.
private void setOptionsBasedOnControls() {
boolean needsRestart = false;
for (PCGenPrefsPanel prefsPanel : panelList) {
prefsPanel.setOptionsBasedOnControls();
needsRestart |= prefsPanel.needsRestart();
}
if (needsRestart) {
JOptionPane.showMessageDialog(getParent(), //$NON-NLS-1$
LanguageBundle.getString("in_Prefs_restartRequired"), Constants.APPLICATION_NAME, JOptionPane.INFORMATION_MESSAGE);
}
// Now get any panels affected to refresh
// CharacterInfo ci = PCGen_Frame1.getCharacterPane();
// if (ci != null)
// {
// ci.refresh();
// }
}
Aggregations