analysis.appendChild(pkg);
pkg.addListener(new TreeNodeListenerAdapter() {
public void onClick(Node node, EventObject e) {
if (!centerPanel.showIfOpen("analysis" + c.uuid)) { //NON-NLS
String m = Format.format(constants.AnalysisForPackage(), c.name);
centerPanel.addTab(m, true, new AnalysisView(c.uuid, c.name), "analysis" + c.uuid); //NON-NLS
}
}
});
}
analysis.removeChild(analysis.getFirstChild());