+
+ protected String getFormattedName() {
+ try {
+ String partName = null;
+ if (getArtifact().hasProperty(SLC_NAME))
+ partName = getArtifact().getProperty(SLC_NAME).getString();
+ else
+ partName = getArtifact().getName();
+
+ if (partName.length() > 10) {
+ partName = "..." + partName.substring(partName.length() - 10);
+ }
+ return partName;
+ } catch (RepositoryException re) {
+ throw new SlcException("unable to get slc:name property for node "
+ + getArtifact(), re);
+ }
+ }
+