Namespace: Consultingwerk.Studio.Proparse
Class 
ProparseTreeViewControl Copy to Clipboard
Parent classes:
Inherits: Progress.Windows.UserControl

File:ProparseTreeViewControl
Purpose:Visualizes the propaser AST in a tree view
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Jun 28 20:27:18 CEST 2011



Top Method Summary
Options Name Purpose
+ CHARACTER GetCurrentNodeKey () Returns the Key of the currently selected tree node
+ org.prorefactor.core.JPNode GetJPNode (integer) Returns a JPNode by a node number
- InitializeComponent () Initializes the Visual Design
+ LoadTree (ParseUnit) Loads the tree from a ParseUnit
+ LocateInTreeView (SourceCodeLocationParameter) Locates the a tree node based on the current cursor position in the editor
+ SelectNode (JPNode) Selects a JPNode in the TreeView
# WalkAST (JPNode, TreeNodesCollection) Walks a level of the AST

Top Constructor Summary
Options Name Purpose
+ ProparseTreeViewControl () Constructor of the ProparseTreeViewControl class

Top Property Summary
Options Name Purpose
+ System.Collections.Generic.Dictionary < org.prorefactor.core.JPNode> Nodes


Method Detail
Top

PUBLIC CHARACTER GetCurrentNodeKey ()

Purpose: Returns the Key of the currently selected tree node
Notes:

Returns CHARACTER
The Key of the currently selected tree node
Top

PUBLIC org.prorefactor.core.JPNode GetJPNode (integer)

Purpose: Returns a JPNode by a node number
Notes:

Parameters:
piNodeNum INTEGER
The node number to return
Returns org.prorefactor.core.JPNode
The refernce to the specified JPNode
Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PUBLIC LoadTree (ParseUnit)

Purpose: Loads the tree from a ParseUnit
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The ParseUnit to populate the tree from
Top

PUBLIC LocateInTreeView (SourceCodeLocationParameter)

Purpose: Locates the a tree node based on the current cursor position
in the editor
Notes:

Parameters:
poLocation Consultingwerk.Studio.Proparse.SourceCodeLocationParameter
The SourceCodeLocationParameter describing the cursor position
Top

PUBLIC SelectNode (JPNode)

Purpose: Selects a JPNode in the TreeView
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to select in the tree view
Top

PROTECTED WalkAST (JPNode, TreeNodesCollection)

Purpose: Walks a level of the AST
Notes:

Parameters:
poASTNode org.prorefactor.core.JPNode
The current parent AST node reference
poTreeNodes Infragistics.Win.UltraWinTree.TreeNodesCollection
The current TreeNodesCollection to add the nodes to


Constructor Detail
Top

PUBLIC ProparseTreeViewControl ()

Purpose: Constructor of the ProparseTreeViewControl class
Notes:



Property Detail
Top

PUBLIC System.Collections.Generic.Dictionary < org.prorefactor.core.JPNode> Nodes


Returns System.Collections.Generic.Dictionary < org.prorefactor.core.JPNode>


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:38:11