diff --git a/README.md b/README.md index 4ce46749..56a5ced1 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,9 @@ Start by creating the .zip file: To test the javascript frontend you then do: - unzip target/wisemapping-3.0-SNAPSHOT-editor.zip - cd target/wisemapping-3.0-SNAPSHOT-editor - ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>8000,:DocumentRoot=>".").start' + ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>8000,:DocumentRoot=>".").start' -Now open a browser using the URL http://localhost:8000/ +Now open a browser using the URL http://localhost:8000/wise-editor/src/main/webapp/ ### Attaching drag and drop events. diff --git a/mindplot/pom.xml b/mindplot/pom.xml index b14e8490..d7eeed5f 100644 --- a/mindplot/pom.xml +++ b/mindplot/pom.xml @@ -193,9 +193,6 @@ commands/AddFeatureToTopicCommand.js commands/AddRelationshipCommand.js commands/MoveControlPointCommand.js - collaboration/CollaborationManager.js - collaboration/framework/AbstractCollaborativeFramework.js - collaboration/framework/AbstractCollaborativeModelFactory.js widget/ModalDialogNotifier.js widget/ToolbarNotifier.js widget/ToolbarItem.js diff --git a/mindplot/src/main/javascript/CollabActionDispatcher.js b/mindplot/src/main/javascript/CollabActionDispatcher.js deleted file mode 100644 index e194e0d1..00000000 --- a/mindplot/src/main/javascript/CollabActionDispatcher.js +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.BrixActionDispatcher = new Class({ - Extends: mindplot.ActionDispatcher, - initialize: function(commandContext, fireOnChange) { - this.parent(commandContext, fireOnChange); - this._commandContext = commandContext; - }, - - dragTopic: function(topicId, position, order, parentTopic) { - var framework = this._getFramework(); - var node = framework.getTopic(topicId); - - // Set node order ... - if (order != null) { - node.setOrder(order); - } else if (position != null) { - // Set position ... - node.setPosition(position); - } else { - $assert("Illegal commnand state exception."); - } - // Finally, connect node ... - if ($defined(this._parentId)) { - var parentNode = topic.findTopics([this._parentId])[0]; - node.disconnect(); - node.connect(parentNode); - } - }, - - changeTextToTopic : function(topicsIds, text) { - var framework = this._getFramework(); - var topicId; - if (!(topicsIds instanceof Array)) { - topicId = topicsIds; - } else { - topicId = topicsIds[0]; - } - var node = framework.getTopic(topicId); - node.setText(text); - - }, - - _getFramework:function () { - return mindplot.collaboration.CollaborationManager.getInstance().getCollaborativeFramework(); - }, - - addTopics : function(nodeModel, parentTopicId) { - var framework = this._getFramework(); - var cmindmap = framework.getModel(); - - var cparent = $defined(parentTopicId) ? framework.getTopic(parentTopicId) : cmindmap.getCentralTopic(); - var cnode = cmindmap.createNode(nodeModel.getType(), nodeModel.getId()); - nodeModel.copyTo(cnode); - - cnode.connectTo(cparent); - }, - - changeFontSizeToTopic : function(topicsIds, size) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setFontSize(size, true); - }.bind(this)); - }, - - changeFontColorToTopic : function(topicsIds, color) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setFontColor(color, true); - }.bind(this)); - }, - - changeFontFamilyToTopic : function(topicsIds, family) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setFontFamily(family, true); - }.bind(this)); - }, - - changeFontStyleToTopic : function(topicsIds) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - var style = ( topic.getFontStyle() == "italic") ? "normal" : "italic"; - topic.setFontStyle(style, true); - }.bind(this)); - }, - - changeShapeTypeToTopic : function(topicsIds, shapeType) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setShapeType(shapeType); - }.bind(this)) - }, - - changeFontWeightToTopic : function(topicsIds) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - var weight = (topic.getFontWeight() == "bold") ? "normal" : "bold"; - topic.setFontWeight(weight, true); - }.bind(this)); - }, - - changeBackgroundColorToTopic : function(topicsIds, color) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setBackgroundColor(color, true); - }.bind(this)); - - }, - - changeBorderColorToTopic : function(topicsIds, color) { - topicsIds.each(function(topicId) { - var framework = this._getFramework(); - var topic = framework.getTopic(topicId); - topic.setBorderColor(color); - }.bind(this)); - }, - - deleteEntities : function(topicsIds, relIds) { - $assert(topicsIds, "topicsIds can not be null"); - var framework = this._getFramework(); - var mindmap = framework.getModel(); - - topicsIds.each(function(topicId) { - var topic = framework.getTopic(topicId); - topic.deleteNode(); - }); - } -}); - diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index 1564c4ba..a0854923 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -33,11 +33,7 @@ mindplot.Designer = new Class({ // Dispatcher manager ... var commandContext = new mindplot.CommandContext(this); - if (!$defined(options.collab) || options.collab == 'standalone') { - this._actionDispatcher = new mindplot.StandaloneActionDispatcher(commandContext); - } else { - this._actionDispatcher = new mindplot.BrixActionDispatcher(commandContext); - } + this._actionDispatcher = new mindplot.StandaloneActionDispatcher(commandContext); this._actionDispatcher.addEvent("modelUpdate", function (event) { this.fireEvent("modelUpdate", event); diff --git a/mindplot/src/main/javascript/collaboration/CollaborationManager.js b/mindplot/src/main/javascript/collaboration/CollaborationManager.js deleted file mode 100644 index 80ea67a6..00000000 --- a/mindplot/src/main/javascript/collaboration/CollaborationManager.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.collaboration.CollaborationManager = new Class({ - initialize:function() { - this.collaborativeModelReady = false; - this.collaborativeModelReady = null; - }, - - setCollaborativeFramework : function(framework) { - this._collaborativeFramework = framework; - }, - - buildMindmap: function() { - return this._collaborativeFramework.buildMindmap(); - }, - - getCollaborativeFramework:function() { - return this._collaborativeFramework; - } - -}); - -mindplot.collaboration.CollaborationManager.getInstance = function() { - if (!$defined(mindplot.collaboration.CollaborationManager.__collaborationManager)) { - mindplot.collaboration.CollaborationManager.__collaborationManager = new mindplot.collaboration.CollaborationManager(); - } - return mindplot.collaboration.CollaborationManager.__collaborationManager; -}; -mindplot.collaboration.CollaborationManager.getInstance(); diff --git a/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeFramework.js b/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeFramework.js deleted file mode 100644 index b14e44d8..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeFramework.js +++ /dev/null @@ -1,54 +0,0 @@ -mindplot.collaboration.framework.AbstractCollaborativeFramework = new Class({ - initialize: function(model) { - $assert(model, "model can not be null"); - this._model = model; - this._actionDispatcher = null; - }, - - getModel : function() { - return this._model; - }, - - buildMindmap : function() { - - var cmind = this.getModel(); - var mmind = new mindplot.model.Mindmap(); - cmind.copyTo(mmind); - return mmind; - }, - - _findTopic : function(nodes, id) { - var result; - for (var i = 0; i < nodes.length; i++) { - var node = nodes[i]; - if (node.getId() == id) { - result = node; - } else { - var children = node.getChildren(); - result = this._findTopic(children, id) - } - - if (result != null) { - break; - } - } - return result; - }, - - getTopic:function(id) { - $assert($defined(id), "id can not be null"); - var branches = this.getModel().getBranches(); - var result = this._findTopic(branches, id); - $assert(result, "Could not find topic:" + id); - return result; - }, - - getActionDispatcher:function() { - if (this._actionDispatcher == null) { - var context = mindplot.ActionDispatcher.getInstance()._commandContext; - this._actionDispatcher = new mindplot.StandaloneActionDispatcher(context); - } - return this._actionDispatcher; - } - -}); \ No newline at end of file diff --git a/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeModelFactory.js b/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeModelFactory.js deleted file mode 100644 index f1447359..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/AbstractCollaborativeModelFactory.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.collaboration.framework.AbstractCollaborativeModelFactory = new Class({ - createNewMindmap:function() { - throw "Unsupported operation"; - }, - buildMindmap:function(model) { - throw "Unsupported operation"; - } -}); \ No newline at end of file diff --git a/mindplot/src/main/javascript/collaboration/framework/collab/BrixCollaborativeModelFactory.js b/mindplot/src/main/javascript/collaboration/framework/collab/BrixCollaborativeModelFactory.js deleted file mode 100644 index cdcab900..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/collab/BrixCollaborativeModelFactory.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.collaboration.framework.brix.BrixCollaborativeModelFactory = new Class({ - Extends:mindplot.collaboration.framework.AbstractCollaborativeModelFactory, - initialize:function(brixFramework) { - $assert(brixFramework, 'brixFramework can not be null'); - this._brixFramework = brixFramework; - }, - - createNewMindmap : function() { - var mindmap = new mindplot.collaboration.framework.brix.model.Mindmap(this._brixFramework); - var node = mindmap.createNode(mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE, 0); - mindmap.setVersion('pela-brix'); - mindmap.addBranch(node); - return mindmap; - }, - - buildMindmap : function(model) { - return new mindplot.collaboration.framework.brix.model.Mindmap(this._brixFramework, model); - } -}); \ No newline at end of file diff --git a/mindplot/src/main/javascript/collaboration/framework/collab/BrixFramework.js b/mindplot/src/main/javascript/collaboration/framework/collab/BrixFramework.js deleted file mode 100644 index 06cfecfa..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/collab/BrixFramework.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.collaboration.framework.brix.BrixFramework = new Class({ - Extends: mindplot.collaboration.framework.AbstractCollaborativeFramework, - initialize: function(model, app) { - this._app = app; - var factory = new mindplot.collaboration.framework.brix.BrixCollaborativeModelFactory(this); - var root = this.getBrixModel().getRoot(); - var cmodel = null; - var brixMap = root.get("mindmap"); - if (brixMap != null) { - cmodel = factory.buildMindmap(brixMap); - } else { - cmodel = factory.createNewMindmap(); - root.put("mindmap", cmodel.getBrixModel()); - } - this.parent(cmodel); - console.log("cmodel:" + cmodel.inspect()); - }, - - getBrixModel:function() { - return this._app.getModel(); - } - -}); - -instanciated = false; -mindplot.collaboration.framework.brix.BrixFramework.init = function(onload) { - $assert(onload, "load function can not be null"); - - if (!instanciated) { - var app = new goog.collab.CollaborativeApp(); - mindplot.collaboration.framework.brix.BrixFramework.buildMenu(app); - app.start(); - - app.addListener('modelLoad', function(model) { - var framework = new mindplot.collaboration.framework.brix.BrixFramework(model, app); - mindplot.collaboration.CollaborationManager.getInstance().setCollaborativeFramework(framework); - onload(); - }.bind(this)); - instanciated = true; - } -}; - -mindplot.collaboration.framework.brix.BrixFramework.buildMenu = function(app) { - var menuBar = new goog.collab.ui.MenuBar(); - - // Configure toolbar menu ... - var fileMenu = menuBar.addSubMenu("File"); - fileMenu.addItem("Save", function() { - }); - fileMenu.addItem("Export", function() { - }); - - var editMenu = menuBar.addSubMenu("Edit"); - editMenu.addItem("Undo", function() { - }); - editMenu.addItem("Redo", function() { - }); - - var formatMenu = menuBar.addSubMenu("Format"); - formatMenu.addItem("Bold", function() { - }); - - var helpMenu = menuBar.addSubMenu("Help"); - helpMenu.addItem("Shortcuts", function() { - }); - - app.setMenuBar(menuBar); -}; - - diff --git a/mindplot/src/main/javascript/collaboration/framework/collab/model/Mindmap.js b/mindplot/src/main/javascript/collaboration/framework/collab/model/Mindmap.js deleted file mode 100644 index 69566a51..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/collab/model/Mindmap.js +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -mindplot.collaboration.framework.brix.model.Mindmap = new Class({ - Extends:mindplot.model.IMindmap, - initialize:function(brixFramework, brixModel) { - $assert(brixFramework, 'brixFramework can not be null'); - - this._brixFramework = brixFramework; - if (!$defined(brixModel)) { - this._brixModel = this._createBrixModel(); - } else { - this._brixModel = brixModel; - } - }, - - getVersion: function() { - return this._brixModel.get('version'); - }, - - setVersion: function(value) { - this._brixModel.put('version', value); - }, - - getDescription: function() { - return this._brixModel.get('description'); - }, - - setDescription: function(value) { - this._brixModel.put('description', value); - }, - - _createBrixModel:function() { - var model = this._brixFramework.getBrixModel().create("Map"); - var branches = this._brixFramework.getBrixModel().create("List"); - model.put("branches", branches); - return model; - }, - - getBrixModel:function() { - return this._brixModel; - }, - - getBranches : function() { - var result = []; - var branches = this._brixModel.get("branches"); - for (var i = 0; i < branches.size(); i++) { - var node = branches.get(i); - if (node != null) { - var nodeModel = new mindplot.collaboration.framework.brix.model.NodeModel(this._brixFramework, node, this); - result.push(nodeModel); - } - } - return result; - }, - - addBranch : function(nodeModel) { - $assert(nodeModel, "nodeModel can not be null"); - var branches = this._brixModel.get("branches"); - - // @Todo: Hack ? - var newModel = mindplot.collaboration.framework.brix.model.NodeModel.create(this._brixFramework, this, nodeModel.getType(), nodeModel.getId()); - nodeModel.copyTo(newModel); - - branches.add(newModel); - }, - - removeBranch : function(nodeModel) { - $assert(nodeModel, "nodeModel can not be null"); - $assert(nodeModel.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE, "central topic can not be removed"); - - var branches = this._brixModel.get("branches"); - for (var i = 0; i < branches.size(); i++) { - - // @Todo: remove should remove null elements ... - var branch = branches.get(i); - if (branch != null) { - if (branch == nodeModel.getBrixModel()) { - branches.remove(i); - break; - } - } - } - }, - - createNode : function(type, id) { - return mindplot.collaboration.framework.brix.model.NodeModel.create(this._brixFramework, this, type, id); - } - - } -); - diff --git a/mindplot/src/main/javascript/collaboration/framework/collab/model/NodeModel.js b/mindplot/src/main/javascript/collaboration/framework/collab/model/NodeModel.js deleted file mode 100644 index e3fe6cc2..00000000 --- a/mindplot/src/main/javascript/collaboration/framework/collab/model/NodeModel.js +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright [2012] [wisemapping] - * - * Licensed under WiseMapping Public License, Version 1.0 (the "License"). - * It is basically the Apache License, Version 2.0 (the "License") plus the - * "powered by wisemapping" text requirement on every single page; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the license at - * - * http://www.wisemapping.org/license - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -mindplot.collaboration.framework.brix.model.NodeModel = new Class({ - Extends: mindplot.model.INodeModel, - initialize : function(brixFramework, brixModel, mindmap) { - $assert(brixFramework, "brixFramework can not null"); - $assert(brixModel, "brixModel can not null"); - $assert(mindmap && mindmap.getBranches, "mindmap can not null"); - - this.parent(mindmap); - this._brixModel = brixModel; - this._brixFramework = brixFramework; - this._addBrixListeners(); - }, - - _addBrixListeners : function() { - - // Nodes creation should be cached ... - if (!this._brixModel.__registered) { - // Register listener for properties changes .... - var actionDispatcher = this._brixFramework.getActionDispatcher(); - this._brixModel.addListener("valueChanged", function(event) { - var key = event.getProperty(); - var value = event.getNewValue(); - - var funName = 'change' + key.capitalize() + 'ToTopic'; - if (!$defined(actionDispatcher[funName])) { - throw "No implementation for:" + funName; - } - console.log("This action dispatcher:" + funName); - - actionDispatcher[funName]([this.getId()], value); - }.bind(this)); - - var children = this._brixModel.get("children"); - children.addListener("valuesAdded", function(event) { - try { - - var brixChildren = event.getValues(); - for (var i = 0; i < brixChildren.size(); i++) { - var brixNodeModel = brixChildren.get(0); - - var cmodel = new mindplot.collaboration.framework.brix.model.NodeModel(this._brixFramework, brixNodeModel, this.getMindmap()); - - // @Todo: This is not ok. Is using designer global variable. - var model = new mindplot.model.NodeModel(cmodel.getType(), designer.getMindmap(), this.getId()); - cmodel.copyTo(model); - - actionDispatcher.addTopics([model], [this.getId()]); - } - } catch(e) { - console.trace(); - } - - }.bind(this)); - - children.addListener("valuesRemoved", function(event) { - try { - var brixChildren = event.getValues(); - for (var i = 0; i < brixChildren.size(); i++) { - var brixNodeModel = brixChildren.get(i); - var cmodel = new mindplot.collaboration.framework.brix.model.NodeModel(this._brixFramework, brixNodeModel, this.getMindmap()); - actionDispatcher.deleteEntities([cmodel.getId()]); - } - } catch(e) { - console.trace(); - } - - }.bind(this)); - this._brixModel.__registered = true; - } - }, - - getChildren : function() { - var result = []; - var children = this._brixModel.get("children"); - for (var i = 0; i < children.size(); i++) { - var node = children.get(i); - var nodeModel = new mindplot.collaboration.framework.brix.model.NodeModel(this._brixFramework, node, this.getMindmap()); - nodeModel.setParent(this); - result.push(nodeModel); - } - return result; - }, - - - getBrixModel:function() { - return this._brixModel; - }, - - putProperty : function(key, value) { - $defined(key, 'key can not be null'); - this._brixModel.put(key, value); - }, - - getProperty : function(key) { - $defined(key, 'key can not be null'); - return this._brixModel.get(key); - }, - - getPropertiesKeys : function() { - var keys = this._brixModel.getKeys(); - keys.erase('children'); - keys.erase('icons'); - keys.erase('links'); - keys.erase('notes'); - return keys; - }, - - getParent : function() { - return this._brixModel._parent; - }, - - setParent : function(parent) { - this._brixModel._parent = parent; - }, - - appendChild : function(node) { - $assert(node && node.isNodeModel(), 'Only NodeModel can be appended to Mindmap object'); - var children = this._brixModel.get("children"); - children.add(node.getBrixModel()); - this.setParent(this); - }, - - removeChild : function(child) { - $assert(child && child.isNodeModel(), 'Only NodeModel can be appended to Mindmap object.'); - var children = this._brixModel.get("children"); - for (var i = 0; i < children.size(); i++) { - if (children.get(i) == child.getBrixModel()) { - children.remove(i); - break; - } - } - this.setParent(null); - } -}); - -mindplot.collaboration.framework.brix.model.NodeModel.create = function(brixFramework, mindmap, type, id) { - $assert(brixFramework, 'brixFramework can not be null'); - $assert(mindmap, 'mindmap can not be null'); - $assert(type, 'type can not be null'); - $assert($defined(id), 'id can not be null'); - - var brixModel = brixFramework.getBrixModel().create("Map"); - brixModel.put("type", type); - brixModel.put("id", id); - - var children = brixFramework.getBrixModel().create("List"); - brixModel.put("children", children); - - return new mindplot.collaboration.framework.brix.model.NodeModel(brixFramework, brixModel, mindmap); -}; \ No newline at end of file diff --git a/projectFilesBackup/wise-editor/wise-editor.iml b/projectFilesBackup/wise-editor/wise-editor.iml new file mode 100644 index 00000000..ab0f2e90 --- /dev/null +++ b/projectFilesBackup/wise-editor/wise-editor.iml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projectFilesBackup/wise-webapp/wise-webapp.iml b/projectFilesBackup/wise-webapp/wise-webapp.iml new file mode 100644 index 00000000..48639056 --- /dev/null +++ b/projectFilesBackup/wise-webapp/wise-webapp.iml @@ -0,0 +1,1444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-core/3.1.0.RELEASE/spring-security-core-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/aopalliance/aopalliance/1.0/aopalliance-1.0.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-expression/3.0.6.RELEASE/spring-expression-3.0.6.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-core/3.0.6.RELEASE/spring-core-3.0.6.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-asm/3.1.0.RELEASE/spring-asm-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-aop/3.1.0.RELEASE/spring-aop-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-beans/3.1.0.RELEASE/spring-beans-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-context/3.1.0.RELEASE/spring-context-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-crypto/3.1.0.RELEASE/spring-security-crypto-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-jdbc/3.1.0.RELEASE/spring-jdbc-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-tx/3.1.0.RELEASE/spring-tx-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/codehaus/jackson/jackson-core-asl/1.9.4/jackson-core-asl-1.9.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/antlr/antlr/2.7.6/antlr-2.7.6.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/mail/mail/1.4/mail-1.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/activation/activation/1.1/activation-1.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-oxm/3.1.0.RELEASE/spring-oxm-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.5/commons-lang-2.5.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-orm/3.1.0.RELEASE/spring-orm-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-web/3.1.0.RELEASE/spring-security-web-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-web/3.1.0.RELEASE/spring-web-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-core/3.6.0.Final/hibernate-core-3.6.0.Final.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/testng/testng/5.8/testng-5.8-jdk15.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/junit/junit/3.8.1/junit-3.8.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-struts/3.1.0.RELEASE/spring-struts-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/struts/struts/1.2.9/struts-1.2.9.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-digester/commons-digester/1.6/commons-digester-1.6.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/oro/oro/2.0.8/oro-2.0.8.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/xalan/xalan/2.5.1/xalan-2.5.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-webmvc/3.1.0.RELEASE/spring-webmvc-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/spring-context-support/3.1.0.RELEASE/spring-context-support-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-chain/commons-chain/1.1/commons-chain-1.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-pool/commons-pool/1.3/commons-pool-1.3.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/fop/0.94/fop-0.94.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/xmlgraphics-commons/1.2/xmlgraphics-commons-1.2.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/commons-io/commons-io/1.1/commons-io-1.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-svg-dom/1.6-1/batik-svg-dom-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-dom/1.6-1/batik-dom-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-css/1.6-1/batik-css-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-util/1.6-1/batik-util-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-gui-util/1.6-1/batik-gui-util-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-ext/1.6-1/batik-ext-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/xml-apis/xmlParserAPIs/2.0.2/xmlParserAPIs-2.0.2.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-xml/1.6-1/batik-xml-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/xerces/xercesImpl/2.10.0/xercesImpl-2.10.0.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-parser/1.6-1/batik-parser-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-awt-util/1.6-1/batik-awt-util-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-bridge/1.6-1/batik-bridge-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-gvt/1.6-1/batik-gvt-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-script/1.6-1/batik-script-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-transcoder/1.6-1/batik-transcoder-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/batik/batik-extension/1.6-1/batik-extension-1.6-1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/avalon/framework/avalon-framework-api/4.3.1/avalon-framework-api-4.3.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/avalon/framework/avalon-framework-impl/4.3.1/avalon-framework-impl-4.3.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/hsqldb/hsqldb/2.2.8/hsqldb-2.2.8.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-transcoder/1.7/batik-transcoder-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-bridge/1.7/batik-bridge-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-anim/1.7/batik-anim-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-parser/1.7/batik-parser-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-gvt/1.7/batik-gvt-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-script/1.7/batik-script-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/xmlgraphics/batik-svggen/1.7/batik-svggen-1.7.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/apache/velocity/velocity/1.5/velocity-1.5.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/net/tanesha/recaptcha4j/recaptcha4j/0.0.7/recaptcha4j-0.0.7.jar!/ + + + + + + + + + + + + + jar://$MAVEN_REPOSITORY$/javax/servlet/jstl/1.2/jstl-1.2.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/codehaus/jackson/jackson-mapper-asl/1.9.4/jackson-mapper-asl-1.9.4.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/5.1.5/mysql-connector-java-5.1.5.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/springframework/security/spring-security-config/3.1.0.RELEASE/spring-security-config-3.1.0.RELEASE.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/com/intellij/annotations/7.0.3/annotations-7.0.3.jar!/ + + + + + + + + + jar://$MAVEN_REPOSITORY$/log4j/log4j/1.2.9/log4j-1.2.9.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-entitymanager/3.6.0.Final/hibernate-entitymanager-3.6.0.Final.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/cglib/cglib/2.2/cglib-2.2.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/asm/asm/3.1/asm-3.1.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javassist/javassist/3.12.0.GA/javassist-3.12.0.GA.jar!/ + + + + + jar://$MAVEN_REPOSITORY$/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/ + + + + + + + + diff --git a/wise-editor/src/main/webapp/c/collab.html b/wise-editor/src/main/webapp/c/collab.html deleted file mode 100644 index 4188c03a..00000000 --- a/wise-editor/src/main/webapp/c/collab.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - -Funca? - - - - - \ No newline at end of file