mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
2005-07-22 Chris Wiebe
Fix for PR 104725 * model/org/eclipse/cdt/internal/core/model/BinaryElement.java
This commit is contained in:
parent
4bcf2bce38
commit
459ee19699
2 changed files with 36 additions and 28 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-07-22 Chris Wiebe
|
||||
Fix for PR 104725
|
||||
* model/org/eclipse/cdt/internal/core/model/BinaryElement.java
|
||||
|
||||
2005-07-16 Alain Magloire
|
||||
Fix for PR 102327: Fire deltas when contentType is changed.
|
||||
* model/org/eclipse/cdt/core/model/ICElementDelta.java
|
||||
|
|
|
@ -31,6 +31,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
|||
IAddress addr;
|
||||
int fStartLine;
|
||||
int fEndLine;
|
||||
ITranslationUnit fSourceTU;
|
||||
|
||||
public BinaryElement(ICElement parent, String name, int type, IAddress a) {
|
||||
super(parent, name, type);
|
||||
|
@ -103,6 +104,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
|||
* @see org.eclipse.cdt.core.model.ISourceReference#getTranslationUnit()
|
||||
*/
|
||||
public ITranslationUnit getTranslationUnit() {
|
||||
if (fSourceTU == null) {
|
||||
ITranslationUnit tu = null;
|
||||
CModelManager mgr = CModelManager.getDefault();
|
||||
ICElement parent = getParent();
|
||||
|
@ -136,7 +138,9 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
|||
}
|
||||
}
|
||||
}
|
||||
return tu;
|
||||
fSourceTU = tu;
|
||||
}
|
||||
return fSourceTU;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue