@Override public Object getPropertyValue(Object o) { if (((XSDSimpleTypeDefinition)o).isSetVariety()) { return super.getPropertyValue(o); } else { return XSDEditPlugin.INSTANCE.getString("_UI_Absent_label"); } } });
/** * This returns XSDSimpleTypeDefinition.gif. */ @Override public Object getImage(Object object) { XSDSimpleTypeDefinition xsdSimpleTypeDefinition = ((XSDSimpleTypeDefinition)object); return XSDEditPlugin.INSTANCE.getImage (xsdSimpleTypeDefinition.getContainer() == null ? "full/obj16/XSDSimpleTypeDefinitionUnresolved" : XSDVariety.LIST_LITERAL == xsdSimpleTypeDefinition.getVariety() ? "full/obj16/XSDSimpleTypeDefinitionList" : XSDVariety.UNION_LITERAL == xsdSimpleTypeDefinition.getVariety() ? "full/obj16/XSDSimpleTypeDefinitionUnion" : xsdSimpleTypeDefinition.isSetVariety() ? "full/obj16/XSDSimpleTypeDefinitionAtomic" : "full/obj16/XSDSimpleTypeDefinition"); }
if (theBaseTypeDefinition == null || !theBaseTypeDefinition.isSetVariety() || theBaseTypeDefinition.getVariety() != getVariety())
if (theBaseTypeDefinition == null || !theBaseTypeDefinition.isSetVariety() || theBaseTypeDefinition.getVariety() != getVariety())