woproject/projects/wolips/plugins/org.objectstyle.wolips.htmleditor/java/org/objectstyle/wolips/htmleditor/editor StructuredTextEditorHTMLWithWebObjectTags.java,1.4,1.5
| Newsgroups | gmane.comp.web.webobjects.woproject.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.htmleditor/java/org/objectstyle/wolips/htmleditor/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20299/java/org/objectstyle/wolips/htmleditor/editor
Modified Files:
StructuredTextEditorHTMLWithWebObjectTags.java
Log Message:
html preview
Index: StructuredTextEditorHTMLWithWebObjectTags.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.htmleditor/java/org/objectstyle/wolips/htmleditor/editor/StructuredTextEditorHTMLWithWebObjectTags.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- StructuredTextEditorHTMLWithWebObjectTags.java 26 Dec 2005 14:37:05 -0000 1.4
+++ StructuredTextEditorHTMLWithWebObjectTags.java 26 Dec 2005 16:21:58 -0000 1.5
@@ -44,6 +44,7 @@
package org.objectstyle.wolips.htmleditor.editor;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.util.TransferDragSourceListener;
import org.eclipse.jface.util.TransferDropTargetListener;
import org.eclipse.jface.viewers.IContentProvider;
@@ -59,10 +60,11 @@
import org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration;
import org.objectstyle.wolips.components.editor.EditorInteraction;
import org.objectstyle.wolips.components.editor.IEmbeddedEditor;
+import org.objectstyle.wolips.components.editor.IHtmlDocumentProvider;
import org.objectstyle.wolips.htmleditor.HtmleditorPlugin;
public class StructuredTextEditorHTMLWithWebObjectTags extends
- StructuredTextEditor implements IEmbeddedEditor {
+ StructuredTextEditor implements IEmbeddedEditor, IHtmlDocumentProvider {
Image image;
@@ -245,7 +247,14 @@
}
public void initEditorInteraction(EditorInteraction editorInteraction) {
- this.getSelectionProvider().addSelectionChangedListener(new HTMLOutlineSelectionHandler(
- editorInteraction));
+ this.getSelectionProvider().addSelectionChangedListener(
+ new HTMLOutlineSelectionHandler(editorInteraction));
+ editorInteraction.setHtmlDocumentProvider(this);
+ }
+
+ public IDocument getHtmlEditDocument() {
+ IDocument editDocument = this.getDocumentProvider().getDocument(
+ this.getEditorInput());
+ return editDocument;
}
}
-------------------------------------------------------
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