Removed unuse builder from project
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPElement.java
index be19656..fde8279 100644 (file)
@@ -6,28 +6,41 @@ package net.sourceforge.phpeclipse.phpeditor.php;
 public abstract class PHPElement {
 
        private String ElementName;
-       private String ElementDescription;
-       
-       //Setters
-       public final void setName(String ElementName)
-       { this.ElementName = ElementName; }
-       public final void setDescription(String ElementDescription)
-       { this.ElementDescription = ElementDescription; }
-       
-       //Getters
-       public final String getName() { return ElementName; }
-       public final String getDescription() { return ElementDescription; }
-       
-       public PHPElement(){}
-       public PHPElement(String Name, String Description){
-               setName(Name);
-               if ((Description == null) || (Description.equals("")))
-               {
-                       setDescription(Name +" - ");
-               }
-               else {
-                       setDescription(Description); 
+
+       private String ElementUsage;
+
+       // Setters
+       public final void setName(String ElementName) {
+               this.ElementName = ElementName;
+       }
+
+       public final void setUsage(String usage) {
+               this.ElementUsage = usage;
+       }
+
+       // Getters
+       public final String getName() {
+               return ElementName;
+       }
+
+       public final String getUsage() {
+               return ElementUsage;
+       }
+
+       public String getHoverText() {
+               return "<b>" + getUsage() + "</b>";
+       }
+
+       public PHPElement() {
+       }
+
+       public PHPElement(String name, String usage) {
+               setName(name);
+               if ((usage == null) || (usage.equals(""))) {
+                       setUsage(name + " - ");
+               } else {
+                       setUsage(usage);
                }
        }
-       
+
 }