X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPConstant.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPConstant.java index 6f5b1f9..177bb6f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPConstant.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPConstant.java @@ -1,5 +1,6 @@ package net.sourceforge.phpeclipse.phpeditor.php; + /** * @author Choochter * @@ -9,7 +10,21 @@ package net.sourceforge.phpeclipse.phpeditor.php; * Window>Preferences>Java>Code Generation. */ public class PHPConstant extends PHPElement { - public PHPConstant(String Name, String Description) { - super(Name, Description); + private String fDescription; + + public void setDescription(String description) { + this.fDescription = description; + } + public String getDescription() { + return this.fDescription; + } + + public String getHoverText() { + return super.getHoverText()+"
"+getDescription(); + } + + public PHPConstant(String Name, String usage, String description) { + super(Name, usage); + setDescription(description); } } \ No newline at end of file