fc.setAcceptAllFileFilterUsed(false); // Retira "All Files"
fc.addChoosableFileFilter(new FileFilterEniac()); // Adiciona o Filtro
int returnVal = fc.showOpenDialog(fc);
if (returnVal == JFileChooser.APPROVE_OPTION) {
MainPanel panel = new MainPanel();
EniacCodeConverter eniac = new EniacCodeConverter(this.getMainPanel());
// Define o diretório pai do arquivo selecionado como último caminho usado.
properties.setProperty(PropertiesConstants.LAST_PATH, fc.getSelectedFile().getParent());
eniac.setSourceFile(fc.getSelectedFile());
eniac.execute();
Principal.getInstance().getTabbedPane().addTab(fc.getSelectedFile().getName(), panel);
Principal.getInstance().getTabbedPane().setSelectedComponent(panel);
}
}