integrated velocity engine for URL templates
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / velocity / EditorText.java
index c1d58a2..092a7bc 100644 (file)
@@ -16,6 +16,8 @@ public class EditorText {
 
   String text = null;
 
+  String wikiname = null;
+
   public EditorText(IEditorPart targetEditor) {
     this.targetEditor = targetEditor;
   }
@@ -23,6 +25,7 @@ public class EditorText {
   public void clear() {
     selection = null;
     text = null;
+    wikiname = null;
   }
 
   /**
@@ -93,4 +96,19 @@ public class EditorText {
     int start = boundary.previous();
     return source.substring(start, end);
   }
+
+  /**
+   * @return Returns the wikiname.
+   */
+  public String getWikiname() {
+    return wikiname;
+  }
+
+  /**
+   * @param wikiname
+   *          The wikiname to set.
+   */
+  public void setWikiname(String wikiname) {
+    this.wikiname = wikiname;
+  }
 }
\ No newline at end of file