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();
}
}
Aggregations