Author: vrubezhny
Date: 2007-08-08 07:19:21 -0400 (Wed, 08 Aug 2007)
New Revision: 2954
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ExtendedStructuredTextViewerConfigurationJSP.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-670 xhtml code completion does not update it's
list of completions
Exception in ExtendedStructuredTextConfigurationJSP is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ExtendedStructuredTextViewerConfigurationJSP.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ExtendedStructuredTextViewerConfigurationJSP.java 2007-08-08
07:35:16 UTC (rev 2953)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ExtendedStructuredTextViewerConfigurationJSP.java 2007-08-08
11:19:21 UTC (rev 2954)
@@ -71,8 +71,14 @@
processors.add(new RedHatJSPContentAssistProcessor());
return (IContentAssistProcessor[])processors.toArray(new IContentAssistProcessor[0]);
}
+ IContentAssistProcessor[] superProcessors =
super.getContentAssistProcessors(sourceViewer, partitionType);
- return super.getContentAssistProcessors(sourceViewer, partitionType);
+ if (superProcessors != null && superProcessors.length > 0) {
+ for (int i = 0; i < superProcessors.length; i++)
+ processors.add(superProcessors[i]);
+ }
+
+ return (IContentAssistProcessor[])processors.toArray(new IContentAssistProcessor[0]);
}
/*