X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/bookmark/TreeNode.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/bookmark/TreeNode.java index 8b9825e..e4130b0 100644 --- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/bookmark/TreeNode.java +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/bookmark/TreeNode.java @@ -36,7 +36,7 @@ public abstract class TreeNode public abstract String getName(); public Bookmark getBookmark() { - return getParent().getBookmark(); + return getParent() == null ? null : getParent().getBookmark(); } public String getLabelName() { @@ -61,7 +61,7 @@ public abstract class TreeNode */ public int compareTo(Object object) { TreeNode that = (TreeNode) object; - return this.getLabelName().compareTo(that.getLabelName()); + return this.getLabelName().toLowerCase().compareTo(that.getLabelName().toLowerCase()); } public String toString() { @@ -99,6 +99,7 @@ public abstract class TreeNode protected void dispose() { this.disposed = true; removeAllChildren(); +// this.parent = null; } protected void removeAllChildren() { for (Iterator i = this.children.iterator(); i.hasNext();) { @@ -115,6 +116,7 @@ public abstract class TreeNode return null; } protected abstract void initializeChildren() throws SQLException, NotConnectedException; + public void reload() throws NotConnectedException, SQLException { if (isInitialized()) { initializeChildren();