1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

2004-12-20 Alain Magloire

PR 81321
	* src/org/eclipse/cdt/launch/internal/CPropertyTester.java
This commit is contained in:
Alain Magloire 2004-12-20 17:14:25 +00:00
parent 145b478b9c
commit 5a4e52df7a
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-12-20 Alain Magloire
PR 81321
* src/org/eclipse/cdt/launch/internal/CPropertyTester.java
2004-12-06 Mikhail Khodjaiants 2004-12-06 Mikhail Khodjaiants
The last character is missing in the launch configuration name generated The last character is missing in the launch configuration name generated
from the binary file name. from the binary file name.

View file

@ -40,9 +40,11 @@ public class CPropertyTester extends PropertyTester {
*/ */
private boolean isExecutable(Object receiver) { private boolean isExecutable(Object receiver) {
ICElement celement = null; ICElement celement = null;
IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IResource.class); if (receiver instanceof IAdaptable) {
if (file != null) { IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IResource.class);
celement = CoreModel.getDefault().create(file); if (file != null) {
celement = CoreModel.getDefault().create(file);
}
} }
return (celement != null && celement instanceof IBinary); return (celement != null && celement instanceof IBinary);
} }