private void doAction() {
        if (action == editor.getOpenItem()) this.doOpenItem();
        if (action == editor.getNewItem()) this.doNewItem();
        if (action == editor.getSaveItem()) this.doSaveItem();
        if (action == editor.getSaveAsItem()) this.doSaveAsItem();
        if (action == editor.getOpenFolderItem()) this.doOpenFolder();
    }