@Override
public void actionPerformed(java.awt.event.ActionEvent evt) {
try {
view.getViewState().salvaDados();
Command salvarCommand = new SalvarArvoresCommand(pView, "Salvando o projeto...");
salvarCommand.execute();
} catch (Exception ex) {
ErrorInfo info = new ErrorInfo("Erro", ex.getMessage(), null, "category", ex, Level.SEVERE, null);
JXErrorPane.showDialog(view, info);
}
}