HashSet allowedTypes = new HashSet(); allowedTypes.add(new StringRange("Supporting")); allowedTypes.add(new StringRange("Subordinate")); propType.setAllowedValues(allowedTypes);
  public void initProperties() {    propType = addProperty(PROP_TYPE, relationship.getType());    propType.setToolTip(PROP_TYPE_DESC);    propRole = addProperty(PROP_ROLE, relationship.getRole());    propRole.setToolTip(PROP_ROLE_DESC);    propItem = addProperty(PROP_ITEM, relationship.getItem());    propItem.setToolTip(PROP_ITEM_DESC);    propSupported = addProperty(PROP_SUPPORTED, relationship.getSupported());    propSupported.setToolTip(PROP_SUPPORTED_DESC);  }