},
selectNode: function(canvasNode, origin) {
sandbox.getModule('documentCanvas').selectNode(canvasNode);
+ this.updateNodesModules(canvasNode);
+ },
+ updateNodesModules: function(canvasNode) {
sandbox.getModule('nodePane').setNode(canvasNode);
sandbox.getModule('nodeFamilyTree').setNode(canvasNode);
sandbox.getModule('nodeBreadCrumbs').setNode(canvasNode);
-
},
resetDocument: function(document, reason) {
var modules = [];
dirty.documentCanvas = true;
},
+ currentNodeChanged: function(canvasNode) {
+ commands.updateNodesModules(canvasNode);
+ },
+
nodeHovered: function(canvasNode) {
commands.highlightDocumentNode(canvasNode);
},
toggleGrid: function(toggle) {
sandbox.getModule('documentCanvas').toggleGrid(toggle);
},
+ toggleList: function(toggle) {
+ sandbox.getModule('documentCanvas').toggleList(toggle);
+ },
newNodeRequested: function(wlxmlTag, wlxmlClass) {
sandbox.getModule('documentCanvas').insertNewNode(wlxmlTag, wlxmlClass);
},