GavriYashar / Matlab-Editor-Plugin

Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
MIT License
74 stars 12 forks source link

While Matlab is busy editing in editor is not always working correctly #42

Open GavriYashar opened 8 years ago

GavriYashar commented 8 years ago

Using KeyListeners for EditorSyntaxTextPane is not the smartest thing to do.

GavriYashar commented 8 years ago

it is partionally fixed by:

but Bookmarks still causing problems. directly on startup the added keybinding works, but after startup matlab somehow overwrites keybindings:

    estp = at.mep.util.ComponentUtil.getEditorSyntaxTextPaneForEditor(...
                     at.mep.editor.EditorWrapper.gae());
    estp.getInputMap(0);
    inputmap = estp.getInputMap(0);
    actionmap = estp.getActionMap();
    ikeys = inputmap.allKeys;
    akeys = actionmap.allKeys;

    actionmap.get('toggle-bookmark')
    actionmap.get('MEP_BOOKMARK')
    actionmap.get('MEP_SHOW_BOOKMARKS')
    actionmap.get('MEP_COPY_CLIP_BOARD')

Also custom commands KeyReleasedHandler:addMatlabCallback must be rewritten to use keystrokes -> good documentation