Skip to content

Commit

Permalink
"show options" context menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Bardanov committed Feb 6, 2015
1 parent ff605ad commit c457b32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions services/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ define(function(require, exports, module){

storage.setKey(storageRulesKey, colorRules);

console.log(MainViewManager.getPaneIdList());

_.each(MainViewManager.getPaneIdList(), function(paneId){
MainViewManager.trigger('workingSetUpdate', [null, paneId]);
});
});

this.showOptionsCommand = CommandManager.register('Show extension options', 'dte_showOptions', function(){
ModalService.showHandler();
});

this.moveToOtherPanel = CommandManager.register('Move to another panel', 'dte_moveToAnotherPanel', function(){
//NOT IMPLEMENTED YET UNTIL BRACKETS PANEL API WILL BE USABLE
var file = self.context,
Expand Down Expand Up @@ -113,6 +115,7 @@ define(function(require, exports, module){

self.menu.addMenuItem(self.moveToOtherPanel);
self.menu.addMenuDivider();
self.menu.addMenuItem(self.showOptionsCommand);
self.menu.addMenuItem(self.addNewRuleCommand);
self.menu.addMenuItem(self.clearRuleCommand);
}, 100);
Expand All @@ -132,7 +135,7 @@ define(function(require, exports, module){
this.menu.addMenuItem(this.clearRuleCommand);
this.addNewRuleCommand.setName('Change tab colors');
} else {
this.addNewRuleCommand.setName('Set tab colors');
this.addNewRuleCommand.setName('Set current tab colors');
}

setTimeout(function(){
Expand Down

0 comments on commit c457b32

Please sign in to comment.