/** * {@inheritDoc} */ @Override public int compareTo(AbstractStorageLabelType<?> other) { if (!AbstractCustomStorageLabelType.class.isAssignableFrom(other.getClass())) { return super.compareTo(other); } else { AbstractCustomStorageLabelType<?> abstractCustomStorageLabelType = (AbstractCustomStorageLabelType<?>) other; return name.compareTo(abstractCustomStorageLabelType.getName()); } }
} else if (labelType instanceof AbstractCustomStorageLabelType) { AbstractCustomStorageLabelType<?> customLabelType = (AbstractCustomStorageLabelType<?>) labelType; if (null != customLabelType.getImageKey()) { if (null != InspectIT.getDefault().getImage(customLabelType.getImageKey())) { // NOPMD return customLabelType.getImageKey(); if (Boolean.class.equals(customLabelType.getValueClass())) { return InspectITImages.IMG_CHECKMARK; } else if (Date.class.equals(customLabelType.getValueClass())) { return InspectITImages.IMG_CALENDAR; } else if (Number.class.equals(customLabelType.getValueClass())) { return InspectITImages.IMG_NUMBER; } else if (String.class.equals(customLabelType.getValueClass())) { return InspectITImages.IMG_FONT;
return "Data Timeframe"; } else if (AbstractCustomStorageLabelType.class.isAssignableFrom(labelType.getClass())) { return ((AbstractCustomStorageLabelType<?>) labelType).getName(); } else { return "Unknown Label";