debugger.gui.resources
Class ResourceTreeModel

java.lang.Object
  extended byjavax.swing.tree.DefaultTreeModel
      extended bydebugger.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

Field Summary
private static int DebugLevel
           
private  DefaultMutableTreeNode lrResources
           
private  DefaultMutableTreeNode prResources
           
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
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.
 
Method Summary
static DefaultMutableTreeNode createNewNode(String name)
           
 LrModel getLRResource(LanguageResource lr)
           
 Enumeration getLrResources()
           
 DefaultMutableTreeNode getLRResourcesNode()
           
 PrModel getPRResource(ProcessingResource pr)
           
 PrModel getPRResource(SinglePhaseTransducer spt)
           
 PrModel getPRResource(String phaseName)
           
 Enumeration getPRResources()
           
 DefaultMutableTreeNode getPRResourcesNode()
           
 void reloadProcessingResource(ProcessingResource resource)
           
 
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
 

Field Detail

DebugLevel

private static int DebugLevel

prResources

private DefaultMutableTreeNode prResources

lrResources

private DefaultMutableTreeNode lrResources
Constructor Detail

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.

Method Detail

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)