@SuppressWarnings("unchecked")
 private void updateModel() {
   IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
   if (!selection.isEmpty()) {
     List<String> resources = new ArrayList<String>();
     List<TreeObject> nodes = selection.toList();
     for (TreeObject o : nodes) {
       if (o.getNodeType() == TreeObject.Type.RESOURCE) {
         resources.add(o.getFullPath());
       }
     }
     GuvWizardModel model = ((IGuvnorWizard) super.getWizard()).getModel();
     if (resources.size() > 0) {
       model.setResources(resources);
     } else {
       model.setResources(null);
     }
   }
   super.getWizard().getContainer().updateButtons();
 }