Author: akazakov
Date: 2009-04-15 14:22:49 -0400 (Wed, 15 Apr 2009)
New Revision: 14764
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4163 Migrate usage of javascript plugin to jsdt
plugins
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java 2009-04-15
18:20:58 UTC (rev 14763)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java 2009-04-15
18:22:49 UTC (rev 14764)
@@ -31,7 +31,6 @@
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;
import org.eclipse.wst.css.ui.internal.contentassist.CSSContentAssistProcessor;
-import
org.eclipse.wst.javascript.ui.internal.common.contentassist.JavaScriptContentAssistProcessor;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
@@ -82,7 +81,6 @@
private IDocument document;
private boolean dontOpenTag = false;
-
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
documentPosition) {
try {
String text = viewer.getDocument().get(0, documentPosition);
@@ -105,7 +103,7 @@
if(proposals.length == 0) {
String partitionType = getPartitionType((StructuredTextViewer) viewer,
documentPosition);
IContentAssistProcessor p = (IContentAssistProcessor)
fPartitionToProcessorMap.get(partitionType);
- if (!(p instanceof JavaScriptContentAssistProcessor || p instanceof
CSSContentAssistProcessor)) {
+ if (!(p instanceof CSSContentAssistProcessor)) {
IndexedRegion treeNode = ContentAssistUtils.getNodeAt((StructuredTextViewer) viewer,
documentPosition);
Node node = (Node) treeNode;