diff options
author | Bob Brodt | 2014-07-15 19:57:35 +0000 |
---|---|---|
committer | Bob Brodt | 2014-07-15 19:57:35 +0000 |
commit | 443d65a5fe6ec95b373baf42e0c2eb47a428f66e (patch) | |
tree | 0349079de54040f7b7e9b38604500a05767f7576 | |
parent | 62ef16d5eb733a2edabc400e9df7114e3e89aca3 (diff) | |
download | org.eclipse.bpmn2-modeler-443d65a5fe6ec95b373baf42e0c2eb47a428f66e.tar.gz org.eclipse.bpmn2-modeler-443d65a5fe6ec95b373baf42e0c2eb47a428f66e.tar.xz org.eclipse.bpmn2-modeler-443d65a5fe6ec95b373baf42e0c2eb47a428f66e.zip |
Don't set Service Task implementation when its Operation is changed.
-rw-r--r-- | plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/tasks/ActivityDetailComposite.java | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/tasks/ActivityDetailComposite.java b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/tasks/ActivityDetailComposite.java index 6eb24934..87491631 100644 --- a/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/tasks/ActivityDetailComposite.java +++ b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/property/tasks/ActivityDetailComposite.java @@ -333,20 +333,24 @@ public class ActivityDetailComposite extends DefaultDetailComposite { createMessageAssociations(container, activity, operationRef, operation, messageRef, message); - - if (implementationEditor!=null) { - String imp = null; - if ( operation!=null) { - // If the Interface is defined by a WSDL set the default - // service implementation as ##WebService, otherwise - // use ##unspecified - if (operation.getImplementationRef() instanceof WSDLElement) - imp = ServiceImplementationObjectEditor.WEBSERVICE_VALUE; - else - imp = ServiceImplementationObjectEditor.UNSPECIFIED_VALUE; - } - implementationEditor.setValue(imp); - } + + // This was me, trying to be too smart: + // if the selected Operation is a WSDL Operation, + // then set the service implementation to ##WebService. + // This is not always desired behavior. +// if (implementationEditor!=null) { +// String imp = null; +// if ( operation!=null) { +// // If the Interface is defined by a WSDL set the default +// // service implementation as ##WebService, otherwise +// // use ##unspecified +// if (operation.getImplementationRef() instanceof WSDLElement) +// imp = ServiceImplementationObjectEditor.WEBSERVICE_VALUE; +// else +// imp = ServiceImplementationObjectEditor.UNSPECIFIED_VALUE; +// } +// implementationEditor.setValue(imp); +// } } }); return true; |