diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java index a0b2335f5b8..acbebb57c0b 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java @@ -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); }