Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhussey2006-06-08 18:28:10 +0000
committerkhussey2006-06-08 18:28:10 +0000
commit0946b249e784063a2ae4ffd7301c8fa288434305 (patch)
tree7aec51daf4a312561df9cf3a523df85f07ea0c9d
parented289e317f38dbe0958cce0416fc1ce24ab33410 (diff)
downloadorg.eclipse.uml2.test-0946b249e784063a2ae4ffd7301c8fa288434305.tar.gz
org.eclipse.uml2.test-0946b249e784063a2ae4ffd7301c8fa288434305.tar.xz
org.eclipse.uml2.test-0946b249e784063a2ae4ffd7301c8fa288434305.zip
[85177] Updating item providers based on new icons.build_200606081519
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/BehavioralFeatureItemProvider.java17
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralIntegerItemProvider.java30
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LiteralUnlimitedNaturalItemProvider.java30
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/MultiplicityElementItemProvider.java18
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/ParameterItemProvider.java17
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/PinItemProvider.java18
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/StructuralFeatureItemProvider.java18
-rw-r--r--plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/VariableItemProvider.java18
8 files changed, 124 insertions, 42 deletions
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 a6097a21..8b72cf1a 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 @@ public class BehavioralFeatureItemProvider
* <!-- 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 @@ public class BehavioralFeatureItemProvider
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 86707022..de46144c 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 class LiteralIntegerItemProvider
}
public void notifyChanged(Notification notification) {
- notifyChangedGen(notification);
-
- if (notification.getFeatureID(LiteralInteger.class) == UMLPackage.LITERAL_INTEGER__VALUE) {
- Object notifier = notification.getNotifier();
-
- if (notifier instanceof EObject) {
- EObject eContainer = ((EObject) notifier).eContainer();
- if (eContainer instanceof MultiplicityElement) {
- fireNotifyChanged(new ViewerNotification(notification,
- eContainer, false, true));
+ switch (notification.getFeatureID(LiteralInteger.class)) {
+ case UMLPackage.LITERAL_INTEGER__VALUE :
+ Object notifier = notification.getNotifier();
- eContainer = eContainer.eContainer();
+ if (notifier instanceof EObject) {
+ EObject eContainer = ((EObject) notifier).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 86ba866c..9d03b58b 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 class LiteralUnlimitedNaturalItemProvider
}
public void notifyChanged(Notification notification) {
- notifyChangedGen(notification);
-
- if (notification.getFeatureID(LiteralUnlimitedNatural.class) == UMLPackage.LITERAL_UNLIMITED_NATURAL__VALUE) {
- Object notifier = notification.getNotifier();
-
- if (notifier instanceof EObject) {
- EObject eContainer = ((EObject) notifier).eContainer();
- if (eContainer instanceof MultiplicityElement) {
- fireNotifyChanged(new ViewerNotification(notification,
- eContainer, false, true));
+ switch (notification.getFeatureID(LiteralUnlimitedNatural.class)) {
+ case UMLPackage.LITERAL_UNLIMITED_NATURAL__VALUE :
+ Object notifier = notification.getNotifier();
- eContainer = eContainer.eContainer();
+ if (notifier instanceof EObject) {
+ EObject eContainer = ((EObject) notifier).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 36a0d48a..b6ec9225 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 @@ public class MultiplicityElementItemProvider
* <!-- 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 @@ public class MultiplicityElementItemProvider
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 d2723565..5902187c 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.ITreeItemContentProvider;
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 class ParameterItemProvider
}
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 @@ public class ParameterItemProvider
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 1a0e17fe..d8a44422 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 @@ public class PinItemProvider
* <!-- 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 @@ public class PinItemProvider
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 2c86986d..b21c54d4 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 @@ public class StructuralFeatureItemProvider
* <!-- 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 @@ public class StructuralFeatureItemProvider
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 0efeed42..eebfa435 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 @@ public class VariableItemProvider
* <!-- 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 @@ public class VariableItemProvider
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.

Back to the top