Search in sources :

Example 1 with KeyShortCutEditPanel

use of com.igormaznitsa.nbmindmap.nb.swing.KeyShortCutEditPanel in project netbeans-mmd-plugin by raydac.

the class MMDCfgPanel method buttonOpenShortcutEditorActionPerformed.

// GEN-LAST:event_checkBoxKnowledgeFolderAutogenerationAllowedActionPerformed
private void buttonOpenShortcutEditorActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_buttonOpenShortcutEditorActionPerformed
    final List<KeyShortcut> list = new ArrayList<KeyShortcut>();
    for (final Map.Entry<String, KeyShortcut> e : this.mapKeyShortCuts.entrySet()) {
        list.add(e.getValue());
    }
    final KeyShortCutEditPanel panel = new KeyShortCutEditPanel(list);
    if (NbUtils.plainMessageOkCancel(null, "Edit shortcuts", panel)) {
        for (final KeyShortcut s : panel.getResult()) {
            this.mapKeyShortCuts.put(s.getID(), s);
        }
        this.controller.changed();
    }
}
Also used : KeyShortcut(com.igormaznitsa.mindmap.swing.panel.utils.KeyShortcut) KeyShortCutEditPanel(com.igormaznitsa.nbmindmap.nb.swing.KeyShortCutEditPanel)

Aggregations

KeyShortcut (com.igormaznitsa.mindmap.swing.panel.utils.KeyShortcut)1 KeyShortCutEditPanel (com.igormaznitsa.nbmindmap.nb.swing.KeyShortCutEditPanel)1