X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/subset/SubsetRoot.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/subset/SubsetRoot.java new file mode 100644 index 0000000..3e893f6 --- /dev/null +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/view/subset/SubsetRoot.java @@ -0,0 +1,41 @@ +package com.quantum.view.subset; + +import com.quantum.view.bookmark.TreeNode; + + +/** + * @author root + */ +public final class SubsetRoot extends TreeNode { + public final static SubsetRoot ROOT = new SubsetRoot(); + public final static TreeNode[] EMPTY_ARRAY = new TreeNode[0]; + + private SubsetRoot() { + super(null); + } + /** + * @see com.quantum.view.bookmark.TreeNode#getChildren() + */ + public Object[] getChildren() { + return EMPTY_ARRAY; + } + + /** + * @see com.quantum.view.bookmark.TreeNode#hasChildren() + */ + public boolean hasChildren() { + return true; + } + + public String getName() { + return "ROOT"; //$NON-NLS-1$ + } + protected String getImageName() { + return null; + } + /* (non-Javadoc) + * @see com.quantum.view.bookmark.TreeNode#initializeChildren() + */ + protected void initializeChildren() { + } +}