return BeansModelLabels.getElementLabel(config, BeansUILabels.APPEND_PATH | BeansUILabels.DESCRIPTION);
}
}
else if (element instanceof ZipEntryStorage) {
// Create label of zip entry here as it is not a core model element
ZipEntryStorage storage = (ZipEntryStorage) element;
StringBuilder builder = new StringBuilder();
builder.append(storage.getFullPath().lastSegment());
builder.append(" - ");
builder.append(storage.getFullPath().removeLastSegments(1).toString());
builder.append(" - ");
builder.append(storage.getFile().getFullPath().toString());
return builder.toString();
}
else if (element instanceof BeanMetadataReference
&& BeanMetadataUtils.getLabelProvider((BeanMetadataReference) element) != null) {
return BeanMetadataUtils.getLabelProvider((BeanMetadataReference) element).getDescription(element);