mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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
|
||||
The last character is missing in the launch configuration name generated
|
||||
from the binary file name.
|
||||
|
|
|
@ -40,9 +40,11 @@ public class CPropertyTester extends PropertyTester {
|
|||
*/
|
||||
private boolean isExecutable(Object receiver) {
|
||||
ICElement celement = null;
|
||||
IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IResource.class);
|
||||
if (file != null) {
|
||||
celement = CoreModel.getDefault().create(file);
|
||||
if (receiver instanceof IAdaptable) {
|
||||
IFile file = (IFile) ((IAdaptable)receiver).getAdapter(IResource.class);
|
||||
if (file != null) {
|
||||
celement = CoreModel.getDefault().create(file);
|
||||
}
|
||||
}
|
||||
return (celement != null && celement instanceof IBinary);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue