mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-02 05:03:36 +02:00
new method isCore().
This commit is contained in:
parent
3b64f661db
commit
f35c3e8644
2 changed files with 15 additions and 0 deletions
|
@ -45,6 +45,13 @@ public class Binary extends CFile implements IBinary {
|
||||||
return ((BinaryInfo)getElementInfo()).isSharedLib();
|
return ((BinaryInfo)getElementInfo()).isSharedLib();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see org.eclipse.cdt.core.model.IBinary#isCore()
|
||||||
|
*/
|
||||||
|
public boolean isCore() {
|
||||||
|
return ((BinaryInfo)getElementInfo()).isCore();
|
||||||
|
}
|
||||||
|
|
||||||
public String [] getNeededSharedLibs() {
|
public String [] getNeededSharedLibs() {
|
||||||
return ((BinaryInfo)getElementInfo()).getNeededSharedLibs();
|
return ((BinaryInfo)getElementInfo()).getNeededSharedLibs();
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,14 @@ class BinaryInfo extends CFileInfo {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isCore() {
|
||||||
|
IBinaryObject bin = getBinaryObject();
|
||||||
|
if (bin != null) {
|
||||||
|
return bin.getType() == IBinaryObject.CORE;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean hasDebug() {
|
public boolean hasDebug() {
|
||||||
IBinaryObject bin = getBinaryObject();
|
IBinaryObject bin = getBinaryObject();
|
||||||
if (bin != null) {
|
if (bin != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue