[85177] Updating item providers based on new icons.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/BehavioralFeatureItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/BehavioralFeatureItemProvider.java
index a6097a2..8b72cf1 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/BehavioralFeatureItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/BehavioralFeatureItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: BehavioralFeatureItemProvider.java,v 1.4 2006/05/15 21:06:22 khussey Exp $
+ * $Id: BehavioralFeatureItemProvider.java,v 1.5 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -355,7 +355,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public void notifyChanged(Notification notification) {
+ public void notifyChangedGen(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(BehavioralFeature.class)) {
@@ -375,6 +375,19 @@
super.notifyChanged(notification);
}
+ public void notifyChanged(Notification notification) {
+
+ switch (notification.getFeatureID(BehavioralFeature.class)) {
+ case UMLPackage.BEHAVIORAL_FEATURE__OWNED_PARAMETER :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
+ return;
+ }
+
+ notifyChangedGen(notification);
+ }
+
/**
* This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
* describing all of the children that can be created under this object.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralIntegerItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralIntegerItemProvider.java
index 8670702..de46144 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralIntegerItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralIntegerItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: LiteralIntegerItemProvider.java,v 1.6 2006/06/08 17:10:11 khussey Exp $
+ * $Id: LiteralIntegerItemProvider.java,v 1.7 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -144,27 +144,29 @@
}
public void notifyChanged(Notification notification) {
- notifyChangedGen(notification);
- if (notification.getFeatureID(LiteralInteger.class) == UMLPackage.LITERAL_INTEGER__VALUE) {
- Object notifier = notification.getNotifier();
+ switch (notification.getFeatureID(LiteralInteger.class)) {
+ case UMLPackage.LITERAL_INTEGER__VALUE :
+ Object notifier = notification.getNotifier();
- if (notifier instanceof EObject) {
- EObject eContainer = ((EObject) notifier).eContainer();
+ if (notifier instanceof EObject) {
+ EObject eContainer = ((EObject) notifier).eContainer();
- if (eContainer instanceof MultiplicityElement) {
- fireNotifyChanged(new ViewerNotification(notification,
- eContainer, false, true));
-
- eContainer = eContainer.eContainer();
-
- if (eContainer instanceof Operation) {
+ if (eContainer instanceof MultiplicityElement) {
fireNotifyChanged(new ViewerNotification(notification,
eContainer, false, true));
+
+ eContainer = eContainer.eContainer();
+
+ if (eContainer instanceof Operation) {
+ fireNotifyChanged(new ViewerNotification(
+ notification, eContainer, false, true));
+ }
}
}
- }
}
+
+ notifyChangedGen(notification);
}
/**
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralUnlimitedNaturalItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralUnlimitedNaturalItemProvider.java
index 86ba866..9d03b58 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralUnlimitedNaturalItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralUnlimitedNaturalItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: LiteralUnlimitedNaturalItemProvider.java,v 1.7 2006/06/08 17:40:25 khussey Exp $
+ * $Id: LiteralUnlimitedNaturalItemProvider.java,v 1.8 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -147,27 +147,29 @@
}
public void notifyChanged(Notification notification) {
- notifyChangedGen(notification);
- if (notification.getFeatureID(LiteralUnlimitedNatural.class) == UMLPackage.LITERAL_UNLIMITED_NATURAL__VALUE) {
- Object notifier = notification.getNotifier();
+ switch (notification.getFeatureID(LiteralUnlimitedNatural.class)) {
+ case UMLPackage.LITERAL_UNLIMITED_NATURAL__VALUE :
+ Object notifier = notification.getNotifier();
- if (notifier instanceof EObject) {
- EObject eContainer = ((EObject) notifier).eContainer();
+ if (notifier instanceof EObject) {
+ EObject eContainer = ((EObject) notifier).eContainer();
- if (eContainer instanceof MultiplicityElement) {
- fireNotifyChanged(new ViewerNotification(notification,
- eContainer, false, true));
-
- eContainer = eContainer.eContainer();
-
- if (eContainer instanceof Operation) {
+ if (eContainer instanceof MultiplicityElement) {
fireNotifyChanged(new ViewerNotification(notification,
eContainer, false, true));
+
+ eContainer = eContainer.eContainer();
+
+ if (eContainer instanceof Operation) {
+ fireNotifyChanged(new ViewerNotification(
+ notification, eContainer, false, true));
+ }
}
}
- }
}
+
+ notifyChangedGen(notification);
}
/**
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/MultiplicityElementItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/MultiplicityElementItemProvider.java
index 36a0d48..b6ec922 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/MultiplicityElementItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/MultiplicityElementItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: MultiplicityElementItemProvider.java,v 1.6 2006/06/08 17:10:11 khussey Exp $
+ * $Id: MultiplicityElementItemProvider.java,v 1.7 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -249,7 +249,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public void notifyChanged(Notification notification) {
+ public void notifyChangedGen(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(MultiplicityElement.class)) {
@@ -269,6 +269,20 @@
super.notifyChanged(notification);
}
+ public void notifyChanged(Notification notification) {
+
+ switch (notification.getFeatureID(MultiplicityElement.class)) {
+ case UMLPackage.MULTIPLICITY_ELEMENT__UPPER_VALUE :
+ case UMLPackage.MULTIPLICITY_ELEMENT__LOWER_VALUE :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
+ return;
+ }
+
+ notifyChangedGen(notification);
+ }
+
/**
* This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
* describing all of the children that can be created under this object.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/ParameterItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/ParameterItemProvider.java
index d272356..5902187 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/ParameterItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/ParameterItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: ParameterItemProvider.java,v 1.11 2006/06/08 17:10:11 khussey Exp $
+ * $Id: ParameterItemProvider.java,v 1.12 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -32,6 +32,7 @@
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.eclipse.uml2.uml.LiteralSpecification;
import org.eclipse.uml2.uml.Operation;
import org.eclipse.uml2.uml.Parameter;
import org.eclipse.uml2.uml.Type;
@@ -468,15 +469,17 @@
}
public void notifyChanged(Notification notification) {
- notifyChangedGen(notification);
switch (notification.getFeatureID(Parameter.class)) {
+ case UMLPackage.PARAMETER__UPPER_VALUE :
+ case UMLPackage.PARAMETER__LOWER_VALUE :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
case UMLPackage.PARAMETER__NAME :
case UMLPackage.PARAMETER__TYPE :
case UMLPackage.PARAMETER__UPPER :
case UMLPackage.PARAMETER__LOWER :
- case UMLPackage.PARAMETER__UPPER_VALUE :
- case UMLPackage.PARAMETER__LOWER_VALUE :
Object notifier = notification.getNotifier();
if (notifier instanceof EObject) {
@@ -487,7 +490,13 @@
eContainer, false, true));
}
}
+
+ if (notifier instanceof LiteralSpecification) {
+ return;
+ }
}
+
+ notifyChangedGen(notification);
}
/**
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/PinItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/PinItemProvider.java
index 1a0e17f..d8a4442 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/PinItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/PinItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: PinItemProvider.java,v 1.9 2006/06/08 17:10:11 khussey Exp $
+ * $Id: PinItemProvider.java,v 1.10 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -279,7 +279,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public void notifyChanged(Notification notification) {
+ public void notifyChangedGen(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(Pin.class)) {
@@ -300,6 +300,20 @@
super.notifyChanged(notification);
}
+ public void notifyChanged(Notification notification) {
+
+ switch (notification.getFeatureID(Pin.class)) {
+ case UMLPackage.PIN__UPPER_VALUE :
+ case UMLPackage.PIN__LOWER_VALUE :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
+ return;
+ }
+
+ notifyChangedGen(notification);
+ }
+
/**
* This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
* describing all of the children that can be created under this object.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/StructuralFeatureItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/StructuralFeatureItemProvider.java
index 2c86986..b21c54d 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/StructuralFeatureItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/StructuralFeatureItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: StructuralFeatureItemProvider.java,v 1.7 2006/06/08 17:10:11 khussey Exp $
+ * $Id: StructuralFeatureItemProvider.java,v 1.8 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -290,7 +290,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public void notifyChanged(Notification notification) {
+ public void notifyChangedGen(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(StructuralFeature.class)) {
@@ -312,6 +312,20 @@
super.notifyChanged(notification);
}
+ public void notifyChanged(Notification notification) {
+
+ switch (notification.getFeatureID(StructuralFeature.class)) {
+ case UMLPackage.STRUCTURAL_FEATURE__UPPER_VALUE :
+ case UMLPackage.STRUCTURAL_FEATURE__LOWER_VALUE :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
+ return;
+ }
+
+ notifyChangedGen(notification);
+ }
+
/**
* This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
* describing all of the children that can be created under this object.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/VariableItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/VariableItemProvider.java
index 0efeed4..eebfa43 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/VariableItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/VariableItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: VariableItemProvider.java,v 1.10 2006/06/08 17:10:11 khussey Exp $
+ * $Id: VariableItemProvider.java,v 1.11 2006/06/08 18:28:10 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -302,7 +302,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public void notifyChanged(Notification notification) {
+ public void notifyChangedGen(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(Variable.class)) {
@@ -322,6 +322,20 @@
super.notifyChanged(notification);
}
+ public void notifyChanged(Notification notification) {
+
+ switch (notification.getFeatureID(Variable.class)) {
+ case UMLPackage.VARIABLE__UPPER_VALUE :
+ case UMLPackage.VARIABLE__LOWER_VALUE :
+ updateChildren(notification);
+ fireNotifyChanged(new ViewerNotification(notification,
+ notification.getNotifier(), true, true));
+ return;
+ }
+
+ notifyChangedGen(notification);
+ }
+
/**
* This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
* describing all of the children that can be created under this object.