mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +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
|
2005-07-16 Alain Magloire
|
||||||
Fix for PR 102327: Fire deltas when contentType is changed.
|
Fix for PR 102327: Fire deltas when contentType is changed.
|
||||||
* model/org/eclipse/cdt/core/model/ICElementDelta.java
|
* model/org/eclipse/cdt/core/model/ICElementDelta.java
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
IAddress addr;
|
IAddress addr;
|
||||||
int fStartLine;
|
int fStartLine;
|
||||||
int fEndLine;
|
int fEndLine;
|
||||||
|
ITranslationUnit fSourceTU;
|
||||||
|
|
||||||
public BinaryElement(ICElement parent, String name, int type, IAddress a) {
|
public BinaryElement(ICElement parent, String name, int type, IAddress a) {
|
||||||
super(parent, name, type);
|
super(parent, name, type);
|
||||||
|
@ -103,6 +104,7 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
* @see org.eclipse.cdt.core.model.ISourceReference#getTranslationUnit()
|
* @see org.eclipse.cdt.core.model.ISourceReference#getTranslationUnit()
|
||||||
*/
|
*/
|
||||||
public ITranslationUnit getTranslationUnit() {
|
public ITranslationUnit getTranslationUnit() {
|
||||||
|
if (fSourceTU == null) {
|
||||||
ITranslationUnit tu = null;
|
ITranslationUnit tu = null;
|
||||||
CModelManager mgr = CModelManager.getDefault();
|
CModelManager mgr = CModelManager.getDefault();
|
||||||
ICElement parent = getParent();
|
ICElement parent = getParent();
|
||||||
|
@ -136,7 +138,9 @@ public class BinaryElement extends CElement implements IBinaryElement, ISourceMa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tu;
|
fSourceTU = tu;
|
||||||
|
}
|
||||||
|
return fSourceTU;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue