Author: ayukhovich
Date: 2007-10-03 05:27:24 -0400 (Wed, 03 Oct 2007)
New Revision: 3991
Modified:
branches/jbosstools_ve_codeassistant/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/XHTMLTaglibController.java
Log:
Fixing of class cast
Modified:
branches/jbosstools_ve_codeassistant/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/XHTMLTaglibController.java
===================================================================
---
branches/jbosstools_ve_codeassistant/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/XHTMLTaglibController.java 2007-10-03
09:17:18 UTC (rev 3990)
+++
branches/jbosstools_ve_codeassistant/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/XHTMLTaglibController.java 2007-10-03
09:27:24 UTC (rev 3991)
@@ -19,6 +19,7 @@
import org.eclipse.jst.jsp.core.taglib.TaglibIndex;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument;
+import org.eclipse.wst.xml.core.internal.parser.XMLSourceParser;
import org.jboss.tools.jst.jsp.JspEditorPlugin;
public class XHTMLTaglibController implements IDocumentSetupParticipant{
@@ -91,7 +92,7 @@
info.document = (IStructuredDocument) document;
info.textFileBuffer = (ITextFileBuffer) buffer;
info.tldDocumentManager = new TLDEditorDocumentManager();
- info.tldDocumentManager.setSourceParser((JSPSourceParser)
info.document.getParser());
+ info.tldDocumentManager.setSourceParser((XMLSourceParser)
info.document.getParser());
synchronized (INSTANCE.documentMap) {
INSTANCE.documentMap.put(document, info);
}
Show replies by date