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 committed Feb 6, 2024
1 parent a172df5 commit 2e9d9df
Showing 1 changed file with 35 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

import org.eclipse.emf.common.notify.AdapterFactory;
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 All @@ -30,36 +29,34 @@
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;

import org.eclipse.passage.lic.licenses.edit.LicensesEditPlugin;

import org.eclipse.passage.lic.licenses.model.api.SignatureAttribute;

import org.eclipse.passage.lic.licenses.model.meta.LicensesPackage;

/**
* This is the item provider adapter for a {@link org.eclipse.passage.lic.licenses.model.api.SignatureAttribute} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This is the item provider adapter for a
* {@link org.eclipse.passage.lic.licenses.model.api.SignatureAttribute} object.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @since 2.0
* @generated
*/
public class SignatureAttributeItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider,
IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This constructs an instance from a factory and a notifier. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public SignatureAttributeItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}

/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This returns the property descriptors for the adapted class. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand All @@ -74,9 +71,9 @@ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
}

/**
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* This adds a property descriptor for the Name feature. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
Expand All @@ -90,9 +87,9 @@ protected void addNamePropertyDescriptor(Object object) {
}

/**
* This adds a property descriptor for the Value feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This adds a property descriptor for the Value feature. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/
protected void addValuePropertyDescriptor(Object object) {
Expand All @@ -106,8 +103,8 @@ protected void addValuePropertyDescriptor(Object object) {
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand All @@ -116,9 +113,9 @@ protected boolean shouldComposeCreationImage() {
}

/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* This returns the label text for the adapted class. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand All @@ -128,11 +125,16 @@ public String getText(Object object) {
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
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This handles model notifications by calling {@link #updateChildren} to update
* any cached children and by creating a viewer notification, which it passes to
* {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand All @@ -151,10 +153,10 @@ public void notifyChanged(Notification notification) {
}

/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing
* the children that can be created under this object. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand All @@ -163,9 +165,9 @@ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors
}

/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* Return the resource locator for this item provider's resources. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
Expand Down

0 comments on commit 2e9d9df

Please sign in to comment.