public String getItemName() { if (itemName == null) { IBrandingService brandingService = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class); boolean allowVerchange = brandingService.getBrandingConfiguration().isAllowChengeVersion(); ERepositoryObjectType itemType = ERepositoryObjectType.getItemType(property.getItem()); StringBuffer sb = new StringBuffer(); if (itemType != null) { sb.append(itemType.toString()); sb.append(' '); } sb.append(property.getLabel()); if (allowVerchange) { sb.append(' '); sb.append(property.getVersion()); } itemName = sb.toString(); } return itemName; }
@Override public String getLabel() { return type.toString(); }
public TypeNode(ERepositoryObjectType type) { super(type.toString()); this.type = type; }