Added constants from David Foerster to phpsyntax.xml file
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPConstant.java
1 package net.sourceforge.phpeclipse.phpeditor.php;
2
3 import net.sourceforge.phpdt.internal.ui.text.SubstitutionTextReader;
4
5 /**
6  * @author Choochter
7  *
8  * To change this generated comment edit the template variable "typecomment":
9  * Window>Preferences>Java>ObfuscatorIgnores.
10  * To enable and disable the creation of type comments go to
11  * Window>Preferences>Java>Code Generation.
12  */
13 public class PHPConstant extends PHPElement {
14   private String fDescription;
15   
16   public void setDescription(String description) {
17     this.fDescription = description;
18   }
19   public String getDescription() {
20     return this.fDescription;
21   }
22
23   public String getHoverText() {
24     return super.getHoverText()+"<br>"+getDescription();
25   }
26   
27   public PHPConstant(String Name, String usage, String description) {
28     super(Name, usage);
29     setDescription(description);
30   }
31 }