woproject/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/wod WodEditor.java,1.4,1.5

[email protected]
Newsgroups gmane.comp.web.webobjects.woproject.cvs
Message-ID <[email protected]>
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/wod
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17984/java/org/objectstyle/wolips/wodclipse/wod

Modified Files:
	WodEditor.java 
Log Message:
get wod document

Index: WodEditor.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/wod/WodEditor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- WodEditor.java	26 Dec 2005 14:37:15 -0000	1.4
+++ WodEditor.java	6 Jan 2006 12:42:00 -0000	1.5
@@ -66,6 +66,7 @@
 import org.objectstyle.wolips.components.editor.EditorInteraction;
 import org.objectstyle.wolips.components.editor.IEmbeddedEditor;
 import org.objectstyle.wolips.components.editor.IWebobjectTagListener;
+import org.objectstyle.wolips.components.editor.IWodDocumentProvider;
 import org.objectstyle.wolips.htmleditor.HtmleditorPlugin;
 import org.objectstyle.wolips.locate.LocateException;
 import org.objectstyle.wolips.locate.result.LocalizedComponentsLocateResult;
@@ -79,10 +80,11 @@
  * @author mike
  * @author uli
  */
-public class WodEditor extends TextEditor implements IEmbeddedEditor, IWebobjectTagListener {
+public class WodEditor extends TextEditor implements IEmbeddedEditor, IWebobjectTagListener, IWodDocumentProvider {
   private WodContentOutlinePage myContentOutlinePage;
   private IEditorInput myInput;
   private LocalizedComponentsLocateResult myComponentsLocateResults;
+  private EditorInteraction editorInteraction;
 
   public WodEditor() {
     setSourceViewerConfiguration(new WodSourceViewerConfiguration(this));
@@ -148,6 +150,8 @@
 
   public void initEditorInteraction(EditorInteraction editorInteraction) {
 	  editorInteraction.setWebObjectTagListener(this);
+	  editorInteraction.setWodDocumentProvider(this);
+	  this.editorInteraction = editorInteraction;
   }
 
   public void webObjectTagSelected(String name) {
@@ -164,4 +168,13 @@
 	      WodclipsePlugin.getDefault().log(e);
 	    }
 	  }
+
+  public IDocument getWodEditDocument() {
+	  IDocument document = getDocumentProvider().getDocument(getEditorInput());
+	  return document;
+  }
+
+  public EditorInteraction getEditorInteraction() {
+		return editorInteraction;
+	}
 }



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.