aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-09-04 01:41:53 (EDT)
committerzzhongwei2012-09-04 01:41:53 (EDT)
commit784a9089b74e9d5c9b17723d4646b868a1dcc65f (patch)
treef9d781e0ffe23f83bcc8b1f6a3b32fd1c47578e1
parenta4e3aec88a44d1488aa760ede1a5d7262792e99d (diff)
downloadorg.eclipse.pdt-784a9089b74e9d5c9b17723d4646b868a1dcc65f.zip
org.eclipse.pdt-784a9089b74e9d5c9b17723d4646b868a1dcc65f.tar.gz
org.eclipse.pdt-784a9089b74e9d5c9b17723d4646b868a1dcc65f.tar.bz2
388714: Run/Debug Untitled PHP (as CLI) is not possible untill you
enable this option for the whole workspace https://bugs.eclipse.org/bugs/show_bug.cgi?id=388714
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/PropertyTesters/PHPCLILaunchPropertyTester.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/PropertyTesters/PHPCLILaunchPropertyTester.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/PropertyTesters/PHPCLILaunchPropertyTester.java
index ae52cda..d39e7d4 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/PropertyTesters/PHPCLILaunchPropertyTester.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/PropertyTesters/PHPCLILaunchPropertyTester.java
@@ -81,6 +81,9 @@ public class PHPCLILaunchPropertyTester extends PropertyTester {
private boolean isCLIEnable(IResource resource) {
if (resource != null && resource.getProject() != null) {
+ if (resource.getProject().getName().trim().length() == 0) {
+ return true;
+ }
return PHPProjectPreferences
.isEnableCLIDebug(resource.getProject());
} else {