diff --git a/src/main/webapp/project.html b/src/main/webapp/project.html
index 21bee9488..059100eb7 100644
--- a/src/main/webapp/project.html
+++ b/src/main/webapp/project.html
@@ -1,2 +1,2 @@
-
Gridlock
+
Gridlock
starting up ...
\ No newline at end of file
diff --git a/src/main/webapp/scripts/project/menu-bar.js b/src/main/webapp/scripts/project/menu-bar.js
index 374bff8f4..4dcf5e6eb 100644
--- a/src/main/webapp/scripts/project/menu-bar.js
+++ b/src/main/webapp/scripts/project/menu-bar.js
@@ -135,5 +135,15 @@ MenuBar.prototype._doExportRows = function() {
};
MenuBar.prototype._doAutoSchemaAlignment = function() {
- SchemaAlignment.autoAlign();
+ //SchemaAlignment.autoAlign();
+ new SchemaAlignmentDialog({
+ rootNodes: [
+ {
+ nodeType: "existing",
+ column: "name",
+ linkages: [
+ ]
+ }
+ ]
+ });
};
diff --git a/src/main/webapp/scripts/project/schema-alignment.js b/src/main/webapp/scripts/project/schema-alignment.js
index f216ee081..020bdcbf9 100644
--- a/src/main/webapp/scripts/project/schema-alignment.js
+++ b/src/main/webapp/scripts/project/schema-alignment.js
@@ -88,4 +88,54 @@ SchemaAlignment._batchSearch = function(queries, onDone) {
SchemaAlignment._cleanName = function(s) {
return s.replace(/\W/g, " ").replace(/\s+/g, " ").toLowerCase();
-}
\ No newline at end of file
+}
+
+function SchemaAlignmentDialog(protograph) {
+ var protograph = {
+ rootNodes: [
+ {
+ nodeType: "existing",
+ column: "name",
+ linkages: [
+ ]
+ }
+ ]
+ };
+
+ this._createDialog();
+};
+
+SchemaAlignmentDialog.prototype._createDialog = function() {
+ var self = this;
+ var frame = DialogSystem.createDialog();
+
+ frame.width("1000px");
+
+ var header = $('').addClass("dialog-header").text("Schema Alignment").appendTo(frame);
+ var body = $('').addClass("dialog-body").appendTo(frame);
+ var footer = $('').addClass("dialog-footer").appendTo(frame);
+
+ this._renderFooter(footer);
+ this._renderBody(body);
+
+ this._level = DialogSystem.showDialog(frame);
+};
+
+SchemaAlignmentDialog.prototype._renderFooter = function(footer) {
+ var self = this;
+
+ $('').html(" OK ").click(function() {
+ DialogSystem.dismissUntil(self._level - 1);
+ self._onDone(self._getNewProtograph());
+ }).appendTo(footer);
+
+ $('').text("Cancel").click(function() {
+ DialogSystem.dismissUntil(self._level - 1);
+ }).appendTo(footer);
+};
+
+SchemaAlignmentDialog.prototype._renderBody = function(body) {
+ var self = this;
+
+ this._canvas = $('').addClass("schema-alignment-dialog-canvas").appendTo(body);
+};
diff --git a/src/main/webapp/styles/schema-alignment-dialog.css b/src/main/webapp/styles/schema-alignment-dialog.css
new file mode 100644
index 000000000..48517e2dc
--- /dev/null
+++ b/src/main/webapp/styles/schema-alignment-dialog.css
@@ -0,0 +1,5 @@
+.schema-alignment-dialog-canvas {
+ height: 500px;
+ overflow: auto;
+ border: 1px solid #aaa;
+}
\ No newline at end of file