public static void main(String[] args) { try { SetupConfig config = new SetupConfig(); validateEclipse(config); validateWorkspace(config); launchEclipse(config); config.assertSetupIsCorrect(); } catch (Throwable t) { MessageBox.showMessage("Something went wrong: \r\n" + t.getMessage()); } }