private void updateModel() { GuvWizardModel model = ((IGuvnorWizard) super.getWizard()).getModel(); String selected = null; if (repLocations.getSelection().length > 0) { selected = repLocations.getSelection()[0]; } if (selected != null) { model.setRepLocation(repLocations.getSelection()[0]); } }