Skip to content

Commit

Permalink
Complete rendering for Signature Attribute #1277
Browse files Browse the repository at this point in the history
  • Loading branch information
eparovyshnaya authored and ruspl-afed committed Feb 6, 2024
1 parent a172df5 commit f6f7e40
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -19,7 +19,7 @@
import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.common.util.ResourceLocator;

import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
Expand Down Expand Up @@ -127,6 +127,11 @@ public String getText(Object object) {
return label == null || label.length() == 0 ? getString("_UI_SignatureAttribute_type") : //$NON-NLS-1$
getString("_UI_SignatureAttribute_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
}

@Override
public Object getImage(Object object) {
return overlayImage(object, EcoreEditPlugin.INSTANCE.getImage("full/obj16/EObject")); //$NON-NLS-1$
}

/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
Expand Down

0 comments on commit f6f7e40

Please sign in to comment.