This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
void setModel(ResultModel resultModel) {
if (this.resultModel != null) {
this.resultModel.removeChangeListener(this);
this.resultModel.close();
}
this.resultModel = resultModel;
root = new ResultRootNode();
/** Clean the allocated resources. */
public void close() {
root.clear();
/** Accept nodes. Some nodes were found by engine. */
public synchronized boolean acceptFoundObjects(Object[] foundObjects) {
setDisplayName(NbBundle.getBundle(ResultModel.class).getString("TEXT_SEARCHING___"));
/** Cleanup. */
public void clear() {
ResultRootChildren children = (ResultRootChildren)getChildren();
Node nodes[] = children.getNodes();
for (int i=0; i<nodes.length; i++)
if (nodes[i] instanceof FoundNode)
((FoundNode)nodes[i]).removeFromSearch();
children.remove (nodes);
/** Adds founds objects to root node. */
public void addFoundObjects(Object[] foundObjects) {