Permalink
Browse files

fix global variable: staruml --> app

  • Loading branch information...
1 parent 527d561 commit f421ed422006970deb5fec9288dd16139797f3ea @niklauslee niklauslee committed Jan 9, 2015
Showing with 25 additions and 29 deletions.
  1. +7 −7 CppCodeGenerator.js
  2. +4 −4 CppPreferences.js
  3. +14 −18 main.js
View
@@ -23,7 +23,7 @@
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */
-/*global define, $, _, window, staruml, type, document, cpp */
+/*global define, $, _, window, app, type, document, cpp */
define(function (require, exports, module) {
"use strict";
@@ -35,13 +35,13 @@ define(function (require, exports, module) {
var _CPP_PROTECTED_MOD = "protected";
var _CPP_PRIVATE_MOD = "private";
- var Repository = staruml.getModule("core/Repository"),
+ var Repository = app.getModule("core/Repository"),
ProjectManager = app.getModule("engine/ProjectManager"),
- Engine = staruml.getModule("engine/Engine"),
- FileSystem = staruml.getModule("filesystem/FileSystem"),
- FileUtils = staruml.getModule("file/FileUtils"),
- Async = staruml.getModule("utils/Async"),
- UML = staruml.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");
View
@@ -13,14 +13,14 @@
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */
-/*global define, $, _, window, appshell, staruml */
+/*global define, $, _, window, appshell, app */
define(function (require, exports, module) {
"use strict";
- var AppInit = staruml.getModule("utils/AppInit"),
- Core = staruml.getModule("core/Core"),
- PreferenceManager = staruml.getModule("core/PreferenceManager");
+ var AppInit = app.getModule("utils/AppInit"),
+ Core = app.getModule("core/Core"),
+ PreferenceManager = app.getModule("core/PreferenceManager");
var preferenceId = "Cpp";
View
@@ -22,25 +22,26 @@
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */
+/*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"),
- CppPreferences = require("CppPreferences"),
+ CppPreferences = require("CppPreferences"),
CppCodeGenerator = require("CppCodeGenerator"),
CppReverseEngineer = require("CppReverseEngineer");
@@ -142,11 +143,6 @@ define(function (require, exports, module) {
}
function _handleConfigure() {
- CommandManager.execute(Commands.FILE_PREFERENCES, CsharpPreferences.getId());
- }
-
-
- function _handleConfigure() {
CommandManager.execute(Commands.FILE_PREFERENCES, CppPreferences.getId());
}

0 comments on commit f421ed4

Please sign in to comment.