Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2016-05-31 23:27:54 +0000
committerChristian W. Damus2016-06-01 12:18:05 +0000
commit9822d84cb31b6e18443f5b8bc3031218113895a9 (patch)
tree90483079eb38977e8be761d1342773308c595c8c /plugins/uml
parent351cb12a72bfc69260111399f2b4ac16e6482b99 (diff)
downloadorg.eclipse.papyrus-9822d84cb31b6e18443f5b8bc3031218113895a9.tar.gz
org.eclipse.papyrus-9822d84cb31b6e18443f5b8bc3031218113895a9.tar.xz
org.eclipse.papyrus-9822d84cb31b6e18443f5b8bc3031218113895a9.zip
Bug 495087: [State Machine] Stack overflow in canonical diagram when adding connection point
https://bugs.eclipse.org/bugs/show_bug.cgi?id=495087 Delegate default view creation to the correct superclass implementation. Change-Id: Ia680bd4c775a7d39f08044a12615e4bfbb40a60a
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/policies/CustomStateCompartmentCreationEditPolicy.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/policies/CustomStateCompartmentCreationEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/policies/CustomStateCompartmentCreationEditPolicy.java
index cb29572f94a..7d853ba00b4 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/policies/CustomStateCompartmentCreationEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/policies/CustomStateCompartmentCreationEditPolicy.java
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
+ * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,7 +8,7 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
- * Christian W. Damus - bug 477384
+ * Christian W. Damus - bugs 477384, 495087
*/
package org.eclipse.papyrus.uml.diagram.statemachine.custom.policies;
@@ -71,8 +71,7 @@ public class CustomStateCompartmentCreationEditPolicy extends CreationEditPolicy
return new ICommandProxy(cc.reduce());
}
}
- }
- else if (request instanceof CreateUnspecifiedTypeRequest) {
+ } else if (request instanceof CreateUnspecifiedTypeRequest) {
// used by palette
CreateUnspecifiedTypeRequest unspecReq = (CreateUnspecifiedTypeRequest) request;
for (Iterator<?> iter = unspecReq.getElementTypes().iterator(); iter.hasNext();) {
@@ -94,7 +93,7 @@ public class CustomStateCompartmentCreationEditPolicy extends CreationEditPolicy
Point mouseLocation = changeBoundsRequest.getLocation();
DropObjectsRequest dropRequest = new DropObjectsRequest();
dropRequest.setLocation(mouseLocation);
- List<View> list = new ArrayList<View>();
+ List<View> list = new ArrayList<>();
Iterator<?> it = changeBoundsRequest.getEditParts().iterator();
while (it.hasNext()) {
Object next = it.next();
@@ -141,7 +140,7 @@ public class CustomStateCompartmentCreationEditPolicy extends CreationEditPolicy
// would be an odd sort of a compound request), then only the regions will be
return (cc != null)
? new ICommandProxy(cc.reduce())
- : super.getCommand(request);
+ : super.getCreateCommand(request);
}
@Override

Back to the top