1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 08:13:50 +02:00

make getChildren() a synchronous

and getBinaries synchronous.
This commit is contained in:
Alain Magloire 2002-09-23 13:40:44 +00:00
parent fb7af82224
commit 121377b097

View file

@ -36,18 +36,18 @@ public class BinaryContainer extends Parent implements IBinaryContainer {
} }
public IBinary[] getBinaries() { public IBinary[] getBinaries() {
ICElement[] e = getChildren(false); ICElement[] e = getChildren(true);
IBinary[] b = new IBinary[e.length]; IBinary[] b = new IBinary[e.length];
System.arraycopy(e, 0, b, 0, e.length); System.arraycopy(e, 0, b, 0, e.length);
return b; return b;
} }
public boolean hasChildren() { public boolean hasChildren() {
return (getChildren().length > 0); return (getChildren(true).length > 0);
} }
public ICElement [] getChildren() { public ICElement [] getChildren() {
return getChildren(true); return getChildren(false);
} }
public ICElement [] getChildren(boolean sync) { public ICElement [] getChildren(boolean sync) {