Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java110
1 files changed, 39 insertions, 71 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java
index 885b8026bf0..199670bc2ae 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.edit/src/org/eclipse/osee/framework/core/dsl/oseeDsl/provider/AttributeTypeRestrictionItemProvider.java
@@ -6,13 +6,10 @@
*/
package org.eclipse.osee.framework.core.dsl.oseeDsl.provider;
-
import java.util.Collection;
import java.util.List;
-
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -20,29 +17,20 @@ 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.osee.framework.core.dsl.oseeDsl.AccessPermissionEnum;
import org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction;
import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage;
/**
- * This is the item provider adapter for a {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link org.eclipse.osee.framework.core.dsl.oseeDsl.AttributeTypeRestriction}
+ * object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
-public class AttributeTypeRestrictionItemProvider
- extends ObjectRestrictionItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class AttributeTypeRestrictionItemProvider extends ObjectRestrictionItemProvider 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 AttributeTypeRestrictionItemProvider(AdapterFactory adapterFactory) {
@@ -50,9 +38,8 @@ public class AttributeTypeRestrictionItemProvider
}
/**
- * 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
@@ -67,53 +54,38 @@ public class AttributeTypeRestrictionItemProvider
}
/**
- * This adds a property descriptor for the Attribute Type Ref feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This adds a property descriptor for the Attribute Type Ref feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addAttributeTypeRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_AttributeTypeRestriction_attributeTypeRef_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_AttributeTypeRestriction_attributeTypeRef_feature", "_UI_AttributeTypeRestriction_type"),
- OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_AttributeTypeRestriction_attributeTypeRef_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_AttributeTypeRestriction_attributeTypeRef_feature",
+ "_UI_AttributeTypeRestriction_type"),
+ OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION__ATTRIBUTE_TYPE_REF, true, false, true, null, null, null));
}
/**
- * This adds a property descriptor for the Artifact Type Ref feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This adds a property descriptor for the Artifact Type Ref feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addArtifactTypeRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_AttributeTypeRestriction_artifactTypeRef_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_AttributeTypeRestriction_artifactTypeRef_feature", "_UI_AttributeTypeRestriction_type"),
- OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF,
- true,
- false,
- true,
- null,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_AttributeTypeRestriction_artifactTypeRef_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_AttributeTypeRestriction_artifactTypeRef_feature",
+ "_UI_AttributeTypeRestriction_type"),
+ OseeDslPackage.Literals.ATTRIBUTE_TYPE_RESTRICTION__ARTIFACT_TYPE_REF, true, false, true, null, null, null));
}
/**
- * This returns AttributeTypeRestriction.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This returns AttributeTypeRestriction.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -122,25 +94,22 @@ public class AttributeTypeRestrictionItemProvider
}
/**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- AccessPermissionEnum labelValue = ((AttributeTypeRestriction)object).getPermission();
+ AccessPermissionEnum labelValue = ((AttributeTypeRestriction) object).getPermission();
String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_AttributeTypeRestriction_type") :
- getString("_UI_AttributeTypeRestriction_type") + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_AttributeTypeRestriction_type") : getString("_UI_AttributeTypeRestriction_type") + " " + label;
}
/**
- * 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
@@ -150,10 +119,9 @@ public class AttributeTypeRestrictionItemProvider
}
/**
- * 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 -->
+ * 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

Back to the top