Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvbaciu2007-07-20 16:14:25 +0000
committervbaciu2007-07-20 16:14:25 +0000
commit724eae3ab1d92694ed04528b518a072a32498741 (patch)
tree31d444c4e2b2b18a7cbef35ef14f259316f73087 /bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl
parent9c9546ec2bd07e1f5cd79a70e9942bbef69a3c6e (diff)
downloadwebtools.webservices-724eae3ab1d92694ed04528b518a072a32498741.tar.gz
webtools.webservices-724eae3ab1d92694ed04528b518a072a32498741.tar.xz
webtools.webservices-724eae3ab1d92694ed04528b518a072a32498741.zip
[197302] Adding output to message breaks graphical view if there is documentation
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl')
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java b/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java
index a6c1a5292..a60a27b6c 100644
--- a/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java
+++ b/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java
@@ -738,8 +738,12 @@ public abstract class WSDLElementImpl extends EObjectImpl implements WSDLElement
if (!isAttached)
{
- if (referencedElement == null && !eReference.isMany())
+ // If we're dealing with a documentation element we need to put it first in the list
+
+ if (referencedElement == null && WSDLConstants.nodeType(childElement) == WSDLConstants.DOCUMENTATION && !eReference.isMany())
{
+ // Here we find the first element node in the list, the documentation element needs to go before this element
+
for (Node child = adoptionParent.getFirstChild(); child != null; child = child.getNextSibling())
{
if (child.getNodeType() == Node.ELEMENT_NODE)

Back to the top