void () { final StringBuilder sb = new StringBuilder(); for (InjectionPlace place : myOrigInjection.getInjectionPlaces()) { sb.append(place.isEnabled()?"+ ":"- ").append(place.getText()).append("\n"); } myTextArea.setText(sb.toString()); myNameTextField.setText(myOrigInjection.getDisplayName()); }