svn commit: r15388 - trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2008-07-28 00:23:50-0700
New Revision: 15388
Modified:
trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java
Log:
Issue 4994: Disable read-only change veto for now
Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java?view=diff&rev=15388&p1=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java&p2=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java&r1=15387&r2=15388
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java (original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/ModelEventPumpMDRImpl.java 2008-07-28 00:23:50-0700
@@ -368,29 +368,29 @@
synchronized (eventCountMutex) {
pendingEvents++;
}
- if (e instanceof InstanceEvent) {
- if (e.isOfType(InstanceEvent.EVENT_INSTANCE_CREATE)) {
- RefBaseObject element = (RefBaseObject) ((InstanceEvent) e).getSource();
- if (isReadOnly(element)) {
- throw new VetoChangeException(e.getSource(), null);
- }
- } else {
- RefObject element = ((InstanceEvent) e).getInstance();
- if (isReadOnly(element)) {
- throw new VetoChangeException(e.getSource(), element);
- }
- }
- } else if (e instanceof AssociationEvent) {
- RefObject element = ((AssociationEvent) e).getFixedElement();
- if (isReadOnly(element)) {
- throw new VetoChangeException(element, element);
- }
- } else if (e instanceof AttributeEvent) {
- RefObject element = (RefObject) ((AttributeEvent) e).getSource();
- if (isReadOnly(element)) {
- throw new VetoChangeException(element, element);
- }
- }
+// if (e instanceof InstanceEvent) {
+// if (e.isOfType(InstanceEvent.EVENT_INSTANCE_CREATE)) {
+// RefBaseObject element = (RefBaseObject) ((InstanceEvent) e).getSource();
+// if (isReadOnly(element)) {
+// throw new VetoChangeException(e.getSource(), null);
+// }
+// } else {
+// RefObject element = ((InstanceEvent) e).getInstance();
+// if (isReadOnly(element)) {
+// throw new VetoChangeException(e.getSource(), element);
+// }
+// }
+// } else if (e instanceof AssociationEvent) {
+// RefObject element = ((AssociationEvent) e).getFixedElement();
+// if (isReadOnly(element)) {
+// throw new VetoChangeException(element, element);
+// }
+// } else if (e instanceof AttributeEvent) {
+// RefObject element = (RefObject) ((AttributeEvent) e).getSource();
+// if (isReadOnly(element)) {
+// throw new VetoChangeException(element, element);
+// }
+// }
// Prototypical logging code that can be enabled and modified to