public static void setEnterpriseFacetValue(XSDSimpleTypeDefinition type, FacetValue newValue) { if (newValue.value != null) { // set new enterprise info: EnterpriseDatatypeInfo edi = ModelerCore.getWorkspaceDatatypeManager().getEnterpriseDatatypeInfo(type); if (edi == null) { edi = new EnterpriseDatatypeInfo(); } // endif edi.setRuntimeTypeFixed(new Boolean(newValue.isFixedLocal)); edi.setRuntimeType((String) newValue.value); ModelEditorImpl.fillWithDefaultValues(edi, type); ModelerCore.getModelEditor().setEnterpriseDatatypePropertyValue(type, edi); } else { // need to unset: ModelerCore.getModelEditor().unsetEnterpriseDatatypePropertyValue(type); } // endif }