Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2005-01-19 22:13:18 +0000
committerAlain Magloire2005-01-19 22:13:18 +0000
commit4fae0d2e1733ca6049e288860b2c9616c649cbfd (patch)
treedde2a3fac5a56ac7b61b6b732132e602d5321c97 /launch/org.eclipse.cdt.launch
parentc73a71269c94a9880080e04f4afe363a60c5cc5b (diff)
downloadorg.eclipse.cdt-4fae0d2e1733ca6049e288860b2c9616c649cbfd.tar.gz
org.eclipse.cdt-4fae0d2e1733ca6049e288860b2c9616c649cbfd.tar.xz
org.eclipse.cdt-4fae0d2e1733ca6049e288860b2c9616c649cbfd.zip
2005-01-19 Alain Magloire
PR 82930 * src/org/eclipse/cdt/launch/internal/CPropertyTester.java
Diffstat (limited to 'launch/org.eclipse.cdt.launch')
-rw-r--r--launch/org.eclipse.cdt.launch/ChangeLog4
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CPropertyTester.java7
2 files changed, 7 insertions, 4 deletions
diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog
index fa2cf310827..89f3405c2c7 100644
--- a/launch/org.eclipse.cdt.launch/ChangeLog
+++ b/launch/org.eclipse.cdt.launch/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-19 Alain Magloire
+ PR 82930
+ * src/org/eclipse/cdt/launch/internal/CPropertyTester.java
+
2004-12-20 Alain Magloire
PR 81321
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CPropertyTester.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CPropertyTester.java
index c7bdde03628..03100113e8a 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CPropertyTester.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CPropertyTester.java
@@ -14,7 +14,6 @@ import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.IBinary;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.core.expressions.PropertyTester;
-import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
@@ -41,9 +40,9 @@ public class CPropertyTester extends PropertyTester {
private boolean isExecutable(Object receiver) {
ICElement celement = null;
if (receiver instanceof IAdaptable) {
- IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IResource.class);
- if (file != null) {
- celement = CoreModel.getDefault().create(file);
+ IResource res = (IResource) ((IAdaptable)receiver).getAdapter(IResource.class);
+ if (res != null) {
+ celement = CoreModel.getDefault().create(res);
}
}
return (celement != null && celement instanceof IBinary);

Back to the top