1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

new method isCore().

This commit is contained in:
Alain Magloire 2002-11-22 16:32:25 +00:00
parent 3b64f661db
commit f35c3e8644
2 changed files with 15 additions and 0 deletions

View file

@ -45,6 +45,13 @@ public class Binary extends CFile implements IBinary {
return ((BinaryInfo)getElementInfo()).isSharedLib();
}
/**
* @see org.eclipse.cdt.core.model.IBinary#isCore()
*/
public boolean isCore() {
return ((BinaryInfo)getElementInfo()).isCore();
}
public String [] getNeededSharedLibs() {
return ((BinaryInfo)getElementInfo()).getNeededSharedLibs();
}

View file

@ -93,6 +93,14 @@ class BinaryInfo extends CFileInfo {
return false;
}
public boolean isCore() {
IBinaryObject bin = getBinaryObject();
if (bin != null) {
return bin.getType() == IBinaryObject.CORE;
}
return false;
}
public boolean hasDebug() {
IBinaryObject bin = getBinaryObject();
if (bin != null) {