view.getTreeNavigator().expandAll();
}
@Override
public void updateTreeModel() {
IconNode projetoNode = new IconNode("Projeto", true, new ImageIcon(Configuracao.getPath() + "images/projeto1.png"), IconNode.PROJETO);
DefaultTreeModel model = new DefaultTreeModel(projetoNode);
IconNode volumeNode = new IconNode("Volume", true, new ImageIcon(Configuracao.getPath() + "images/cenario.png"), IconNode.NONE);
Iterator<CenarioVolume> itCenariosVolume = view.getProjeto().getIteratorCenario();
while (itCenariosVolume.hasNext()) {
CenarioVolume cenarioVolume = itCenariosVolume.next();
IconNode cenarioNode = new IconNode(cenarioVolume.getNome(), true, new ImageIcon(Configuracao.getPath() + "images/cenario2.png"), IconNode.CENARIO_VOLUME, cenarioVolume.getId());
IconNode arvoresNode = new IconNode("Árvores", false, new ImageIcon(Configuracao.getPath() + "images/arvores.png"), IconNode.ARVORES, cenarioVolume.getId());
cenarioNode.add(arvoresNode);
volumeNode.add(cenarioNode);
}
IconNode indiceLocalNode = new IconNode("Índice de Local", true, new ImageIcon(Configuracao.getPath() + "images/indice.png"), IconNode.NONE);
((IconNode) model.getRoot()).setAllowsChildren(true);
((IconNode) model.getRoot()).add(volumeNode);
((IconNode) model.getRoot()).add(indiceLocalNode);