Author: estherbin
Date: 2008-06-10 05:29:12 -0400 (Tue, 10 Jun 2008)
New Revision: 8664
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/HTMLTextViewerConfiguration.java
Log:
Fix
http://jira.jboss.com/jira/browse/JBIDE-1791 issue.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/HTMLTextViewerConfiguration.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/HTMLTextViewerConfiguration.java 2008-06-10
09:27:51 UTC (rev 8663)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/HTMLTextViewerConfiguration.java 2008-06-10
09:29:12 UTC (rev 8664)
@@ -25,6 +25,8 @@
import org.eclipse.jst.jsp.core.text.IJSPPartitions;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
+import org.eclipse.wst.css.core.text.ICSSPartitions;
+import org.eclipse.wst.css.ui.internal.contentassist.CSSContentAssistProcessor;
import org.eclipse.wst.html.core.text.IHTMLPartitions;
import org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML;
import org.eclipse.wst.sse.ui.internal.format.StructuredFormattingStrategy;
@@ -40,7 +42,8 @@
super();
}
- protected IContentAssistProcessor[] getContentAssistProcessors(ISourceViewer
sourceViewer, String partitionType) {
+ @SuppressWarnings("restriction")
+ protected IContentAssistProcessor[] getContentAssistProcessors(ISourceViewer
sourceViewer, String partitionType) {
// IContentAssistProcessor[] processors = null;
// if we have our own processors we need
@@ -64,6 +67,11 @@
partitionType == IJSPPartitions.JSP_DEFAULT_EL) {
processors.add(new FaceletsHtmlContentAssistProcessor());
}
+ //added by estherbin
+ //fix
http://jira.jboss.com/jira/browse/JBIDE-1791
+ if(partitionType.equals(ICSSPartitions.STYLE)){
+ processors.add(new CSSContentAssistProcessor());
+ }
return (IContentAssistProcessor[])processors.toArray(new IContentAssistProcessor[0]);
}