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:
parent
b8024352d1
commit
baadcc3034
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue