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:
parent
145b478b9c
commit
5a4e52df7a
2 changed files with 10 additions and 3 deletions
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue