aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-11-26 03:04:39 (EST)
committerzzhongwei2012-11-26 03:04:39 (EST)
commit83826dc0ae077e50237172d96cefbc9e60fa8f16 (patch)
tree63bb521b4a5d9518c1c0eac70aaf3575d1194d0c
parent40da25a71da8fa0f19f60c509de64b72c540e9a8 (diff)
downloadorg.eclipse.pdt-83826dc0ae077e50237172d96cefbc9e60fa8f16.zip
org.eclipse.pdt-83826dc0ae077e50237172d96cefbc9e60fa8f16.tar.gz
org.eclipse.pdt-83826dc0ae077e50237172d96cefbc9e60fa8f16.tar.bz2
Bug 388156 - Add 'as' and 'insteadof' options for CA for traits
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitKeywordStrategy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitKeywordStrategy.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitKeywordStrategy.java
index 4846692..4a82a77 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitKeywordStrategy.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/InUseTraitKeywordStrategy.java
@@ -6,7 +6,7 @@ import org.eclipse.php.core.codeassist.ICompletionContext;
import org.eclipse.php.core.codeassist.IElementFilter;
import org.eclipse.php.internal.core.PHPVersion;
import org.eclipse.php.internal.core.codeassist.ICompletionReporter;
-import org.eclipse.php.internal.core.codeassist.contexts.ClassStatementContext;
+import org.eclipse.php.internal.core.codeassist.contexts.AbstractCompletionContext;
import org.eclipse.php.internal.core.language.keywords.PHPKeywords.KeywordData;
public class InUseTraitKeywordStrategy extends KeywordsStrategy {
@@ -32,7 +32,7 @@ public class InUseTraitKeywordStrategy extends KeywordsStrategy {
public void apply(ICompletionReporter reporter) throws BadLocationException {
- ClassStatementContext context = (ClassStatementContext) getContext();
+ AbstractCompletionContext context = (AbstractCompletionContext) getContext();
String prefix = context.getPrefix();
String suffix = "";
SourceRange replaceRange = getReplacementRange(context);