Interperter interperter = interperterFactory.createInterperter();
swingInterface.addCompletion(new CommandCompletion(interperter));
swingInterface.addCompletion(new FileCompletion(interperter));
interperter.interpret();
} catch (ValidationException e) {
ErrorDialog errorDialog = new ErrorDialog(swingInterface.getFrame(), e);
errorDialog.setVisible(true);
swingInterface.stop();
}
}