conditionsModel.setList(((ConditionsDescriptor)rd.getConditions().get(0)).getConditions());
conditionsModel.setList(rd.getConditionsDescriptor().getConditions());
  protected void updateView()  {    StepCell cell = (StepCell)getCell();    StepDescriptor stepDescriptor = cell.getDescriptor();    ActionDescriptor firstAction;    //todo need to do this in some way that handles multiple actions    if(stepDescriptor.getActions().size()>0)    {      firstAction = (ActionDescriptor)stepDescriptor.getActions().get(0);    }    else    {      firstAction = null;    }    if(firstAction!=null)    {      RestrictionDescriptor rd = firstAction.getRestriction();      if(rd==null)      {        rd = new RestrictionDescriptor();        rd.setParent(firstAction);        ConditionsDescriptor conditions = new ConditionsDescriptor();        rd.getConditions().add(conditions);        conditions.setParent(rd);        conditions.setType((String)restrict.getSelectedItem());        firstAction.setRestriction(rd);      }      //todo no nested conditions allowed      conditionsModel.setList(((ConditionsDescriptor)rd.getConditions().get(0)).getConditions());    }    else    {      conditionsModel.setList(new ArrayList());    }    conditionsTable.getSelectionModel().clearSelection();    preModel.setList(firstAction==null ? new ArrayList() : firstAction.getPreFunctions());    pre.getSelectionModel().clearSelection();    postModel.setList(firstAction==null ? new ArrayList() : firstAction.getPostFunctions());    post.getSelectionModel().clearSelection();    connector.setSource(stepDescriptor);  }