Skip to content

Commit

Permalink
fix global variable: staruml --> app
Browse files Browse the repository at this point in the history
  • Loading branch information
niklauslee committed Jan 9, 2015
1 parent e6fc75a commit 317ac46
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions CsharpCodeGenerator.js
Expand Up @@ -27,13 +27,13 @@
define(function (require, exports, module) {
"use strict";

var Repository = app.getModule("core/Repository"),
var Repository = app.getModule("core/Repository"),
ProjectManager = app.getModule("engine/ProjectManager"),
Engine = app.getModule("engine/Engine"),
FileSystem = app.getModule("filesystem/FileSystem"),
FileUtils = app.getModule("file/FileUtils"),
Async = app.getModule("utils/Async"),
UML = app.getModule("uml/UML");
Engine = app.getModule("engine/Engine"),
FileSystem = app.getModule("filesystem/FileSystem"),
FileUtils = app.getModule("file/FileUtils"),
Async = app.getModule("utils/Async"),
UML = app.getModule("uml/UML");

var CodeGenUtils = require("CodeGenUtils");

Expand Down
40 changes: 20 additions & 20 deletions main.js
Expand Up @@ -20,39 +20,39 @@
* DEALINGS IN THE SOFTWARE.
*
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */
/*global define, $, _, window, staruml, type, appshell, document */
/*global define, $, _, window, app, type, appshell, document */

define(function (require, exports, module) {
"use strict";
var AppInit = staruml.getModule("utils/AppInit"),
Repository = staruml.getModule("core/Repository"),
Engine = staruml.getModule("engine/Engine"),
Commands = staruml.getModule("command/Commands"),
CommandManager = staruml.getModule("command/CommandManager"),
MenuManager = staruml.getModule("menu/MenuManager"),
Dialogs = staruml.getModule("dialogs/Dialogs"),
ElementPickerDialog = staruml.getModule("dialogs/ElementPickerDialog"),
FileSystem = staruml.getModule("filesystem/FileSystem"),
FileSystemError = staruml.getModule("filesystem/FileSystemError"),
ExtensionUtils = staruml.getModule("utils/ExtensionUtils"),
UML = staruml.getModule("uml/UML");

var AppInit = app.getModule("utils/AppInit"),
Repository = app.getModule("core/Repository"),
Engine = app.getModule("engine/Engine"),
Commands = app.getModule("command/Commands"),
CommandManager = app.getModule("command/CommandManager"),
MenuManager = app.getModule("menu/MenuManager"),
Dialogs = app.getModule("dialogs/Dialogs"),
ElementPickerDialog = app.getModule("dialogs/ElementPickerDialog"),
FileSystem = app.getModule("filesystem/FileSystem"),
FileSystemError = app.getModule("filesystem/FileSystemError"),
ExtensionUtils = app.getModule("utils/ExtensionUtils"),
UML = app.getModule("uml/UML");

var CodeGenUtils = require("CodeGenUtils"),
CsharpPreferences = require("CsharpPreferences"),
CsharpCodeGenerator = require("CsharpCodeGenerator"),
CsharpReverseEngineer = require("CsharpReverseEngineer");

/**
* Commands IDs
*/
var CMD_CSHARP = "csharp",
CMD_CSHARP_GENERATE = "csharp.generate",
CMD_CSHARP_REVERSE = "csharp.reverse",
CMD_CSHARP_CONFIGURE = "csharp.configure";

/**
* Command Handler for C# Generate
*
Expand Down Expand Up @@ -117,7 +117,7 @@ define(function (require, exports, module) {
return result.promise();
}


/**
* Command Handler for C# Reverse
*
Expand Down Expand Up @@ -166,4 +166,4 @@ define(function (require, exports, module) {
menuItem.addMenuItem(CMD_CSHARP_REVERSE);
menuItem.addMenuDivider();
menuItem.addMenuItem(CMD_CSHARP_CONFIGURE);
});
});

0 comments on commit 317ac46

Please sign in to comment.