package net.sourceforge.phpeclipse.phpeditor.php;
+import net.sourceforge.phpdt.internal.ui.text.SubstitutionTextReader;
+
/**
* @author Choochter
*
* 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()+"<br>"+getDescription();
+ }
+
+ public PHPConstant(String Name, String usage, String description) {
+ super(Name, usage);
+ setDescription(description);
}
}
\ No newline at end of file