Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java')
-rw-r--r--extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java
index 64b67fe65f6..8f9d345882c 100644
--- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java
+++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit/src-gen/org/eclipse/papyrus/umldi/provider/ElementWithPortsShapeItemProvider.java
@@ -11,7 +11,6 @@
*/
package org.eclipse.papyrus.umldi.provider;
-
import java.util.Collection;
import java.util.List;
@@ -31,13 +30,16 @@ import org.eclipse.papyrus.umldi.UMLDIPackage;
* This is the item provider adapter for a {@link org.eclipse.papyrus.umldi.ElementWithPortsShape} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
-public class ElementWithPortsShapeItemProvider extends ElementWithInternalStructureShapeItemProvider {
+public class ElementWithPortsShapeItemProvider extends ElementWithStructureShapeItemProvider {
+
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ElementWithPortsShapeItemProvider(AdapterFactory adapterFactory) {
@@ -48,13 +50,13 @@ public class ElementWithPortsShapeItemProvider extends ElementWithInternalStruct
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
+ if(itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
-
}
return itemPropertyDescriptors;
}
@@ -65,11 +67,12 @@ public class ElementWithPortsShapeItemProvider extends ElementWithInternalStruct
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
+ if(childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(UMLDIPackage.Literals.ELEMENT_WITH_PORTS_SHAPE__PORT_SHAPE);
}
@@ -79,13 +82,13 @@ public class ElementWithPortsShapeItemProvider extends ElementWithInternalStruct
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
-
return super.getChildFeature(object, child);
}
@@ -93,29 +96,30 @@ public class ElementWithPortsShapeItemProvider extends ElementWithInternalStruct
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- return getString("_UI_ElementWithPortsShape_type");
+ ElementWithPortsShape elementWithPortsShape = (ElementWithPortsShape)object;
+ return getString("_UI_ElementWithPortsShape_type") + " " + elementWithPortsShape.isShowStereotypeAttributes();
}
-
/**
* 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
public void notifyChanged(Notification notification) {
updateChildren(notification);
-
- switch (notification.getFeatureID(ElementWithPortsShape.class)) {
- case UMLDIPackage.ELEMENT_WITH_PORTS_SHAPE__PORT_SHAPE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
+ switch(notification.getFeatureID(ElementWithPortsShape.class)) {
+ case UMLDIPackage.ELEMENT_WITH_PORTS_SHAPE__PORT_SHAPE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -125,16 +129,12 @@ public class ElementWithPortsShapeItemProvider extends ElementWithInternalStruct
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (UMLDIPackage.Literals.ELEMENT_WITH_PORTS_SHAPE__PORT_SHAPE,
- UMLDIFactory.eINSTANCE.createPortShape()));
+ newChildDescriptors.add(createChildParameter(UMLDIPackage.Literals.ELEMENT_WITH_PORTS_SHAPE__PORT_SHAPE, UMLDIFactory.eINSTANCE.createPortShape()));
}
-
}

Back to the top