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

getNeededShareLib() should also be valid for executable

This commit is contained in:
Alain Magloire 2003-04-25 15:27:46 +00:00
parent b8024352d1
commit baadcc3034

View file

@ -36,7 +36,6 @@ public class Binary extends Openable implements IBinary {
binaryFile = bin;
}
public boolean isSharedLib() {
if (binaryFile != null) {
return binaryFile.getType() == IBinaryObject.SHARED;
@ -80,7 +79,7 @@ public class Binary extends Openable implements IBinary {
}
public String[] getNeededSharedLibs() {
if (isExecutable()) {
if (isExecutable() || isSharedLib()) {
return ((IBinaryExecutable)binaryFile).getNeededSharedLibs();
}
return new String[0];
@ -121,6 +120,13 @@ public class Binary extends Openable implements IBinary {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/
public boolean isReadOnly() {
return true;
}
public CElementInfo createElementInfo() {
return new BinaryInfo(this);
}