little bugfixes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPFunction.java
index 2e45bdb..4bdbca8 100644 (file)
@@ -4,17 +4,26 @@ package net.sourceforge.phpeclipse.phpeditor.php;
  * @author Choochter
  *
  * To change this generated comment edit the template variable "typecomment":
- * Window>Preferences>Java>Templates.
+ * Window>Preferences>Java>ObfuscatorIgnores.
  * To enable and disable the creation of type comments go to
  * Window>Preferences>Java>Code Generation.
  */
-public class PHPFunction extends PHPElement{
-       private String FunctionUsage;
-       public void setUsage(String Usage) {this.FunctionUsage = Usage;}
-       public String getUsage() { return this.FunctionUsage; }
-       
-       public PHPFunction(String Name, String Description, String Usage){
-       super(Name, Description);
-       setUsage(Usage);        
-       }
+public class PHPFunction extends PHPElement {
+  private String FunctionUsage;
+  
+  public void setDescription(String Usage) {
+    this.FunctionUsage = Usage;
+  }
+  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);
+    setDescription(Usage);
+  }
 }