/** * Returns the name of the label, based on it's type. If label is <code>null</code>, string * "null" will be returned. * * @param label * Label to get name for. * @return Returns the name of the label, based on it's class. */ public static String getLabelName(AbstractStorageLabel<?> label) { if (null == label) { return "null"; } else { return getLabelName(label.getStorageLabelType()); } }
if (c == null) { c = new GroupedLabelsComposite(label); c.setName(TextFormatter.getLabelName(label) + ": " + TextFormatter.getLabelValue(label, true)); c.setImage(ImageFormatter.getImageForLabel(storageLabelType)); map.put(TextFormatter.getLabelValue(label, true), c);
if (c == null) { c = new Composite(); c.setName(TextFormatter.getLabelName(label) + ": " + TextFormatter.getLabelValue(label, true)); c.setImage(ImageFormatter.getImageForLabel(storageLabelType)); map.put(TextFormatter.getLabelValue(label, true), c);
if (labelType.isGroupingEnabled()) { groupByLabelMenu.add( new LabelOrderAction(TextFormatter.getLabelName(labelType), ImageFormatter.getImageDescriptorForLabel(labelType), labelType, ObjectUtils.equals(labelType, orderingLabelType)));