-
Notifications
You must be signed in to change notification settings - Fork 20
/
Menu.js
30 lines (23 loc) · 943 Bytes
/
Menu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Ternific Copyright (c) 2014 Miguel Castillo.
*
* Licensed under MIT
*/
define(function(require, exports /*, module*/) {
"use strict";
var CommandManager = brackets.getModule("command/CommandManager");
var EventDispatcher = brackets.getModule("utils/EventDispatcher");
var Commands = brackets.getModule("command/Commands");
var Menus = brackets.getModule("command/Menus");
function menuSelected() {
exports.events.trigger("ternific");
}
function registerMenu() {
var MANAGER_COMMAND_ID = "brackets-ternific.manager";
CommandManager.register("Ternific\u2026", MANAGER_COMMAND_ID, menuSelected);
Menus.getMenu(Menus.AppMenuBar.FILE_MENU).addMenuItem(MANAGER_COMMAND_ID, "", Menus.AFTER, Commands.FILE_PROJECT_SETTINGS);
}
exports.events = {};
exports.init = registerMenu;
EventDispatcher.makeEventDispatcher(exports.events);
});