aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-12-11 04:06:38 (EST)
committerzzhongwei2012-12-11 04:06:38 (EST)
commita522077620bc5112dc396f1b3d6951c19a1a9893 (patch)
tree6c778defda1371837272314ab2ea77dcc6c22153
parent364f03093b33684ba178bc5c69bb8183226abcdd (diff)
downloadorg.eclipse.pdt-a522077620bc5112dc396f1b3d6951c19a1a9893.zip
org.eclipse.pdt-a522077620bc5112dc396f1b3d6951c19a1a9893.tar.gz
org.eclipse.pdt-a522077620bc5112dc396f1b3d6951c19a1a9893.tar.bz2
revert fix for:396238: Content Assist - an backslash "\" to be added by
default when extending a class
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/contentassist/PHPCompletionProposalCollector.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/contentassist/PHPCompletionProposalCollector.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/contentassist/PHPCompletionProposalCollector.java
index 8dbeb04..cc47af6 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/contentassist/PHPCompletionProposalCollector.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/contentassist/PHPCompletionProposalCollector.java
@@ -238,9 +238,12 @@ public class PHPCompletionProposalCollector extends
String prefix = "";
try {
int flags = type.getFlags();
+ IType currentNamespace = PHPModelUtils.getCurrentNamespace(
+ getSourceModule(), getReplacementOffset());
IType namespace = PHPModelUtils.getCurrentNamespace(type);
if (!PHPFlags.isNamespace(flags)
&& namespace == null
+ && currentNamespace != null
&& !ProjectOptions.getPhpVersion(
PHPCompletionProposalCollector.this
.getScriptProject().getProject())