super(pView, pMessage);
}
@Override
void doCommand() {
ContainerArvores cenario = ((IEditorView) view).getPresenter().getContainerArvores();
CenarioInventarioTableModel cenarioTM = ((IEditorView) view).getPresenter().getCenarioTM();
int coluna = ((IEditorView) view).getPresenter().getColumn();
if (cenarioTM.getColumnCount() >= 2) {
if (coluna > 0) {
try {
String nomeColuna = cenario.getHeadersNames(false).get(coluna);
Set<Map.Entry<String, String>> formulas = cenario.getHeaderAndFormulas();
for (Map.Entry<String, String> entry : formulas) {
String col = entry.getKey();
String formula = entry.getValue().toLowerCase();
if (formula.contains(nomeColuna.toLowerCase())) {
throw new Exception("A coluna " + nomeColuna.toUpperCase() + " faz parte da fórmula da coluna "