woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/editor ComponentEditorPart.java,1.4,1.5 HTMLOutlineSelectionHandler.java,1.2,NONE

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

Modified Files:
	ComponentEditorPart.java 
Removed Files:
	HTMLOutlineSelectionHandler.java 
Log Message:
editor interaction refactored

Index: ComponentEditorPart.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/editor/ComponentEditorPart.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ComponentEditorPart.java	26 Dec 2005 13:17:02 -0000	1.4
+++ ComponentEditorPart.java	26 Dec 2005 14:37:39 -0000	1.5
@@ -73,7 +73,10 @@
 import org.eclipse.wst.sse.ui.internal.contentoutline.ConfigurableContentOutlinePage;
 import org.objectstyle.wolips.apieditor.editor.ApiEditor;
 import org.objectstyle.wolips.componenteditor.ComponenteditorPlugin;
+import org.objectstyle.wolips.components.editor.EditorInteraction;
+import org.objectstyle.wolips.components.editor.IEmbeddedEditor;
 import org.objectstyle.wolips.components.input.ComponentEditorInput;
+import org.objectstyle.wolips.htmleditor.editor.HTMLOutlineSelectionHandler;
 import org.objectstyle.wolips.htmleditor.editor.StructuredTextEditorHTMLWithWebObjectTags;
 import org.objectstyle.wolips.wodclipse.WodclipsePlugin;
 import org.objectstyle.wolips.wodclipse.wod.WodEditor;
@@ -81,6 +84,7 @@
 public class ComponentEditorPart extends MultiPageEditorPart {
 
 	ComponentEditorInput componentEditorInput;
+	private EditorInteraction editorInteraction = new EditorInteraction();
 
 	private IEditorPart[] editorParts;
 
@@ -248,17 +252,15 @@
 			}
 
 			editorParts[i] = editorPart;
+			if(editorPart instanceof IEmbeddedEditor) {
+				IEmbeddedEditor embeddedEditor = (IEmbeddedEditor)editorPart;
+				embeddedEditor.initEditorInteraction(editorInteraction);
+			}
 
 		}
-		ConfigurableContentOutlinePage contentOutlinePage = null;
-		contentOutlinePage = (ConfigurableContentOutlinePage) structuredTextEditorHTMLWithWebObjectTags
-				.getAdapter(IContentOutlinePage.class);
+		
 		addWebObjectsTagNamesListener();
-		if (contentOutlinePage != null) {
-			contentOutlinePage
-					.addSelectionChangedListener(new HTMLOutlineSelectionHandler(
-							wodEditor));
-		}
+		
 		CTabFolder tabFolder = (CTabFolder) this.getContainer();
 		tabFolder.addSelectionListener(new SelectionListener() {
 

--- HTMLOutlineSelectionHandler.java DELETED ---



-------------------------------------------------------
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.