Changeset 2016
- Timestamp:
- 11/26/07 04:30:55 (5 years ago)
- Location:
- lang/javascript/javascript-xpath/applications/inspector
- Files:
-
- 1 added
- 1 modified
-
img/xroot.gif (added)
-
script/jsxpi.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/javascript-xpath/applications/inspector/script/jsxpi.js
r1825 r2016 77 77 this.console = new JSXPInspector.Console($("jsxpi-console")); 78 78 this.history = new JSXPInspector.InputHistory(); 79 this.streeMan = new JSXPInspector.SyntaxTreeManager( );79 this.streeMan = new JSXPInspector.SyntaxTreeManager(this.synTreePanel); 80 80 setInterval(this.checkJSXPathInstalled.bind(this), 1000); 81 81 }; … … 121 121 122 122 var synTreePanel = new Ext.tree.TreePanel('jsxpath-syntaxtree', { 123 containerScroll: true123 enableDD: false 124 124 }); 125 125 … … 138 138 layout.getRegion("center").showPanel(0); 139 139 140 this.synTreePanel = synTreePanel; 140 141 return layout; 141 142 }, … … 330 331 result = expr.evaluate(this.xpathEnv.currentContext, 0, null); 331 332 332 this.updateSyntaxTree( );333 this.updateSyntaxTree(expr, exp); 333 334 } 334 335 } … … 479 480 }; 480 481 481 JSXPInspector.SyntaxTreeManager = function( ) {482 JSXPInspector.SyntaxTreeManager = function(view) { 482 483 this.curSource = null; 483 484 this.curExp = null; 484 485 this.curTree = null; 486 this.view = view; 485 487 } 486 488 … … 490 492 return this.curTree 491 493 492 //this.curTree = new JXAnalyzer.SyntaxTree();494 this.curTree = new JXAnalyzer.SyntaxTree(exp, exp.lexer, src); 493 495 this.curExp = exp; 494 496 this.curSource = src; 495 497 498 var root = new Ext.tree.TreeNode({ 499 allowDrag: false, 500 allowDrop: false, 501 id : '/', 502 text : 'XPathExpression', 503 icon : "img/xroot.gif" 504 }); 505 506 this.view.setRootNode(root); 507 this.view.render(); 508 root.expand(); 509 496 510 return this.curTree; 497 511 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)