private void restoreWidgetValues() { if (description != null) { nameText.setText(description.getName()); nameText.setEnabled(false); } else { nameText.setText(repository.getName()); } locationText.setText(TernModuleHelper.getPath(repository.getBaseDir())); }