public abstract String getName();
public Bookmark getBookmark() {
- return getParent().getBookmark();
+ return getParent() == null ? null : getParent().getBookmark();
}
public String getLabelName() {
*/
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() {
protected void dispose() {
this.disposed = true;
removeAllChildren();
+// this.parent = null;
}
protected void removeAllChildren() {
for (Iterator i = this.children.iterator(); i.hasNext();) {
return null;
}
protected abstract void initializeChildren() throws SQLException, NotConnectedException;
+
public void reload() throws NotConnectedException, SQLException {
if (isInitialized()) {
initializeChildren();