/** * {@inheritDoc} * * @see org.eclipse.emf.compare.provider.ReferenceChangeItemProvider#getImage(java.lang.Object) */ @Override public Object getImage(Object object) { ReferenceChange refChange = (ReferenceChange) object; Object image = AdapterFactoryUtil.getImage(getRootAdapterFactory(), refChange.getValue()); return image; }
protected String getValueText(final ReferenceChange refChange) { String value = AdapterFactoryUtil.getText(getRootAdapterFactory(), refChange.getValue()); if (value == null) { value = "<null>"; // $NON-NLS-1$ } else { value = org.eclipse.emf.compare.provider.spec.Strings.elide(value, 50, "..."); // $NON-NLS-1$ } return value; }