public void createControls(Composite parent) {
body = parent;
resourceManager = new LocalResourceManager(JFaceResources.getResources(), body);
- for(ISWTViewNode child : children.values()) child.createControls(body);
+ for(ISWTViewNode child : getNodes()) child.createControls(body);
}
public Control getSingleChild() {
if(children.size() != 1) throw new IllegalStateException("SWTRoot should have exactly one child (has " + children.size() + ").");
- return children.values().iterator().next().getControl();
+ return getNodes().iterator().next().getControl();
}
}