SQL Plugin copied from Quantum plugin and refactored for PHPEclipse
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / view / bookmark / Root.java
1 package net.sourceforge.phpdt.sql.view.bookmark;
2
3 /**
4  * @author root
5  *
6  * To change this generated comment edit the template variable "typecomment":
7  * Window>Preferences>Java>Templates.
8  * To enable and disable the creation of type comments go to
9  * Window>Preferences>Java>Code Generation.
10  */
11 public final class Root implements TreeNode {
12     public final static Root ROOT = new Root();
13         public final static Object[] EMPTY_ARRAY = new Object[0];
14    
15     private Root() {
16     }
17         /**
18          * @see net.sourceforge.phpdt.sql.view.bookmark.TreeNode#getChildren()
19          */
20         public Object[] getChildren() {
21                 return EMPTY_ARRAY;
22         }
23
24         /**
25          * @see net.sourceforge.phpdt.sql.view.bookmark.TreeNode#getParent()
26          */
27         public Object getParent() {
28                 return null;
29         }
30
31         /**
32          * @see net.sourceforge.phpdt.sql.view.bookmark.TreeNode#hasChildren()
33          */
34         public boolean hasChildren() {
35                 return false;
36         }
37
38 }