debugger.gui.resources
Class ResourceTreeModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
debugger.gui.resources.ResourceTreeModel
- All Implemented Interfaces:
- Serializable, TreeModel
- public class ResourceTreeModel
- extends DefaultTreeModel
Copyright (c) Ontos AG (http://www.ontosearch.com).
This class is part of JAPE Debugger component for
GATE (Copyright (c) "The University of Sheffield" see http://gate.ac.uk/)
- Author:
- Andrey Shafirin
- See Also:
- Serialized Form
Constructor Summary |
|
ResourceTreeModel()
Creates a new default instance of ResourceModel. |
private |
ResourceTreeModel(TreeNode newRoot)
Creates a new instance of ResourceModel with newRoot set
to the root of this model. |
Methods inherited from class javax.swing.tree.DefaultTreeModel |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugLevel
private static int DebugLevel
prResources
private DefaultMutableTreeNode prResources
lrResources
private DefaultMutableTreeNode lrResources
ResourceTreeModel
private ResourceTreeModel(TreeNode newRoot)
- Creates a new instance of ResourceModel with newRoot set
to the root of this model.
ResourceTreeModel
public ResourceTreeModel()
- Creates a new default instance of ResourceModel.
createNewNode
public static DefaultMutableTreeNode createNewNode(String name)
getPRResources
public Enumeration getPRResources()
getLrResources
public Enumeration getLrResources()
getPRResource
public PrModel getPRResource(ProcessingResource pr)
getPRResource
public PrModel getPRResource(String phaseName)
getPRResource
public PrModel getPRResource(SinglePhaseTransducer spt)
getLRResource
public LrModel getLRResource(LanguageResource lr)
getPRResourcesNode
public DefaultMutableTreeNode getPRResourcesNode()
getLRResourcesNode
public DefaultMutableTreeNode getLRResourcesNode()
reloadProcessingResource
public void reloadProcessingResource(ProcessingResource resource)