Some bugs fixed
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPFunction.java
index fe1e11e..be5fb49 100644 (file)
@@ -11,15 +11,19 @@ package net.sourceforge.phpeclipse.phpeditor.php;
 public class PHPFunction extends PHPElement {
   private String FunctionUsage;
   
-  public void setUsage(String Usage) {
+  public void setDescription(String Usage) {
     this.FunctionUsage = Usage;
   }
-  public String getUsage() {
+  public String getDescription() {
     return this.FunctionUsage;
   }
 
+  public String getHoverText() {
+    return super.getHoverText()+"\n\n"+getDescription();
+  }
+  
   public PHPFunction(String Name, String Description, String Usage) {
     super(Name, Description);
-    setUsage(Usage);
+    setDescription(Usage);
   }
 }