Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchong2010-11-23 15:27:48 +0000
committerkchong2010-11-23 15:27:48 +0000
commit4981beadb6f19c1282813e86b0669435c2458f55 (patch)
treee49cb9033ec4a907389542c3df08e5a3fe5a170e
parente1cb67aaaf3f6d701be7e774117b7130dd44af64 (diff)
downloadwebtools.webservices-4981beadb6f19c1282813e86b0669435c2458f55.tar.gz
webtools.webservices-4981beadb6f19c1282813e86b0669435c2458f55.tar.xz
webtools.webservices-4981beadb6f19c1282813e86b0669435c2458f55.zip
[330918] Extend WSDL search participant - include service, port declarations - For HEAD
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java b/bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java
index fcd230ed8..f56a22ece 100644
--- a/bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java
+++ b/bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2006 IBM Corporation and others.
+ * Copyright (c) 2001, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,6 +14,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
+import org.eclipse.wst.common.core.search.pattern.QualifiedName;
import org.eclipse.wst.common.core.search.pattern.SearchPattern;
import org.eclipse.wst.xml.core.internal.search.ComponentSearchContributor;
import org.eclipse.wst.xml.core.internal.search.XMLSearchPattern;
@@ -36,6 +37,11 @@ public class WSDLSearchContributor extends ComponentSearchContributor {
pattern = new XMLSearchPattern(ns, "binding", "name"); //$NON-NLS-1$ //$NON-NLS-2$
declarations.put(IWSDLSearchConstants.BINDING_META_NAME, pattern);
+ pattern = new XMLSearchPattern(ns, "service", "name"); //$NON-NLS-1$ //$NON-NLS-2$
+ declarations.put(new QualifiedName(IWSDLSearchConstants.WSDL_NAMESPACE, "service"), pattern); //$NON-NLS-1$
+
+ pattern = new XMLSearchPattern(ns, "port", "name"); //$NON-NLS-1$ //$NON-NLS-2$
+ declarations.put(new QualifiedName(IWSDLSearchConstants.WSDL_NAMESPACE, "port"), pattern); //$NON-NLS-1$
}
protected void initializeReferences() {

Back to the top