-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
35 lines (28 loc) · 1.15 KB
/
main.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
31
32
33
34
35
/*!
* Corona SDK brackets extension
* Copyright (c) 2014 Gerardo Pérez
* See the file license.txt for copying permission.
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4,
maxerr: 50, browser: true */
/*global $, define, brackets */
define(function (require, exports, module) {
"use strict";
require("api/brackets");
require("api/events");
require("api/output");
var CoronaPanel = require("api/panel");
var CommandManager = brackets.getModule("command/CommandManager"),
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
Menus = brackets.getModule("command/Menus");
var constant = require("api/constants");
var EventEmitter = require("api/EventEmitter");
ExtensionUtils.loadStyleSheet(module, "gui/css/panel.css");
ExtensionUtils.loadStyleSheet(module, "gui/css/output.css");
CommandManager.register("Lauch Project",constant.cmdLaunch,function(){
EventEmitter.emit("LauchProject");
});
var launch = Menus.addMenu(constant.project, constant.cmdLaunch+".menu" );
launch.addMenuItem(constant.cmdLaunch);
CoronaPanel.init();
});