|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidekick.SideKickParsedData
public class SideKickParsedData
Stores a buffer structure tree.
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 | |
---|---|
protected boolean |
canAddToPath(javax.swing.tree.TreeNode node)
Subclasses can override this to handle special case nodes that may not be suitable for adding to the path. |
IAsset |
getAsset(javax.swing.tree.TreeNode node)
Convenience method to get the IAsset from the user object in the node |
IAsset |
getAssetAtOffset(int pos)
|
Asset |
getAssetAtPosition(int pos)
Deprecated. use getAssetAtOffset(int) instead |
protected javax.swing.tree.TreeNode |
getNodeAt(javax.swing.tree.TreeNode parent,
int offset)
|
static SideKickParsedData |
getParsedData(org.gjt.sp.jedit.View view)
Returns an instance of this class for the specified view. |
javax.swing.tree.TreePath |
getTreePathForPosition(int dot)
|
static void |
setParsedData(org.gjt.sp.jedit.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 |
---|
public javax.swing.tree.DefaultTreeModel tree
public javax.swing.tree.DefaultMutableTreeNode root
Constructor Detail |
---|
public SideKickParsedData(java.lang.String fileName)
fileName
- The file name being parsed, used as the root of the
tree.Method Detail |
---|
public static SideKickParsedData getParsedData(org.gjt.sp.jedit.View view)
SideKick.parse()
method is called.
view
- The view.public static void setParsedData(org.gjt.sp.jedit.View view, SideKickParsedData data)
view
- The view.data
- The instance.public javax.swing.tree.TreePath getTreePathForPosition(int dot)
dot
- protected javax.swing.tree.TreeNode getNodeAt(javax.swing.tree.TreeNode parent, int offset)
protected boolean canAddToPath(javax.swing.tree.TreeNode node)
node
- a TreeNode that is being considered for adding to a tree path.
public Asset getAssetAtPosition(int pos)
getAssetAtOffset(int)
instead
public IAsset getAssetAtOffset(int pos)
pos
- TODO: explain what pos means.public IAsset getAsset(javax.swing.tree.TreeNode node)
node
- a DefaultMutableTreeNode. Anything else will cause this method
to return null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |