How to use the ext/menus/menus.remove function in ext

To help you get started, we’ve selected a few ext examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pylonide / pylon / plugins-client / ext.searchinfiles / searchinfiles.js View on Github external
destroy : function(){
        menus.remove("Find/~", 10000);
        menus.remove("Find in Files...");

        commands.removeCommandByName("searchinfiles");

        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];
    }
}, libsearch));
github pylonide / pylon / plugins-client / ext.vim / vim.js View on Github external
destroy: function() {
        menus.remove("Tools/Vim mode");

        this.nodes.forEach(function(item) { item.destroy(); });
        this.nodes = [];
    }
});
github pylonide / pylon / plugins-client / ext.extmgr / extmgr.js View on Github external
destroy : function(){
        menus.remove("Tools/~", 1000000);
        menus.remove("Tools/Extension Manager...");
        
        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];
    }
});
github pylonide / pylon / plugins-client / ext.themes / themes.js View on Github external
destroy : function(){
        menus.remove("View/Themes");
    }
});
github pylonide / pylon / plugins-client / ext.save / save.js View on Github external
destroy : function(){
        menus.remove("File/~", 1100);
        menus.remove("File/Save All");
        menus.remove("File/Save As...");
        menus.remove("File/Save");
        menus.remove("File/~", 800);
        menus.remove("File/Revert to Saved");
        
        commands.removeCommandsByName(
            ["quicksave", "saveas", "saveall", "reverttosaved"]);
        
        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];

        tabEditors.removeEventListener("close", this.$close, true);
    }
});
github pylonide / pylon / plugins-client / ext.revisions / revisions-new.js View on Github external
destroy: function() {
        menus.remove("File/File revisions");
        menus.remove("File/~", 1000);

        commands.removeCommandByName("revisionpanel");

        if (this.saveInterval) {
            clearInterval(this.saveInterval);
        }

        this.disableEventListeners();

        tabEditors.getPages().forEach(function(page) {
            if (page.$mdlRevisions) {
                delete page.$mdlRevisions;
            }
        }, this);
github pylonide / pylon / plugins-client / ext.panels / panels.js View on Github external
destroy : function(){
        menus.remove("View/~", 200);
        
        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];
    }
});
github pylonide / pylon / plugins-client / ext.statusbar / statusbar.js View on Github external
destroy : function(){
        menus.remove("View/Status Bar");
        
        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];
    }
});
github pylonide / pylon / plugins-client / ext.recentfiles / recentfiles.js View on Github external
destroy : function(){
        menus.remove("File/Open Recent");
        this.$destroy();
    }
});
github pylonide / pylon / plugins-client / ext.statusbar / statusbar.js View on Github external
destroy : function(){
        menus.remove("View/Status Bar");
        
        this.nodes.each(function(item){
            item.destroy(true, true);
        });
        this.nodes = [];
    }
});