Author: scabanovich
Date: 2007-10-12 03:07:06 -0400 (Fri, 12 Oct 2007)
New Revision: 4130
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java
Log:
JBIDE-737
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2007-10-12
04:56:51 UTC (rev 4129)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2007-10-12
07:07:06 UTC (rev 4130)
@@ -51,9 +51,11 @@
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.eclipse.wst.xml.core.internal.document.AttrImpl;
import org.eclipse.wst.xml.core.internal.document.ElementImpl;
+import org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML;
import org.eclipse.wst.xml.ui.internal.XMLUIPlugin;
import org.w3c.dom.DocumentType;
import org.w3c.dom.NamedNodeMap;
@@ -96,7 +98,11 @@
}
protected void setSourceViewerConfiguration(SourceViewerConfiguration config) {
- if(!(config instanceof RedHatStructuredTextViewerConfigurationXML)) {
+ if(!(config instanceof RedHatStructuredTextViewerConfigurationXML)
+ && (config instanceof StructuredTextViewerConfigurationXML
+ || !(config instanceof StructuredTextViewerConfiguration)
+ )
+ ) {
RedHatStructuredTextViewerConfigurationXML r = new
RedHatStructuredTextViewerConfigurationXML();
r.setInitialConfiguration(config);
config = r;
Show replies by date