Ignore case for functions in syntax highlighting
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPConstant.java
index 68119e7..177bb6f 100644 (file)
@@ -5,12 +5,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 PHPConstant extends PHPElement{
-       public PHPConstant(String Name, String Description){
-       super(Name, Description);
-       }
+public class PHPConstant extends PHPElement {
+  private String fDescription;
+  
+  public void setDescription(String description) {
+    this.fDescription = description;
+  }
+  public String getDescription() {
+    return this.fDescription;
+  }
+
+  public String getHoverText() {
+    return super.getHoverText()+"<br>"+getDescription();
+  }
+  
+  public PHPConstant(String Name, String usage, String description) {
+    super(Name, usage);
+    setDescription(description);
+  }
 }
\ No newline at end of file