[Jarspy-commits] CVS: JarSpy/src/com/ociweb/jarspy/gui/tree JarSpyRootTreeNode.java,1.1,1.2
Status: Beta
Brought to you by:
brown_j
|
From: Jeff B. <br...@us...> - 2002-10-03 23:24:34
|
Update of /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/tree
In directory usw-pr-cvs1:/tmp/cvs-serv1325
Modified Files:
JarSpyRootTreeNode.java
Log Message:
change packageNodes to be a List
Index: JarSpyRootTreeNode.java
===================================================================
RCS file: /cvsroot/jarspy/JarSpy/src/com/ociweb/jarspy/gui/tree/JarSpyRootTreeNode.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** JarSpyRootTreeNode.java 20 Jul 2002 18:12:23 -0000 1.1
--- JarSpyRootTreeNode.java 3 Oct 2002 23:24:31 -0000 1.2
***************
*** 24,27 ****
--- 24,33 ----
import java.util.Enumeration;
import java.util.Vector;
+ import java.util.HashSet;
+ import java.util.Set;
+ import java.util.ArrayList;
+ import java.util.List;
+ import java.util.Iterator;
+ import java.util.Collections;
/**
***************
*** 33,37 ****
! private Vector packageNodes = new Vector();
private String jarName;
--- 39,43 ----
! private List packageNodes = new ArrayList();
private String jarName;
***************
*** 50,55 ****
int index = fullyQualifiedName.lastIndexOf('.');
- String className = fullyQualifiedName.substring(index + 1);
-
String packageName = "";
--- 56,59 ----
***************
*** 75,79 ****
public TreeNode getChildAt(int childIndex) {
JarSpyPackageTreeNode node =
! (JarSpyPackageTreeNode) packageNodes.elementAt(childIndex);
return node;
--- 79,83 ----
public TreeNode getChildAt(int childIndex) {
JarSpyPackageTreeNode node =
! (JarSpyPackageTreeNode) packageNodes.get(childIndex);
return node;
***************
*** 122,126 ****
*/
public Enumeration children() {
! return packageNodes.elements();
}
--- 126,130 ----
*/
public Enumeration children() {
! return Collections.enumeration(packageNodes);
}
|