Search in sources :

Example 1 with PreferencesPanel

use of com.igormaznitsa.sciareto.preferences.PreferencesPanel in project netbeans-mmd-plugin by raydac.

the class MainFrame method editPreferences.

@Override
public void editPreferences() {
    final PreferencesPanel configPanel = new PreferencesPanel(this);
    configPanel.load(PreferencesManager.getInstance().getPreferences());
    if (DialogProviderManager.getInstance().getDialogProvider().msgOkCancel(null, "Preferences", configPanel)) {
        configPanel.save();
        for (final TabTitle t : this.tabPane) {
            t.getProvider().updateConfiguration();
        }
    }
}
Also used : PreferencesPanel(com.igormaznitsa.sciareto.preferences.PreferencesPanel) TabTitle(com.igormaznitsa.sciareto.ui.tabs.TabTitle)

Aggregations

PreferencesPanel (com.igormaznitsa.sciareto.preferences.PreferencesPanel)1 TabTitle (com.igormaznitsa.sciareto.ui.tabs.TabTitle)1