aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-11-29 08:25:13 (EST)
committerJacek Pospychala2012-11-29 08:25:13 (EST)
commit179516027af3117373a08dd3017eeea6fa82d17d (patch)
treeac086e201295ed1882a957108882b0565c42339d
parentb4005e2d845456736dce956970cc75bf69e0c4a3 (diff)
downloadorg.eclipse.pdt-179516027af3117373a08dd3017eeea6fa82d17d.zip
org.eclipse.pdt-179516027af3117373a08dd3017eeea6fa82d17d.tar.gz
org.eclipse.pdt-179516027af3117373a08dd3017eeea6fa82d17d.tar.bz2
Bug 395368 - Enable PHP content assist inside strings
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/CompletionContextResolver.java3
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/QuotesContext.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/CompletionContextResolver.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/CompletionContextResolver.java
index d651f9e..77ce548 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/CompletionContextResolver.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/CompletionContextResolver.java
@@ -94,7 +94,8 @@ public class CompletionContextResolver implements ICompletionContextResolver {
new GotoStatementContext(), new NamespaceUseNameContext(),
new NamespaceDeclContext(), new IncludeStatementContext(),
new ExceptionClassInstantiationContext(),
- new TypeCastingContext(), new NamespacePHPDocVarStartContext() };
+ new TypeCastingContext(), new NamespacePHPDocVarStartContext(),
+ new QuotesContext() };
}
public ICompletionContext[] resolve(ISourceModule sourceModule, int offset,
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/QuotesContext.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/QuotesContext.java
index 18b6649..dcf0bcf 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/QuotesContext.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/contexts/QuotesContext.java
@@ -20,7 +20,7 @@ import org.eclipse.php.internal.core.documentModel.partitioner.PHPPartitionTypes
*
* @author michael
*/
-public abstract class QuotesContext extends AbstractCompletionContext {
+public class QuotesContext extends AbstractCompletionContext {
public boolean isValid(ISourceModule sourceModule, int offset,
CompletionRequestor requestor) {