sidekick
Class SideKickParsedData

java.lang.Object
  extended bysidekick.SideKickParsedData

public class SideKickParsedData
extends java.lang.Object

Stores a buffer structure tree. Plugins can extend this class to persist plugin-specific information. For example, the XML plugin stores code completion-related structures using a subclass.


Field Summary
 javax.swing.tree.DefaultMutableTreeNode root
          Plugin parsers should add nodes to the root node.
 javax.swing.tree.DefaultTreeModel tree
           
 
Constructor Summary
SideKickParsedData(java.lang.String fileName)
           
 
Method Summary
static SideKickParsedData getParsedData(View view)
          Returns an instance of this class for the specified view.
 javax.swing.tree.TreePath getTreePathForPosition(int dot)
           
private  boolean getTreePathForPosition(javax.swing.tree.TreeNode node, int dot, java.util.List path)
           
static void setParsedData(View view, SideKickParsedData data)
          Sets the instance of this class for the specified view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

public javax.swing.tree.DefaultTreeModel tree

root

public javax.swing.tree.DefaultMutableTreeNode root
Plugin parsers should add nodes to the root node.

Constructor Detail

SideKickParsedData

public SideKickParsedData(java.lang.String fileName)
Parameters:
fileName - The file name being parsed, used as the root of the tree.
Method Detail

getParsedData

public static SideKickParsedData getParsedData(View view)
Returns an instance of this class for the specified view. Note that this will only return a valid object after the SideKick.parse() method is called.

Parameters:
view - The view.

setParsedData

public static void setParsedData(View view,
                                 SideKickParsedData data)
Sets the instance of this class for the specified view.

Parameters:
view - The view.
data - The instance.

getTreePathForPosition

public javax.swing.tree.TreePath getTreePathForPosition(int dot)

getTreePathForPosition

private boolean getTreePathForPosition(javax.swing.tree.TreeNode node,
                                       int dot,
                                       java.util.List path)