Permalink
Browse files

update for API changes

  • Loading branch information...
1 parent 00a198d commit 28a9b6ab5168cdc6d633797dfda09a6e811b01a6 @niklauslee niklauslee committed Nov 4, 2014
Showing with 16 additions and 13 deletions.
  1. +11 −10 JavaCodeGenerator.js
  2. +3 −2 JavaReverseEngineer.js
  3. +1 −1 main.js
  4. +1 −0 unittests.js
View
@@ -27,12 +27,13 @@
define(function (require, exports, module) {
"use strict";
- var Repository = app.getModule("engine/Repository"),
- 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 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");
var CodeGenUtils = require("CodeGenUtils");
@@ -446,8 +447,8 @@ define(function (require, exports, module) {
// Doc
var doc = elem.documentation.trim();
- if (Repository.getProject().author && Repository.getProject().author.length > 0) {
- doc += "\n@author " + Repository.getProject().author;
+ if (ProjectManager.getProject().author && ProjectManager.getProject().author.length > 0) {
+ doc += "\n@author " + ProjectManager.getProject().author;
}
this.writeDoc(codeWriter, doc, options);
@@ -659,8 +660,8 @@ define(function (require, exports, module) {
// Doc
var doc = elem.documentation.trim();
- if (Repository.getProject().author && Repository.getProject().author.length > 0) {
- doc += "\n@author " + Repository.getProject().author;
+ if (ProjectManager.getProject().author && ProjectManager.getProject().author.length > 0) {
+ doc += "\n@author " + ProjectManager.getProject().author;
}
this.writeDoc(codeWriter, doc, options);
@@ -27,7 +27,8 @@ define(function (require, exports, module) {
"use strict";
var Core = app.getModule("core/Core"),
- Repository = app.getModule("engine/Repository"),
+ Repository = app.getModule("core/Repository"),
+ ProjectManager = app.getModule("engine/ProjectManager"),
CommandManager = app.getModule("command/CommandManager"),
UML = app.getModule("uml/UML"),
FileSystem = app.getModule("filesystem/FileSystem"),
@@ -158,7 +159,7 @@ define(function (require, exports, module) {
var writer = new Core.Writer();
writer.writeObj("data", self._root);
var json = writer.current.data;
- Repository.importFromJson(Repository.getProject(), json);
+ ProjectManager.importFromJson(ProjectManager.getProject(), json);
});
// Generate Diagrams
View
@@ -28,7 +28,7 @@ define(function (require, exports, module) {
"use strict";
var AppInit = app.getModule("utils/AppInit"),
- Repository = app.getModule("engine/Repository"),
+ Repository = app.getModule("core/Repository"),
Engine = app.getModule("engine/Engine"),
Commands = app.getModule("command/Commands"),
CommandManager = app.getModule("command/CommandManager"),
View
@@ -20,6 +20,7 @@ define(function (require, exports, module) {
// Modules from the SpecRunner window
var Repository, // loaded from app.test
+ ProjectManager, // loaded from app.test
CommandManager, // loaded from app.test
Commands, // loaded from app.test
Dialogs, // loaded from app.test

0 comments on commit 28a9b6a

Please sign in to comment.