Extension SDK

oracle.ide.explorer
Class ExplorerContextUtil

java.lang.Object
  extended byoracle.ide.explorer.ExplorerContextUtil

public final class ExplorerContextUtil
extends java.lang.Object

The ExplorerContextUtil class is a utility class that can be used to get at the extra data the ExplorerWindow stores in the the Context.


Constructor Summary
ExplorerContextUtil()
           
 
Method Summary
static TNode[] getAllTNodes(Context context)
          Returns the array of selected TNode objects from the specified Context if there are one or more Element objects selected in the Context and those Element objects have corresponding TNode objects.
static TNode getFirstTNode(Context context)
          Returns the first selected TNode from the specified Context if there is at least one Element selected in the Context and that Element has a corresponding TNode.
static TNode getSingleTNode(Context context)
          Returns the selected TNode from the specified Context if there is only one Element selected in the Context and that Element has a corresponding TNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerContextUtil

public ExplorerContextUtil()
Method Detail

getSingleTNode

public static TNode getSingleTNode(Context context)
Returns the selected TNode from the specified Context if there is only one Element selected in the Context and that Element has a corresponding TNode.


getFirstTNode

public static TNode getFirstTNode(Context context)
Returns the first selected TNode from the specified Context if there is at least one Element selected in the Context and that Element has a corresponding TNode.


getAllTNodes

public static TNode[] getAllTNodes(Context context)
Returns the array of selected TNode objects from the specified Context if there are one or more Element objects selected in the Context and those Element objects have corresponding TNode objects.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.