Config editor through XML file
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPElement.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPElement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPElement.java
new file mode 100644 (file)
index 0000000..be19656
--- /dev/null
@@ -0,0 +1,33 @@
+package net.sourceforge.phpeclipse.phpeditor.php;
+
+/**
+ * @author choochter
+ */
+public abstract class PHPElement {
+
+       private String ElementName;
+       private String ElementDescription;
+       
+       //Setters
+       public final void setName(String ElementName)
+       { this.ElementName = ElementName; }
+       public final void setDescription(String ElementDescription)
+       { this.ElementDescription = ElementDescription; }
+       
+       //Getters
+       public final String getName() { return ElementName; }
+       public final String getDescription() { return ElementDescription; }
+       
+       public PHPElement(){}
+       public PHPElement(String Name, String Description){
+               setName(Name);
+               if ((Description == null) || (Description.equals("")))
+               {
+                       setDescription(Name +" - ");
+               }
+               else {
+                       setDescription(Description); 
+               }
+       }
+       
+}