|
@@ -18,14 +18,12 @@ 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.EStructuralFeature;
|
|
|
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
|
|
|
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
|
|
|
import org.eclipse.emf.edit.provider.IItemLabelProvider;
|
|
|
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
|
|
|
import org.eclipse.emf.edit.provider.IItemPropertySource;
|
|
|
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
|
|
|
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
|
|
|
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
|
|
|
import org.eclipse.emf.edit.provider.ViewerNotification;
|
|
|
import org.yakindu.base.base.provider.NamedElementItemProvider;
|
|
|
import org.yakindu.sct.model.sgraph.Region;
|
|
@@ -74,33 +72,10 @@ public class RegionItemProvider
|
|
|
if (itemPropertyDescriptors == null) {
|
|
|
super.getPropertyDescriptors(object);
|
|
|
|
|
|
- addPriorityPropertyDescriptor(object);
|
|
|
}
|
|
|
return itemPropertyDescriptors;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * This adds a property descriptor for the Priority feature.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- protected void addPriorityPropertyDescriptor(Object object) {
|
|
|
- itemPropertyDescriptors.add
|
|
|
- (createItemPropertyDescriptor
|
|
|
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
|
|
|
- getResourceLocator(),
|
|
|
- getString("_UI_Region_priority_feature"),
|
|
|
- getString("_UI_PropertyDescriptor_description", "_UI_Region_priority_feature", "_UI_Region_type"),
|
|
|
- SGraphPackage.Literals.REGION__PRIORITY,
|
|
|
- true,
|
|
|
- false,
|
|
|
- false,
|
|
|
- ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
|
|
|
- null,
|
|
|
- null));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
|
|
|
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
|
|
@@ -168,9 +143,6 @@ public class RegionItemProvider
|
|
|
updateChildren(notification);
|
|
|
|
|
|
switch (notification.getFeatureID(Region.class)) {
|
|
|
- case SGraphPackage.REGION__PRIORITY:
|
|
|
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
|
|
|
- return;
|
|
|
case SGraphPackage.REGION__VERTICES:
|
|
|
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
|
|
|
return;
|