Merge WiseDoc with Master. WiseDoc branch must not be used.
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="model/RelationshipModel.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="ActionDispatcher.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="BrixActionDispatcher.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="LocalActionDispatcher.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="StandaloneActionDispatcher.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="DesignerModel.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="MindmapDesigner.js"/>
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="ScreenManager.js"/>
|
||||
|
@@ -25,7 +25,8 @@ mindplot.Beta2PelaMigrator = new Class({
|
||||
return this._pelaSerializer.toXML(mindmap);
|
||||
},
|
||||
|
||||
loadFromDom : function(dom) {
|
||||
loadFromDom : function(dom,mapId) {
|
||||
$assert($defined(mapId),"mapId can not be null");
|
||||
var mindmap = this._betaSerializer.loadFromDom(dom);
|
||||
mindmap.setVersion(mindplot.ModelCodeName.PELA);
|
||||
return mindmap;
|
||||
|
@@ -25,9 +25,12 @@ mindplot.MindmapDesigner = new Class({
|
||||
|
||||
// Dispatcher manager ...
|
||||
var commandContext = new mindplot.CommandContext(this);
|
||||
this._actionDispatcher = new mindplot.BrixActionDispatcher(commandContext);
|
||||
// this._actionDispatcher = new mindplot.LocalActionDispatcher(commandContext);
|
||||
// this._actionDispatcher = new mindplot.LocalActionDispatcher(commandContext);
|
||||
if (profile.collab == 'standalone') {
|
||||
this._actionDispatcher = new mindplot.StandaloneActionDispatcher(commandContext);
|
||||
} else {
|
||||
this._actionDispatcher = new mindplot.BrixActionDispatcher(commandContext);
|
||||
}
|
||||
|
||||
this._actionDispatcher.addEvent("modelUpdate", function(event) {
|
||||
this.fireEvent("modelUpdate", event);
|
||||
}.bind(this));
|
||||
|
@@ -16,7 +16,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
mindplot.LocalActionDispatcher = new Class({
|
||||
mindplot.StandaloneActionDispatcher = new Class({
|
||||
Extends: mindplot.ActionDispatcher,
|
||||
initialize: function(commandContext) {
|
||||
this.parent(commandContext);
|
@@ -46,7 +46,7 @@ mindplot.collaboration.framework.AbstractCollaborativeFramework = new Class({
|
||||
getActionDispatcher:function() {
|
||||
if (this._actionDispatcher == null) {
|
||||
var context = mindplot.ActionDispatcher.getInstance()._commandContext;
|
||||
this._actionDispatcher = new mindplot.LocalActionDispatcher(context);
|
||||
this._actionDispatcher = new mindplot.StandaloneActionDispatcher(context);
|
||||
}
|
||||
return this._actionDispatcher;
|
||||
}
|
||||
|
Reference in New Issue
Block a user