1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +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; binaryFile = bin;
} }
public boolean isSharedLib() { public boolean isSharedLib() {
if (binaryFile != null) { if (binaryFile != null) {
return binaryFile.getType() == IBinaryObject.SHARED; return binaryFile.getType() == IBinaryObject.SHARED;
@ -80,7 +79,7 @@ public class Binary extends Openable implements IBinary {
} }
public String[] getNeededSharedLibs() { public String[] getNeededSharedLibs() {
if (isExecutable()) { if (isExecutable() || isSharedLib()) {
return ((IBinaryExecutable)binaryFile).getNeededSharedLibs(); return ((IBinaryExecutable)binaryFile).getNeededSharedLibs();
} }
return new String[0]; return new String[0];
@ -121,6 +120,13 @@ public class Binary extends Openable implements IBinary {
return false; return false;
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.core.model.ICElement#isReadOnly()
*/
public boolean isReadOnly() {
return true;
}
public CElementInfo createElementInfo() { public CElementInfo createElementInfo() {
return new BinaryInfo(this); return new BinaryInfo(this);
} }