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:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse')
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterCCombo.java134
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterElement.java200
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterExpiresCCombo.java163
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterHandlerClassText.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterLayer.java90
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterPCRefText.java120
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameElement.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameText.java63
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterServiceInterfaceText.java118
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterText.java124
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterTextCCombo.java106
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewer.java148
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewerItem.java39
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddClientHandler.java201
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddElement.java215
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddPortComponentRef.java201
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddServiceRef.java193
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyElement.java190
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyHandlerClassText.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyNSURI.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifySEI.java204
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyServiceInterfaceText.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyText.java189
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandMoveServiceRefs.java299
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandRemoveElement.java208
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandSetElement.java206
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/JaxRPCMapArtifactEdit.java391
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSCDDArtifactEdit.java423
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSDDArtifactEdit.java522
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/ATKUIConstants.java146
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/InfopopConstants.java250
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLHelper.java358
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLServiceHelperImpl.java207
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceEvent.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerListener.java16
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerNLS.java14
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java1070
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/messages.properties1
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java317
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIAdapterFactory.java93
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUICommonAdapterFactory.java50
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIComponentScopedRefsItemProvider.java90
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIHandlerItemProvider.java101
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIInitParamItemProvider.java50
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIParamValueItemProvider.java54
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortComponentRefItemProvider.java55
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortNameItemProvider.java37
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIQNameItemProvider.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPHeaderItemProvider.java50
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPRoleItemProvider.java37
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIServiceRefItemProvider.java101
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWebServicesClientItemProvider.java94
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscddAdapterFactory.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscommonAdapterFactory.java45
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/AbstractATKUIItemProvider.java85
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/BeanLinkItemProvider.java169
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ComponentScopedRefsItemProvider.java171
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ConstructorParameterOrderItemProvider.java161
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DescriptionTypeItemProvider.java114
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DisplayNameTypeItemProvider.java114
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/EJBLinkItemProvider.java159
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ElementNameItemProvider.java153
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ExceptionMappingItemProvider.java207
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/HandlerItemProvider.java225
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InitParamItemProvider.java226
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InterfaceMappingItemProvider.java114
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaWSDLMappingItemProvider.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaXMLTypeMappingItemProvider.java221
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JaxrpcmapItemProviderAdapterFactory.java703
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/MethodParamPartsMappingItemProvider.java189
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PackageMappingItemProvider.java168
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentItemProvider.java344
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentRefItemProvider.java159
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortMappingItemProvider.java167
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortNameItemProvider.java163
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/RootTypeQnameItemProvider.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPHeaderItemProvider.java127
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPRoleItemProvider.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SectionComponentScopedRefHelper.java41
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointInterfaceMappingItemProvider.java193
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointMethodMappingItemProvider.java221
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceImplBeanItemProvider.java262
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceInterfaceMappingItemProvider.java188
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefEditorItemProvider.java65
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefItemProvider.java231
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServletLinkItemProvider.java157
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/VariableMappingItemProvider.java210
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLBindingItemProvider.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageItemProvider.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageMappingItemProvider.java203
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessagePartNameItemProvider.java154
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLOperationItemProvider.java153
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortItemProvider.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortTypeItemProvider.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLReturnValueMappingItemProvider.java189
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLServiceNameItemProvider.java114
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServiceDescriptionItemProvider.java352
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesClientItemProvider.java161
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesItemProvider.java165
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientEditorItemProviderFactory.java48
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientItemProviderAdapterFactory.java287
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java92
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WscommonItemProviderAdapterFactory.java316
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WsddItemProviderAdapterFactory.java386
-rw-r--r--plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/wsdd/provider/HandlerItemProvider.java276
105 files changed, 0 insertions, 18620 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterCCombo.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterCCombo.java
deleted file mode 100644
index 145873330..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterCCombo.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-
-public class AdapterCCombo extends AdapterImpl implements SelectionListener {
- private EObject eObject_;
- private EStructuralFeature feature_;
- private EStructuralFeature displayFeature_;
- private CCombo combo_;
- private String defaultDisplayString_;
-
- public AdapterCCombo(EStructuralFeature feature, EStructuralFeature displayFeature, CCombo combo, String defaultDisplayString) {
- super();
- eObject_ = null;
- feature_ = feature;
- displayFeature_ = displayFeature;
- combo_ = combo;
- combo_.addSelectionListener(this);
- defaultDisplayString_ = (defaultDisplayString != null) ? defaultDisplayString : ""; //$NON-NLS-1$
- }
-
- public AdapterCCombo(EStructuralFeature feature, EStructuralFeature displayFeature, CCombo combo) {
- this(feature, displayFeature, combo, null);
- }
-
- public AdapterCCombo(EObject eObject, EStructuralFeature feature, EStructuralFeature displayFeature, CCombo combo) {
- this(eObject, feature, displayFeature, combo, null);
- }
-
- public AdapterCCombo(EObject eObject, EStructuralFeature feature, EStructuralFeature displayFeature, CCombo combo, String defaultDisplayString) {
- this(feature, displayFeature, combo, defaultDisplayString);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- Object notifier = msg.getNotifier();
- if (notifier == eObject_) {
- int type = msg.getEventType();
- if (type == Notification.SET || type == Notification.UNSET || type == Notification.ADD || type == Notification.REMOVE || type == Notification.ADD_MANY || type == Notification.REMOVE_MANY)
- populateCombo();
- } else if (msg.getFeature() == displayFeature_)
- populateCombo();
- }
-
- private void populateCombo() {
- if (eObject_ != null) {
- Object object = eObject_.eGet(feature_);
- if (object != null) {
- if (combo_.isDisposed())
- return;
- int selectionIndex = combo_.getSelectionIndex();
- String text = combo_.getText();
- combo_.removeAll();
- if (object instanceof EList) {
- EList eList = (EList) object;
- for (Iterator it = eList.iterator(); it.hasNext();)
- combo_.add(toDisplayString(((EObject) it.next()).eGet(displayFeature_)));
- } else
- combo_.add(toDisplayString(((EObject) object).eGet(displayFeature_)));
- int newIndex = combo_.indexOf(text);
- if (selectionIndex != -1 && newIndex != -1)
- combo_.select(newIndex);
- else
- combo_.select(0);
- }
- }
- }
-
- private String toDisplayString(Object object) {
- if (object != null) {
- String s = object.toString();
- if (s != null && s.length() > 0)
- return s;
- }
- return defaultDisplayString_;
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- //Do nothing
- }
-
- public void widgetSelected(SelectionEvent e) {
- //Do nothing
- }
-
- public void adapt(EObject eObject) {
- if (eObject_ != null) {
- eObject_.eAdapters().remove(this);
- combo_.removeAll();
- }
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- Object object = eObject_.eGet(feature_);
- if (object instanceof EList) {
- for (Iterator it = ((EList) object).iterator(); it.hasNext();) {
- Object item = it.next();
- if (item instanceof EObject)
- ((EObject) item).eAdapters().add(this);
- }
- } else if (object instanceof EObject)
- ((EObject) object).eAdapters().add(this);
- populateCombo();
- }
- }
-
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (combo_ != null && !combo_.isDisposed())
- combo_.removeSelectionListener(this);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterElement.java
deleted file mode 100644
index fd95f24a1..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterElement.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandAddElement;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandRemoveElement;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterElement extends AdapterImpl implements ModifyListener {
- private ArtifactEdit artifactEdit;
- private EObject parent_;
- private EClass childEClass_;
- private EStructuralFeature childFeature_;
- private boolean childNillable_;
- private EStructuralFeature[] features_;
- private boolean[] featuresNillable_;
- private Text[] featuresTexts_;
- private AdapterText[] featuresAdapters_;
-
- public AdapterElement(ArtifactEdit anArtifactEdit, EClass childEClass, EStructuralFeature childFeature, boolean childNillable, EStructuralFeature[] features, boolean[] featuresNillable, Text[] featuresTexts) {
- super();
- artifactEdit = anArtifactEdit;
- parent_ = null;
- childEClass_ = childEClass;
- childFeature_ = childFeature;
- childNillable_ = childNillable;
- features_ = features;
- featuresNillable_ = featuresNillable;
- featuresTexts_ = featuresTexts;
- addModifyListener();
- featuresAdapters_ = new AdapterText[features_.length];
- newAdapters(null);
- }
-
- public AdapterElement(ArtifactEdit anArtifactEdit, EObject parent, EClass childEClass, EStructuralFeature childFeature, boolean childNillable, EStructuralFeature[] features, boolean[] featuresNillable, Text[] featuresTexts) {
- this(anArtifactEdit, childEClass, childFeature, childNillable, features, featuresNillable, featuresTexts);
- adapt(parent);
- }
-
- private void newAdapters(EObject eObject) {
- if (eObject == null)
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i] = new AdapterText(artifactEdit, features_[i], featuresTexts_[i], featuresNillable_[i]);
- else
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i] = new AdapterText(artifactEdit, eObject, features_[i], featuresTexts_[i], featuresNillable_[i]);
- }
-
- private void addModifyListener() {
- for (int i = 0; i < featuresTexts_.length; i++)
- featuresTexts_[i].addModifyListener(this);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && msg.getFeature() == childFeature_) {
- EObject child = (EObject) parent_.eGet(childFeature_);
- if (child == null && !childNillable_)
- child = setChild();
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].adapt(child);
- }
- }
-
- public void modifyText(ModifyEvent e) {
- boolean isTextsNull = isTextsNull();
- EObject child = (EObject) parent_.eGet(childFeature_);
- boolean childCanBeRemoved = true;
- if (child != null) {
- Iterator allfeatures = childEClass_.getEAllStructuralFeatures().iterator();
- while (allfeatures.hasNext()) {
- EStructuralFeature thisFeature = (EStructuralFeature) allfeatures.next();
- if (!adaptingFeature(thisFeature) && child.eIsSet(thisFeature)) {
- childCanBeRemoved = false;
- break;
- }
- }
- }
- if (isTextsNull && child != null && childNillable_ && childCanBeRemoved) {
- disposeAdapters();
- parent_.eAdapters().remove(this);
- CommandRemoveElement command = new CommandRemoveElement(null, null, parent_, childFeature_);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- parent_.eAdapters().add(this);
- newAdapters(null);
- } else if (!isTextsNull && child == null) {
- disposeAdapters();
- parent_.eAdapters().remove(this);
- child = createChild();
- for (int i = 0; i < features_.length; i++) {
- String text = featuresTexts_[i].getText();
- if (text != null && text.length() > 0)
- child.eSet(features_[i], text);
- }
- CommandAddElement command = new CommandAddElement(null, null, parent_, childFeature_, child);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- parent_.eAdapters().add(this);
- newAdapters(child);
- }
- }
-
- private boolean isTextsNull() {
- for (int i = 0; i < featuresTexts_.length; i++) {
- String text = featuresTexts_[i].getText();
- if (text != null && text.length() > 0)
- return false;
- }
- return true;
- }
-
- public void adapt(EObject eObject) {
- if (parent_ != null)
- parent_.eAdapters().remove(this);
- parent_ = eObject;
- EObject child = null;
- if (parent_ != null) {
- parent_.eAdapters().add(this);
- child = (EObject) parent_.eGet(childFeature_);
- if (child == null && !childNillable_)
- child = setChild();
- }
- removeModifyListener();
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].adapt(child);
- addModifyListener();
- }
-
- private EObject setChild() {
- EObject child = createChild();
- parent_.eAdapters().remove(this);
- parent_.eSet(childFeature_, child);
- parent_.eAdapters().add(this);
- return child;
- }
-
- private EObject createChild() {
- EFactory childFactory = childEClass_.getEPackage().getEFactoryInstance();
- EObject child = childFactory.create(childEClass_);
- for (int i = 0; i < features_.length; i++) {
- if (!featuresNillable_[i])
- child.eSet(features_[i], ""); //$NON-NLS-1$
- }
- return child;
- }
-
- public void dispose() {
- if (parent_ != null)
- parent_.eAdapters().remove(this);
- disposeAdapters();
- removeModifyListener();
- }
-
- private void disposeAdapters() {
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].dispose();
- }
-
- private void removeModifyListener() {
- for (int i = 0; i < featuresTexts_.length; i++)
- if (featuresTexts_[i] != null && !featuresTexts_[i].isDisposed())
- featuresTexts_[i].removeModifyListener(this);
- }
-
- private boolean adaptingFeature(EStructuralFeature feature) {
- if (features_ == null)
- return false;
-
- for (int i = 0; i < features_.length; i++) {
- if (feature == features_[i]) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterExpiresCCombo.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterExpiresCCombo.java
deleted file mode 100644
index 3f04ceead..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterExpiresCCombo.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyText;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterExpiresCCombo extends AdapterImpl implements ModifyListener {
- private ArtifactEdit artifactEdit_;
- private EObject eObject_;
- private EStructuralFeature feature_;
- private CCombo year_;
- private CCombo month_;
- private CCombo day_;
- private CCombo hour_;
- private CCombo minute_;
- private CCombo second_;
- private CCombo msecond_;
- private boolean nillable_;
-
- public AdapterExpiresCCombo(ArtifactEdit artifactEdit, EStructuralFeature feature, CCombo year, CCombo month, CCombo day, CCombo hour, CCombo minute, CCombo second, CCombo msecond, boolean nillable) {
- super();
- artifactEdit_ = artifactEdit;
- eObject_ = null;
- feature_ = feature;
- year_ = year;
- month_ = month;
- day_ = day;
- hour_ = hour;
- minute_ = minute;
- second_ = second;
- msecond_ = msecond;
- nillable_ = nillable;
- year_.addModifyListener(this);
- month_.addModifyListener(this);
- day_.addModifyListener(this);
- hour_.addModifyListener(this);
- minute_.addModifyListener(this);
- second_.addModifyListener(this);
- msecond_.addModifyListener(this);
- }
-
- public AdapterExpiresCCombo(ArtifactEdit artifactEdit, EObject eObject, EStructuralFeature feature, CCombo year, CCombo month, CCombo day, CCombo hour, CCombo minute, CCombo second, CCombo msecond, boolean nillable) {
- this(artifactEdit, feature, year, month, day, hour, minute, second, msecond, nillable);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_)
- setText(msg.getNewStringValue());
- }
-
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- CommandModifyText command = new CommandModifyText(null, null, eObject_, feature_, expires(), nillable_);
- artifactEdit_.getContentModelRoot().eResource().setModified(true);
- artifactEdit_.getCommandStack().execute(command);
- }
- }
-
- public String expires() {
- return "P" + //$NON-NLS-1$
- year_.getText() + "Y" + //$NON-NLS-1$
- month_.getText() + "M" + //$NON-NLS-1$
- day_.getText() + "DT" + //$NON-NLS-1$
- hour_.getText() + "H" + //$NON-NLS-1$
- minute_.getText() + "M" + //$NON-NLS-1$
- second_.getText() + "." + //$NON-NLS-1$
- msecond_.getText() + "S"; //$NON-NLS-1$
- }
-
- public void adapt(EObject eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- setText((String) eObject_.eGet(feature_));
- }
- }
-
- public void adapt(EObject eObject, EStructuralFeature feature) {
- feature_ = feature;
- adapt(eObject);
- }
-
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (year_ != null && !year_.isDisposed())
- year_.removeModifyListener(this);
- if (month_ != null && !month_.isDisposed())
- month_.removeModifyListener(this);
- if (day_ != null && !day_.isDisposed())
- day_.removeModifyListener(this);
- if (hour_ != null && !hour_.isDisposed())
- hour_.removeModifyListener(this);
- if (minute_ != null && !minute_.isDisposed())
- minute_.removeModifyListener(this);
- if (second_ != null && !second_.isDisposed())
- second_.removeModifyListener(this);
- if (msecond_ != null && !msecond_.isDisposed())
- msecond_.removeModifyListener(this);
-
- }
-
- private boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue = (String) eObject_.eGet(feature_);
- String value = expires();
- if (modelValue == null || modelValue.length() <= 0)
- return !(value == null || value.length() <= 0);
- return !(modelValue.equals(value));
- }
- return false;
- }
-
- private void setText(String modelValue) {
- if (modelValue != null) {
- int y = modelValue.indexOf("Y"); //$NON-NLS-1$
- int mo = modelValue.indexOf("M"); //$NON-NLS-1$
- int d = modelValue.indexOf("D"); //$NON-NLS-1$
- int h = modelValue.indexOf("H"); //$NON-NLS-1$
- int mi = modelValue.lastIndexOf("M"); //$NON-NLS-1$
- int s = modelValue.indexOf("."); //$NON-NLS-1$
- int ms = modelValue.indexOf("S"); //$NON-NLS-1$
-
- if (!year_.isDisposed() && y > 0)
- year_.setText(modelValue.substring(1, y));
- if (!month_.isDisposed() && mo > 0)
- month_.setText(modelValue.substring(y + 1, mo));
- if (!day_.isDisposed() && d > 0)
- day_.setText(modelValue.substring(mo + 1, d));
- if (!hour_.isDisposed() && h > 0)
- hour_.setText(modelValue.substring(d + 2, h));
- if (!minute_.isDisposed() && mi > 0)
- minute_.setText(modelValue.substring(h + 1, mi));
- if (!second_.isDisposed() && s > 0)
- second_.setText(modelValue.substring(mi + 1, s));
- if (!msecond_.isDisposed() && ms > 0)
- msecond_.setText(modelValue.substring(s + 1, ms));
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterHandlerClassText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterHandlerClassText.java
deleted file mode 100644
index 27aee3b41..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterHandlerClassText.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-/*
- * import org.eclipse.emf.ecore.EObject;
- */
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyHandlerClassText;
-import org.eclipse.jst.j2ee.webservice.wsclient.Handler;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterHandlerClassText extends AdapterImpl implements ModifyListener {
- protected ArtifactEdit artifactEdit;
- protected Handler eObject_;
- protected EStructuralFeature feature_;
- protected Text text_;
- protected boolean nillable_;
-
- public AdapterHandlerClassText(ArtifactEdit anArtifactEdit, Text text) {
- super();
- artifactEdit = anArtifactEdit;
- eObject_ = null;
- feature_ = Webservice_clientPackage.eINSTANCE.getHandler_HandlerClass();
- text_ = text;
- nillable_ = false;
- text_.addModifyListener(this);
- }
-
- public AdapterHandlerClassText(ArtifactEdit anArtifactEdit, Handler eObject, Text text) {
- this(anArtifactEdit, text);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) {
- String newClassName = eObject_.getHandlerClass().getQualifiedNameForReflection();
- setText(newClassName);
- }
- }
-
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- CommandModifyHandlerClassText command = new CommandModifyHandlerClassText(null, null, eObject_, text_.getText());
- if (artifactEdit != null) {
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- }
- }
-
- public void adapt(Handler eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- String newClassName = eObject_.getHandlerClass().getQualifiedNameForReflection();
- setText(newClassName);
- } else
- setText(null);
- }
-
- /*
- * public void adapt(EObject eObject, EStructuralFeature feature) { feature_ = feature;
- * adapt(eObject); }
- */
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (text_ != null && !text_.isDisposed())
- text_.removeModifyListener(this);
- }
-
- protected boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue = eObject_.getHandlerClass().getQualifiedNameForReflection();
- String textValue = text_.getText();
- if (modelValue == null || modelValue.length() <= 0)
- return !(textValue == null || textValue.length() <= 0);
- return !(modelValue.equals(textValue));
- }
- return false;
- }
-
- private void setText(String text) {
- if (!text_.isDisposed()) {
- String currText = text_.getText();
- if (text == null || text.length() <= 0) {
- if (currText != null && currText.length() > 0)
- text_.setText(""); //$NON-NLS-1$
- } else if (!text.equals(currText))
- text_.setText(text);
- }
- }
-
- /**
- * @return Returns the j2eeEditModel.
- */
- public ArtifactEdit getArtifactEdit() {
- return artifactEdit;
- }
-
- /**
- * @param editModel
- * The j2eeEditModel to set.
- */
- public void setArtifactEdit(ArtifactEdit anArtifactEdit) {
- artifactEdit = anArtifactEdit;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterLayer.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterLayer.java
deleted file mode 100644
index f5241200a..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterLayer.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class AdapterLayer extends AdapterImpl {
- private EObject parent_;
- private EStructuralFeature feature_;
- private EClass childEClass_;
- private EObject child_;
-
- public AdapterLayer(EObject parent, EStructuralFeature feature, EClass childEClass) {
- super();
- parent_ = parent;
- feature_ = feature;
- childEClass_ = childEClass;
- adapt(parent_);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if (type == Notification.SET || type == Notification.UNSET || type == Notification.ADD || type == Notification.REMOVE || type == Notification.ADD_MANY || type == Notification.REMOVE_MANY)
- adaptParent();
- }
-
- public void adapt(EObject eObject) {
- if (child_ != null)
- child_.eAdapters().remove(this);
- parent_ = eObject;
- adaptChild();
- if (child_ != null)
- child_.eAdapters().add(this);
- }
-
- public void dispose() {
- if (child_ != null)
- child_.eAdapters().remove(this);
- }
-
- public EObject getChild() {
- return child_;
- }
-
- private void adaptChild() {
- if (parent_ != null) {
- Object object = parent_.eGet(feature_);
- if (object == null)
- child_ = childEClass_.getEPackage().getEFactoryInstance().create(childEClass_);
- else
- child_ = (EObject) object;
- } else
- child_ = null;
- }
-
- private void adaptParent() {
- if (parent_ != null && child_ != null) {
- EList childFeatures = childEClass_.getEAllStructuralFeatures();
- for (Iterator it = childFeatures.iterator(); it.hasNext();) {
- EStructuralFeature childFeature = (EStructuralFeature) it.next();
- boolean isFeatureSet;
- Object grandchild = child_.eGet(childFeature);
- if (grandchild != null && grandchild instanceof EList)
- isFeatureSet = !((EList) grandchild).isEmpty();
- else
- isFeatureSet = child_.eIsSet(childFeature);
- if (isFeatureSet) {
- parent_.eSet(feature_, child_);
- return;
- }
- }
- parent_.eUnset(feature_);
- }
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterPCRefText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterPCRefText.java
deleted file mode 100644
index 02d1b9b50..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterPCRefText.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 21, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifySEI;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyText;
-import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-/**
- * @author rsinha
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class AdapterPCRefText extends AdapterText {
- public AdapterPCRefText(ArtifactEdit anArtifactEdit, EStructuralFeature feature, Text text, boolean nillable) {
- super(anArtifactEdit, feature, text, nillable);
- }
-
-
- public AdapterPCRefText(ArtifactEdit anArtifactEdit, EObject eObject, EStructuralFeature feature, Text text, boolean nillable) {
- super(anArtifactEdit, eObject, feature, text, nillable);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) {
- Object obj = eObject_.eGet(feature_);
- String objStringValue = ""; //$NON-NLS-1$
- if (obj instanceof String) {
- objStringValue = (String) obj;
- } else if (obj instanceof JavaClass) {
- JavaClass javaClass = (JavaClass) obj;
- objStringValue = javaClass.getQualifiedNameForReflection();
- }
- setText(objStringValue);
- }
- }
-
- @Override
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- //Handle PortComponentRef_ServiceEndpointInterface feature in a special way.
- String SEIFeatureName = Webservice_clientPackage.eINSTANCE.getPortComponentRef_ServiceEndpointInterface().getName();
- if ((eObject_ instanceof PortComponentRef) && (feature_.getName().equals(SEIFeatureName))) {
- CommandModifySEI command = new CommandModifySEI(null, null, (PortComponentRef) eObject_, text_.getText(), nillable_);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- } else {
- CommandModifyText command = new CommandModifyText(null, null, eObject_, feature_, text_.getText(), nillable_);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- }
- }
-
- @Override
- public void adapt(EObject eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- Object obj = eObject_.eGet(feature_);
- String objStringValue = ""; //$NON-NLS-1$
- if (obj instanceof String) {
- objStringValue = (String) obj;
- } else if (obj instanceof JavaClass) {
- JavaClass javaClass = (JavaClass) obj;
- objStringValue = javaClass.getQualifiedNameForReflection();
- }
- setText(objStringValue);
- } else
- setText(null);
- }
-
- @Override
- protected boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue;
- //Handle PortComponentRef_ServiceEndpointInterface feature in a special way.
- String SEIFeatureName = Webservice_clientPackage.eINSTANCE.getPortComponentRef_ServiceEndpointInterface().getName();
- if ((eObject_ instanceof PortComponentRef) && (feature_.getName().equals(SEIFeatureName))) {
- modelValue = ((PortComponentRef) eObject_).getServiceEndpointInterface().getQualifiedNameForReflection();
- } else {
- modelValue = (String) eObject_.eGet(feature_);
- }
- String textValue = text_.getText();
- if (modelValue == null || modelValue.length() <= 0)
- return !(textValue == null || textValue.length() <= 0);
- return !(modelValue.equals(textValue));
- }
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameElement.java
deleted file mode 100644
index 698f91e30..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameElement.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandAddElement;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandRemoveElement;
-import org.eclipse.jst.j2ee.webservice.internal.util.QNameHelper;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-/**
- * Generic eSet's will not work when setting namespaceURIs on QName's so AdapterElement cannot be
- * used when the child is a QName. This class is very similar AdapterElement but has special
- * behaviour for handling QName's.
- */
-public class AdapterQNameElement extends AdapterImpl implements ModifyListener {
-
- private ArtifactEdit artifactEdit;
- private EObject parent_;
- private EClass childEClass_;
- private EStructuralFeature childFeature_;
- private boolean childNillable_;
- private EStructuralFeature[] features_;
- private boolean[] featuresNillable_;
- private Text[] featuresTexts_;
- private AdapterText[] featuresAdapters_;
-
- /**
- *
- */
- public AdapterQNameElement(ArtifactEdit anArtifactEdit, EClass childEClass, EStructuralFeature childFeature, boolean childNillable, Text nsURIText, Text localPartText) {
- super();
- artifactEdit = anArtifactEdit;
- parent_ = null;
- childEClass_ = childEClass;
- childFeature_ = childFeature;
- childNillable_ = childNillable;
- CommonPackage commonPKG = CommonPackage.eINSTANCE;
- // Set up QName features
- features_ = new EStructuralFeature[2];
- features_[0] = commonPKG.getQName_NamespaceURI();
- features_[1] = commonPKG.getQName_LocalPart();
- featuresNillable_ = new boolean[2];
- featuresNillable_[0] = false;
- featuresNillable_[1] = false;
- featuresTexts_ = new Text[2];
- featuresTexts_[0] = nsURIText;
- featuresTexts_[1] = localPartText;
- addModifyListener();
- featuresAdapters_ = new AdapterText[features_.length];
- newAdapters(null);
-
- }
-
- /**
- *
- */
- public AdapterQNameElement(ArtifactEdit anArtifactEdit, EObject parent, EClass childEClass, EStructuralFeature childFeature, boolean childNillable, Text nsURIText, Text localPartText) {
- this(anArtifactEdit, childEClass, childFeature, childNillable, nsURIText, localPartText);
- adapt(parent);
- }
-
- private void newAdapters(EObject eObject) {
- if (eObject == null) {
- featuresAdapters_[0] = new AdapterQNameText(artifactEdit, features_[0], featuresTexts_[0], featuresNillable_[0]);
- featuresAdapters_[1] = new AdapterText(artifactEdit, features_[1], featuresTexts_[1], featuresNillable_[1]);
- } else {
- featuresAdapters_[0] = new AdapterQNameText(artifactEdit, eObject, features_[0], featuresTexts_[0], featuresNillable_[0]);
- featuresAdapters_[1] = new AdapterText(artifactEdit, eObject, features_[1], featuresTexts_[1], featuresNillable_[1]);
- }
- }
-
- private void addModifyListener() {
- for (int i = 0; i < featuresTexts_.length; i++)
- featuresTexts_[i].addModifyListener(this);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && msg.getFeature() == childFeature_) {
- EObject child = (EObject) parent_.eGet(childFeature_);
- if (child == null && !childNillable_)
- child = setChild();
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].adapt(child);
- }
- }
-
- public void modifyText(ModifyEvent e) {
- boolean isTextsNull = isTextsNull();
- EObject child = (EObject) parent_.eGet(childFeature_);
- boolean childCanBeRemoved = true;
- if (child != null) {
- Iterator allfeatures = childEClass_.getEAllStructuralFeatures().iterator();
- while (allfeatures.hasNext()) {
- EStructuralFeature thisFeature = (EStructuralFeature) allfeatures.next();
- if (!adaptingFeature(thisFeature) && child.eIsSet(thisFeature)) {
- childCanBeRemoved = false;
- break;
- }
- }
- }
- if (isTextsNull && child != null && childNillable_ && childCanBeRemoved) {
- disposeAdapters();
- parent_.eAdapters().remove(this);
- CommandRemoveElement command = new CommandRemoveElement(null, null, parent_, childFeature_);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- parent_.eAdapters().add(this);
- newAdapters(null);
- } else if (!isTextsNull && child == null) {
- disposeAdapters();
- parent_.eAdapters().remove(this);
- child = createChild();
- setFeaturesOnChild(child);
- /*
- * replaced by setFeaturesOnChild for (int i = 0; i < features_.length; i++) { String
- * text = featuresTexts_[i].getText(); if (text != null && text.length() > 0)
- * child.eSet(features_[i], text); }
- */
- CommandAddElement command = new CommandAddElement(null, null, parent_, childFeature_, child);
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- parent_.eAdapters().add(this);
- newAdapters(child);
- }
- }
-
- private boolean isTextsNull() {
- for (int i = 0; i < featuresTexts_.length; i++) {
- String text = featuresTexts_[i].getText();
- if (text != null && text.length() > 0)
- return false;
- }
- return true;
- }
-
- public void adapt(EObject eObject) {
- if (parent_ != null)
- parent_.eAdapters().remove(this);
- parent_ = eObject;
- EObject child = null;
- if (parent_ != null) {
- parent_.eAdapters().add(this);
- child = (EObject) parent_.eGet(childFeature_);
- if (child == null && !childNillable_)
- child = setChild();
- }
- removeModifyListener();
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].adapt(child);
- addModifyListener();
- }
-
- private EObject setChild() {
- EObject child = createChild();
- parent_.eAdapters().remove(this);
- parent_.eSet(childFeature_, child);
- parent_.eAdapters().add(this);
- return child;
- }
-
- private EObject createChild() {
- EFactory childFactory = childEClass_.getEPackage().getEFactoryInstance();
- EObject child = childFactory.create(childEClass_);
- for (int i = 0; i < features_.length; i++) {
- if (!featuresNillable_[i])
- child.eSet(features_[i], ""); //$NON-NLS-1$
- }
- return child;
- }
-
- public void dispose() {
- if (parent_ != null)
- parent_.eAdapters().remove(this);
- disposeAdapters();
- removeModifyListener();
- }
-
- private void disposeAdapters() {
- for (int i = 0; i < featuresAdapters_.length; i++)
- featuresAdapters_[i].dispose();
- }
-
- private void removeModifyListener() {
- for (int i = 0; i < featuresTexts_.length; i++)
- if (featuresTexts_[i] != null && !featuresTexts_[i].isDisposed())
- featuresTexts_[i].removeModifyListener(this);
- }
-
- private boolean adaptingFeature(EStructuralFeature feature) {
- if (features_ == null)
- return false;
-
- for (int i = 0; i < features_.length; i++) {
- if (feature == features_[i]) {
- return true;
- }
- }
-
- return false;
- }
-
- protected void setFeaturesOnChild(EObject child) {
- if (child instanceof QName) //This will always be true.
- {
- QName qname = (QName) child;
- String namespaceURIValue = featuresTexts_[0].getText();
- String localPartValue = featuresTexts_[1].getText();
- if (namespaceURIValue == null || namespaceURIValue.length() == 0) {
- //Just set the local part
- if (localPartValue != null && localPartValue.length() > 0)
- qname.setLocalPart(localPartValue);
-
- } else {
- if (localPartValue == null)
- localPartValue = ""; //$NON-NLS-1$
-
- //Set namespace and local part using QNameHelper
- QNameHelper.setQNameValue(qname, namespaceURIValue, localPartValue);
- }
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameText.java
deleted file mode 100644
index d937bf82c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterQNameText.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyNSURI;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyText;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-
-
-/**
- * Since generic eSet's will not work for setting QName namespaceURI's, this subclass's purpose is
- * to override the behaviour when necessary.
- */
-public class AdapterQNameText extends AdapterText {
-
- public AdapterQNameText(ArtifactEdit anArtifactEdit, EStructuralFeature feature, Text text, boolean nillable) {
- super(anArtifactEdit, feature, text, nillable);
- }
-
-
- public AdapterQNameText(ArtifactEdit anArtifactEdit, EObject eObject, EStructuralFeature feature, Text text, boolean nillable) {
- super(anArtifactEdit, eObject, feature, text, nillable);
- }
-
- @Override
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- //Handle QName_NamespaceURI feature in a special way.
- String namespaceFeatureName = CommonPackage.eINSTANCE.getQName_NamespaceURI().getName();
- if ((eObject_ instanceof QName) && (feature_.getName().equals(namespaceFeatureName))) {
- CommandModifyNSURI command = new CommandModifyNSURI(null, null, (QName) eObject_, text_.getText(), nillable_);
- if (artifactEdit != null) {
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- } else {
- CommandModifyText command = new CommandModifyText(null, null, eObject_, feature_, text_.getText(), nillable_);
- if (artifactEdit != null) {
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- }
-
-
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterServiceInterfaceText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterServiceInterfaceText.java
deleted file mode 100644
index 57894df59..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterServiceInterfaceText.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-/*
- * import org.eclipse.emf.ecore.EObject;
- */
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyServiceInterfaceText;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterServiceInterfaceText extends AdapterImpl implements ModifyListener {
- protected ArtifactEdit artifactEdit;
- protected ServiceRef eObject_;
- protected EStructuralFeature feature_;
- protected Text text_;
- protected boolean nillable_;
-
- public AdapterServiceInterfaceText(ArtifactEdit anArtifactEdit, Text text) {
- super();
- artifactEdit = anArtifactEdit;
- eObject_ = null;
- feature_ = Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceInterface();
- text_ = text;
- nillable_ = false;
- text_.addModifyListener(this);
- }
-
- public AdapterServiceInterfaceText(ArtifactEdit anArtifactEdit, ServiceRef eObject, Text text) {
- this(anArtifactEdit, text);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_) {
- String newClassName = eObject_.getServiceInterface().getQualifiedNameForReflection();
- setText(newClassName);
- }
- }
-
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- CommandModifyServiceInterfaceText command = new CommandModifyServiceInterfaceText(null, null, eObject_, text_.getText());
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- }
-
- public void adapt(ServiceRef eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- if (eObject_.getServiceInterface() != null) {
- String newClassName = eObject_.getServiceInterface().getQualifiedNameForReflection();
- setText(newClassName);
- } else {
- setText(null);
- }
- } else
- setText(null);
- }
-
- /*
- * public void adapt(EObject eObject, EStructuralFeature feature) { feature_ = feature;
- * adapt(eObject); }
- */
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (text_ != null && !text_.isDisposed())
- text_.removeModifyListener(this);
- }
-
- protected boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue = null;
- if (eObject_.getServiceInterface() != null)
- modelValue = eObject_.getServiceInterface().getQualifiedNameForReflection();
- String textValue = text_.getText();
- if (modelValue == null || modelValue.length() <= 0)
- return !(textValue == null || textValue.length() <= 0);
- return !(modelValue.equals(textValue));
- }
- return false;
- }
-
- private void setText(String text) {
- if (!text_.isDisposed()) {
- String currText = text_.getText();
- if (text == null || text.length() <= 0) {
- if (currText != null && currText.length() > 0)
- text_.setText(""); //$NON-NLS-1$
- } else if (!text.equals(currText))
- text_.setText(text);
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterText.java
deleted file mode 100644
index 07794665c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterText.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyText;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterText extends AdapterImpl implements ModifyListener {
- protected EObject eObject_;
- protected EStructuralFeature feature_;
- protected Text text_;
- protected boolean nillable_;
- protected ArtifactEdit artifactEdit;
-
- public AdapterText(ArtifactEdit anArtifactEdit, EStructuralFeature feature, Text text, boolean nillable) {
- super();
- artifactEdit = anArtifactEdit;
- eObject_ = null;
- feature_ = feature;
- text_ = text;
- nillable_ = nillable;
- text_.addModifyListener(this);
- }
-
- public AdapterText(ArtifactEdit anArtifactEdit, EObject eObject, EStructuralFeature feature, Text text, boolean nillable) {
- this(anArtifactEdit, feature, text, nillable);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_)
- setText(msg.getNewStringValue());
- }
-
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- CommandModifyText command = new CommandModifyText(null, null, eObject_, feature_, text_.getText(), nillable_);
- if (artifactEdit != null) {
- artifactEdit.getContentModelRoot().eResource().setModified(true);
- artifactEdit.getCommandStack().execute(command);
- }
- }
- }
-
- public void adapt(EObject eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- setText((String) eObject_.eGet(feature_));
- } else
- setText(null);
- }
-
- public void adapt(EObject eObject, EStructuralFeature feature) {
- feature_ = feature;
- adapt(eObject);
- }
-
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (text_ != null && !text_.isDisposed())
- text_.removeModifyListener(this);
- }
-
- protected boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue = (String) eObject_.eGet(feature_);
- String textValue = text_.getText();
- if (modelValue == null || modelValue.length() <= 0)
- return !(textValue == null || textValue.length() <= 0);
- return !(modelValue.equals(textValue));
- }
- return false;
- }
-
- protected void setText(String text) {
- if (!text_.isDisposed()) {
- String currText = text_.getText();
- if (text == null || text.length() <= 0) {
- if (currText != null && currText.length() > 0)
- text_.setText(""); //$NON-NLS-1$
- } else if (!text.equals(currText))
- text_.setText(text);
- }
- }
-
- /**
- * @return Returns the j2eeEditModel.
- */
- public ArtifactEdit getArtifactEdit() {
- return artifactEdit;
- }
-
- /**
- * @param editModel
- * The j2eeEditModel to set.
- */
- public void setArtifactEdit(ArtifactEdit anArtifactEdit) {
- artifactEdit = anArtifactEdit;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterTextCCombo.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterTextCCombo.java
deleted file mode 100644
index ac8b4bc84..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterTextCCombo.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.command.CommandModifyText;
-import org.eclipse.swt.custom.CCombo;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-
-
-public class AdapterTextCCombo extends AdapterImpl implements ModifyListener {
- private ArtifactEdit artifactEdit_;
- private EObject eObject_;
- private EStructuralFeature feature_;
- private CCombo text_;
- private boolean nillable_;
-
- public AdapterTextCCombo(ArtifactEdit artifactEdit, EStructuralFeature feature, CCombo text, boolean nillable) {
- super();
- artifactEdit_ = artifactEdit;
- eObject_ = null;
- feature_ = feature;
- text_ = text;
- nillable_ = nillable;
- text_.addModifyListener(this);
- }
-
- public AdapterTextCCombo(ArtifactEdit artifactEdit, EObject eObject, EStructuralFeature feature, CCombo text, boolean nillable) {
- this(artifactEdit, feature, text, nillable);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if ((type == Notification.SET || type == Notification.UNSET) && syncTextAndModel() && msg.getFeature() == feature_)
- setText(msg.getNewStringValue());
- }
-
- public void modifyText(ModifyEvent e) {
- if (syncTextAndModel()) {
- CommandModifyText command = new CommandModifyText(null, null, eObject_, feature_, text_.getText(), nillable_);
- artifactEdit_.getContentModelRoot().eResource().setModified(true);
- artifactEdit_.getCommandStack().execute(command);
- }
- }
-
- public void adapt(EObject eObject) {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- setText((String) eObject_.eGet(feature_));
- } else
- setText(null);
- }
-
- public void adapt(EObject eObject, EStructuralFeature feature) {
- feature_ = feature;
- adapt(eObject);
- }
-
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- if (text_ != null && !text_.isDisposed())
- text_.removeModifyListener(this);
- }
-
- private boolean syncTextAndModel() {
- if (eObject_ != null) {
- String modelValue = (String) eObject_.eGet(feature_);
- String textValue = text_.getText();
- if (modelValue == null || modelValue.length() <= 0)
- return !(textValue == null || textValue.length() <= 0);
- return !(modelValue.equals(textValue));
- }
- return false;
- }
-
- private void setText(String text) {
- if (!text_.isDisposed()) {
- String currText = text_.getText();
- if (text == null || text.length() <= 0) {
- if (currText != null && currText.length() > 0)
- text_.setText(""); //$NON-NLS-1$
- } else if (!text.equals(currText))
- text_.setText(text);
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewer.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewer.java
deleted file mode 100644
index 66967ad02..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewer.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import java.util.ArrayList;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jface.viewers.Viewer;
-
-public class AdapterViewer extends AdapterImpl {
- private EObject eObject_;
- private Viewer viewer_;
- private ArrayList features_;
-
- public AdapterViewer(Viewer viewer) {
- super();
- eObject_ = null;
- viewer_ = viewer;
- features_ = new ArrayList();
- }
-
- public AdapterViewer(EObject eObject, Viewer viewer) {
- this(viewer);
- adapt(eObject);
- }
-
- @Override
- public void notifyChanged(Notification msg) {
- int type = msg.getEventType();
- if (type == Notification.SET || type == Notification.UNSET || type == Notification.ADD || type == Notification.REMOVE || type == Notification.ADD_MANY || type == Notification.REMOVE_MANY) {
- Object notifier = msg.getNotifier();
- if (notifier == eObject_) {
- if (type == Notification.SET || type == Notification.ADD || type == Notification.ADD_MANY)
- internalAdaptFeature((EStructuralFeature) msg.getFeature());
- else if (type == Notification.UNSET || type == Notification.REMOVE || type == Notification.REMOVE_MANY) {
- Object object = msg.getOldValue();
- if (object instanceof EObject)
- ((EObject) object).eAdapters().remove(this);
- else if (object instanceof EList) {
- EList eList = (EList) object;
- for (int i = 0; i < eList.size(); i++) {
- Object item = eList.get(i);
- if (item instanceof EObject)
- ((EObject) item).eAdapters().remove(this);
- }
- }
- }
- }
- viewer_.refresh();
- }
- }
-
- public void adapt(EObject eObject) {
- if (eObject_ != null) {
- eObject_.eAdapters().remove(this);
- unadaptAllCachedFeature();
- }
- eObject_ = eObject;
- if (eObject_ != null) {
- eObject_.eAdapters().add(this);
- readaptAllCachedFeature();
- }
- viewer_.refresh();
- }
-
- public void adaptFeature(EStructuralFeature feature) {
- if (!features_.contains(feature)) {
- features_.add(feature);
- internalAdaptFeature(feature);
- }
- }
-
- private void internalAdaptFeature(EStructuralFeature feature) {
- if (eObject_ != null) {
- Object featureObject = eObject_.eGet(feature);
- if (featureObject instanceof EObject) {
- EList eAdapters = ((EObject) featureObject).eAdapters();
- if (!eAdapters.contains(this))
- eAdapters.add(this);
- } else if (featureObject instanceof EList) {
- EList eList = (EList) featureObject;
- for (int i = 0; i < eList.size(); i++) {
- Object object = eList.get(i);
- if (object instanceof EObject) {
- EList eAdapters = ((EObject) object).eAdapters();
- if (!eAdapters.contains(this))
- eAdapters.add(this);
- }
- }
- }
- }
- }
-
- private void readaptAllCachedFeature() {
- EStructuralFeature[] features = new EStructuralFeature[features_.size()];
- for (int i = 0; i < features.length; i++)
- features[i] = (EStructuralFeature) features_.get(i);
- for (int i = 0; i < features.length; i++)
- internalAdaptFeature(features[i]);
- }
-
- public void unadaptFeature(EStructuralFeature feature) {
- features_.remove(feature);
- internalUnadaptFeature(feature);
- }
-
- private void internalUnadaptFeature(EStructuralFeature feature) {
- if (eObject_ != null) {
- Object featureObject = eObject_.eGet(feature);
- if (featureObject instanceof EObject)
- ((EObject) featureObject).eAdapters().remove(this);
- else if (featureObject instanceof EList) {
- EList eList = (EList) featureObject;
- for (int i = 0; i < eList.size(); i++) {
- Object object = eList.get(i);
- if (object instanceof EObject)
- ((EObject) object).eAdapters().remove(this);
- }
- }
- }
- }
-
- private void unadaptAllCachedFeature() {
- EStructuralFeature[] features = new EStructuralFeature[features_.size()];
- for (int i = 0; i < features.length; i++)
- features[i] = (EStructuralFeature) features_.get(i);
- for (int i = 0; i < features.length; i++)
- internalUnadaptFeature(features[i]);
- }
-
- public void dispose() {
- if (eObject_ != null)
- eObject_.eAdapters().remove(this);
- unadaptAllCachedFeature();
- features_ = null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewerItem.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewerItem.java
deleted file mode 100644
index cdba3094d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/adapter/AdapterViewerItem.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.adapter;
-
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class AdapterViewerItem {
- private EList eObjects_;
- private EStructuralFeature feature_;
-
- public AdapterViewerItem(EList eObjects, EStructuralFeature feature) {
- eObjects_ = eObjects;
- feature_ = feature;
- }
-
- public AdapterViewerItem(EObject eObject, EStructuralFeature feature) {
- eObjects_ = new BasicEList();
- eObjects_.add(eObject);
- feature_ = feature;
- }
-
- public EList getEObjectList() {
- return eObjects_;
- }
-
- public EStructuralFeature getEStructuralFeature() {
- return feature_;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddClientHandler.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddClientHandler.java
deleted file mode 100644
index 7b5c538c8..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddClientHandler.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Handler;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-public class CommandAddClientHandler extends AbstractCommand {
- private ServiceRef parent_;
- private Handler newChild_;
-
- //private boolean oldChildSet_;
-
- public CommandAddClientHandler(String label, String description, ServiceRef parent, Handler newChild) {
- super(label, description);
- parent_ = parent;
- newChild_ = newChild;
- }
-
- public CommandAddClientHandler(String label, String description, ServiceRef parent, String handlerName, JavaClass handlerClass) {
- super(label, description);
- parent_ = parent;
- newChild_ = createNewHandler(handlerName, handlerClass);
- }
-
- public CommandAddClientHandler(String label, String description, ServiceRef parent, String handlerName, String handlerClassName) {
- super(label, description);
- parent_ = parent;
- JavaClass handlerClass = JavaRefFactory.eINSTANCE.createClassRef(handlerClassName);
- newChild_ = createNewHandler(handlerName, handlerClass);
- }
-
- private Handler createNewHandler(String handlerName, JavaClass handlerClass) {
- Webservice_clientFactory factory = Webservice_clientPackage.eINSTANCE.getWebservice_clientFactory();
- Handler newChild = factory.createHandler();
- newChild.setHandlerName(handlerName);
- newChild.setHandlerClass(handlerClass);
- return newChild;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- parent_.getHandlers().add(newChild_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- parent_.getHandlers().remove(newChild_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-
- public Object getAddedObject() {
- return newChild_;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddElement.java
deleted file mode 100644
index f4d23c083..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddElement.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class CommandAddElement extends AbstractCommand {
- private EObject parent_;
- private EStructuralFeature childFeature_;
- private Object newChild_;
- private Object oldChild_;
- private boolean oldChildSet_;
-
- public CommandAddElement(String label, String description, EObject parent, EStructuralFeature childFeature, Object newChild) {
- super(label, description);
- parent_ = parent;
- childFeature_ = childFeature;
- newChild_ = newChild;
- oldChild_ = null;
- oldChildSet_ = true;
- }
-
- public CommandAddElement(String label, String description, EObject parent, EClass childEClass, EStructuralFeature childFeature, EStructuralFeature[] childProperties, Object[] propertyValues) {
- super(label, description);
- parent_ = parent;
- childFeature_ = childFeature;
- newChild_ = createNewChild(childEClass, (childProperties != null) ? childProperties : new EStructuralFeature[0], (propertyValues != null) ? propertyValues : new Object[0]);
- oldChild_ = null;
- oldChildSet_ = true;
- }
-
- private Object createNewChild(EClass childEClass, EStructuralFeature[] childProperties, Object[] propertyValues) {
- EFactory eFactory = childEClass.getEPackage().getEFactoryInstance();
- EObject newChild = eFactory.create(childEClass);
- if (newChild != null)
- for (int i = 0; i < childProperties.length; i++)
- newChild.eSet(childProperties[i], propertyValues[i]);
- return newChild;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- if (childFeature_.isMany()) {
- if (newChild_ != null)
- ((EList) parent_.eGet(childFeature_)).add(newChild_);
- } else {
- oldChild_ = parent_.eGet(childFeature_);
- oldChildSet_ = parent_.eIsSet(childFeature_);
- parent_.eSet(childFeature_, newChild_);
- }
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (childFeature_.isMany()) {
- if (newChild_ != null)
- ((EList) parent_.eGet(childFeature_)).remove(newChild_);
- } else {
- if (oldChildSet_)
- parent_.eSet(childFeature_, oldChild_);
- else
- parent_.eUnset(childFeature_);
- }
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-
- public Object getAddedObject() {
- return newChild_;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddPortComponentRef.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddPortComponentRef.java
deleted file mode 100644
index f443c243e..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddPortComponentRef.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-public class CommandAddPortComponentRef extends AbstractCommand {
- private ServiceRef parent_;
- private PortComponentRef newChild_;
-
- //private boolean oldChildSet_;
-
- public CommandAddPortComponentRef(String label, String description, ServiceRef parent, PortComponentRef newChild) {
- super(label, description);
- parent_ = parent;
- newChild_ = newChild;
- }
-
- public CommandAddPortComponentRef(String label, String description, ServiceRef parent, String portComponentLink, JavaClass serviceEndpointInterface) {
- super(label, description);
- parent_ = parent;
- newChild_ = createNewPortComponentRef(portComponentLink, serviceEndpointInterface);
- }
-
- public CommandAddPortComponentRef(String label, String description, ServiceRef parent, String portComponentLink, String seiName) {
- super(label, description);
- parent_ = parent;
- JavaClass seiClass = JavaRefFactory.eINSTANCE.createClassRef(seiName);
- newChild_ = createNewPortComponentRef(portComponentLink, seiClass);
- }
-
- private PortComponentRef createNewPortComponentRef(String portComponentLink, JavaClass serviceEndpointInterface) {
- Webservice_clientFactory factory = Webservice_clientPackage.eINSTANCE.getWebservice_clientFactory();
- PortComponentRef newChild = factory.createPortComponentRef();
- newChild.setPortComponentLink(portComponentLink);
- newChild.setServiceEndpointInterface(serviceEndpointInterface);
- return newChild;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- parent_.getPortComponentRefs().add(newChild_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- parent_.getPortComponentRefs().remove(newChild_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-
- public Object getAddedObject() {
- return newChild_;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddServiceRef.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddServiceRef.java
deleted file mode 100644
index 67383521d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandAddServiceRef.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-public class CommandAddServiceRef extends AbstractCommand {
- private WebServicesClient parent_;
- private ServiceRef newChild_;
-
- //private boolean oldChildSet_;
-
- public CommandAddServiceRef(String label, String description, WebServicesClient parent, ServiceRef newChild) {
- super(label, description);
- parent_ = parent;
- newChild_ = newChild;
- }
-
- public CommandAddServiceRef(String label, String description, WebServicesClient parent, String serviceRefName, JavaClass serviceInterface) {
- super(label, description);
- parent_ = parent;
- newChild_ = createNewServiceRef(serviceRefName, serviceInterface);
- }
-
- private ServiceRef createNewServiceRef(String serviceRefName, JavaClass serviceInterface) {
- Webservice_clientFactory factory = Webservice_clientPackage.eINSTANCE.getWebservice_clientFactory();
- ServiceRef newChild = factory.createServiceRef();
- newChild.setServiceRefName(serviceRefName);
- newChild.setServiceInterface(serviceInterface);
- return newChild;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- parent_.getServiceRefs().add(newChild_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- parent_.getServiceRefs().remove(newChild_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-
- public Object getAddedObject() {
- return newChild_;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyElement.java
deleted file mode 100644
index f0462e081..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyElement.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class CommandModifyElement extends AbstractCommand {
- private EObject parent_;
- private EStructuralFeature[] properties_;
- private Object[] propertyValues_;
- private Object[] oldPropertyValues_;
-
- public CommandModifyElement(String label, String description, EObject parent, EStructuralFeature[] properties, Object[] propertyValues) {
- super(label, description);
- parent_ = parent;
- properties_ = properties;
- propertyValues_ = propertyValues;
-
- }
-
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldPropertyValues_ = new Object[properties_.length];
-
- if (parent_ != null) {
- for (int i = 0; i < properties_.length; i++) {
- oldPropertyValues_[i] = parent_.eGet(properties_[i]);
- parent_.eSet(properties_[i], propertyValues_[i]);
- }
- }
-
-
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
-
- if (parent_ != null) {
- for (int i = 0; i < oldPropertyValues_.length; i++) {
- parent_.eSet(properties_[i], oldPropertyValues_[i]);
- }
- }
-
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyHandlerClassText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyHandlerClassText.java
deleted file mode 100644
index 7f5ccdb02..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyHandlerClassText.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Handler;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-public class CommandModifyHandlerClassText extends AbstractCommand {
- private Handler eObject_;
- private EStructuralFeature feature_;
- private String newValue_;
- private JavaClass oldValue_;
- private boolean nillable_;
- private boolean oldIsSet_;
-
- public CommandModifyHandlerClassText(String label, String description, Handler eObject, String newValue) {
- super(label, description);
- eObject_ = eObject;
- feature_ = Webservice_clientPackage.eINSTANCE.getHandler_HandlerClass();
- if (newValue == null)
- newValue_ = ""; //$NON-NLS-1$
- else
- newValue_ = newValue;
- nillable_ = false;
- oldValue_ = null;
- oldIsSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldIsSet_ = eObject_.eIsSet(feature_);
- oldValue_ = eObject_.getHandlerClass();
- eObject_.setHandlerClass(JavaRefFactory.eINSTANCE.createClassRef(newValue_));
- if (nillable_ && newValue_ == null)
- eObject_.eUnset(feature_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (oldIsSet_)
- eObject_.setHandlerClass(oldValue_);
- else
- eObject_.eUnset(feature_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyNSURI.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyNSURI.java
deleted file mode 100644
index 4d4085c40..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyNSURI.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.webservice.internal.util.QNameHelper;
-
-public class CommandModifyNSURI extends AbstractCommand {
- private QName eObject_;
- private EStructuralFeature feature_;
- private String newValue_;
- private Object oldValue_;
- private boolean nillable_;
- private boolean oldIsSet_;
-
- public CommandModifyNSURI(String label, String description, QName eObject, String newValue, boolean nillable) {
- super(label, description);
- eObject_ = eObject;
- feature_ = CommonPackage.eINSTANCE.getQName_NamespaceURI();
- if (nillable && (newValue == null || newValue.length() <= 0))
- newValue_ = null;
- else if (!nillable && newValue == null)
- newValue_ = ""; //$NON-NLS-1$
- else
- newValue_ = newValue;
- nillable_ = nillable;
- oldValue_ = null;
- oldIsSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldIsSet_ = eObject_.eIsSet(feature_);
- oldValue_ = eObject_.getNamespaceURI();
- QNameHelper.setQNameNamespaceURI(eObject_, newValue_);
- if (nillable_ && newValue_ == null)
- eObject_.eUnset(feature_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (oldIsSet_)
- eObject_.eSet(feature_, oldValue_);
- else
- eObject_.eUnset(feature_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifySEI.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifySEI.java
deleted file mode 100644
index d971cb7cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifySEI.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-/**
- *
- */
-public class CommandModifySEI extends AbstractCommand {
- private PortComponentRef eObject_;
- private EStructuralFeature feature_;
- private String newValue_;
- private Object oldValue_;
- private boolean nillable_;
- private boolean oldIsSet_;
-
-
- public CommandModifySEI(String label, String description, PortComponentRef eObject, String newValue, boolean nillable) {
- super(label, description);
- eObject_ = eObject;
- feature_ = Webservice_clientPackage.eINSTANCE.getPortComponentRef_ServiceEndpointInterface();
- if (nillable && (newValue == null || newValue.length() <= 0))
- newValue_ = null;
- else if (!nillable && newValue == null)
- newValue_ = ""; //$NON-NLS-1$
- else
- newValue_ = newValue;
- nillable_ = nillable;
- oldValue_ = null;
- oldIsSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldIsSet_ = eObject_.eIsSet(feature_);
- oldValue_ = eObject_.getServiceEndpointInterface();
- JavaClass newJavaClass_ = JavaRefFactory.eINSTANCE.createClassRef(newValue_);
- eObject_.setServiceEndpointInterface(newJavaClass_);
- if (nillable_ && newValue_ == null)
- eObject_.eUnset(feature_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (oldIsSet_)
- eObject_.eSet(feature_, oldValue_);
- else
- eObject_.eUnset(feature_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.common.command.Command#execute()
- */
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyServiceInterfaceText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyServiceInterfaceText.java
deleted file mode 100644
index 6d938ae04..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyServiceInterfaceText.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-public class CommandModifyServiceInterfaceText extends AbstractCommand {
- private ServiceRef eObject_;
- private EStructuralFeature feature_;
- private String newValue_;
- private JavaClass oldValue_;
- private boolean nillable_;
- private boolean oldIsSet_;
-
- public CommandModifyServiceInterfaceText(String label, String description, ServiceRef eObject, String newValue) {
- super(label, description);
- eObject_ = eObject;
- feature_ = Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceInterface();
- if (newValue == null)
- newValue_ = ""; //$NON-NLS-1$
- else
- newValue_ = newValue;
- nillable_ = false;
- oldValue_ = null;
- oldIsSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldIsSet_ = eObject_.eIsSet(feature_);
- oldValue_ = eObject_.getServiceInterface();
- eObject_.setServiceInterface(JavaRefFactory.eINSTANCE.createClassRef(newValue_));
- if (nillable_ && newValue_ == null)
- eObject_.eUnset(feature_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (oldIsSet_)
- eObject_.setServiceInterface(oldValue_);
- else
- eObject_.eUnset(feature_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyText.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyText.java
deleted file mode 100644
index 6b34fa030..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandModifyText.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class CommandModifyText extends AbstractCommand {
- private EObject eObject_;
- private EStructuralFeature feature_;
- private String newValue_;
- private Object oldValue_;
- private boolean nillable_;
- private boolean oldIsSet_;
-
- public CommandModifyText(String label, String description, EObject eObject, EStructuralFeature feature, String newValue, boolean nillable) {
- super(label, description);
- eObject_ = eObject;
- feature_ = feature;
- if (nillable && (newValue == null || newValue.length() <= 0))
- newValue_ = null;
- else if (!nillable && newValue == null)
- newValue_ = ""; //$NON-NLS-1$
- else
- newValue_ = newValue;
- nillable_ = nillable;
- oldValue_ = null;
- oldIsSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- oldIsSet_ = eObject_.eIsSet(feature_);
- oldValue_ = eObject_.eGet(feature_);
- eObject_.eSet(feature_, newValue_);
- if (nillable_ && newValue_ == null)
- eObject_.eUnset(feature_);
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (oldIsSet_)
- eObject_.eSet(feature_, oldValue_);
- else
- eObject_.eUnset(feature_);
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandMoveServiceRefs.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandMoveServiceRefs.java
deleted file mode 100644
index bb37dbcfa..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandMoveServiceRefs.java
+++ /dev/null
@@ -1,299 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-
-
-public class CommandMoveServiceRefs extends AbstractCommand {
- private EObject source_;
- private EObject target_;
- private EStructuralFeature childFeature_;
- private Object[] children_;
- private boolean isCopy_;
- private Object[] clonedChildren_;
- private EList serviceRefs;
-
- public CommandMoveServiceRefs(String label, String description, EObject source, EObject target, EStructuralFeature childFeature, Object[] children, boolean isCopy, EList serviceRefs) {
- super(label, description);
- source_ = source;
- target_ = target;
- childFeature_ = childFeature;
- children_ = children;
- isCopy_ = isCopy;
- clonedChildren_ = null;
- this.serviceRefs = serviceRefs;
- }
-
- private Object cloneObject(Object object) {
- if (object instanceof EList) {
- EList clone = new BasicEList();
- for (Iterator it = ((EList) object).iterator(); it.hasNext();) {
- clone.add(cloneObject(it.next()));
- }
- return clone;
- }
- if (object instanceof EObject) {
- EObject source = (EObject) object;
- EClass eClass = ((EObject) object).eClass();
- EPackage ePackage = eClass.getEPackage();
- EFactory eFactory = ePackage.getEFactoryInstance();
- EObject clone = eFactory.create(eClass);
- EList features = eClass.getEAllStructuralFeatures();
- for (Iterator it = features.iterator(); it.hasNext();) {
- EStructuralFeature feature = (EStructuralFeature) it.next();
- if (source.eIsSet(feature)) {
- Object clonedFeature = cloneObject(source.eGet(feature));
- if (feature.isMany())
- ((List) clone.eGet(feature)).addAll((List) clonedFeature);
- else
- clone.eSet(feature, clonedFeature);
- } else
- clone.eUnset(feature);
- }
- return clone;
- }
- if (object != null)
- return new String(object.toString());
- return null;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- if (childFeature_.isMany())
- executeMany();
- else
- executeSingle();
- }
-
- private void executeSingle() {
- Object child = source_.eGet(childFeature_);
- if (isCopy_)
- target_.eSet(childFeature_, cloneObject(child));
- else {
- source_.eUnset(childFeature_);
- target_.eSet(childFeature_, child);
- }
- }
-
- private void executeMany() {
- EList sourceList;
- if (source_ instanceof WebServicesClient)
- sourceList = serviceRefs;
- else
- sourceList = (EList) source_.eGet(childFeature_);
- EList targetList;
- if (target_ instanceof WebServicesClient)
- targetList = serviceRefs;
- else
- targetList = (EList) target_.eGet(childFeature_);
- if (isCopy_)
- clonedChildren_ = new Object[children_.length];
- for (int i = 0; i < children_.length; i++) {
- int index = sourceList.indexOf(children_[i]);
- if (index != -1) {
- if (isCopy_) {
- clonedChildren_[i] = cloneObject(children_[i]);
- targetList.add(clonedChildren_[i]);
- } else {
- sourceList.remove(index);
- targetList.add(children_[i]);
- }
- }
- }
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (childFeature_.isMany())
- undoSingle();
- else
- undoMany();
- }
-
- private void undoSingle() {
- Object child = target_.eGet(childFeature_);
- target_.eUnset(childFeature_);
- if (!isCopy_)
- source_.eSet(childFeature_, child);
- }
-
- private void undoMany() {
- EList sourceList;
- if (source_ instanceof WebServicesClient)
- sourceList = serviceRefs;
- else
- sourceList = (EList) source_.eGet(childFeature_);
- EList targetList;
- if (target_ instanceof WebServicesClient)
- targetList = serviceRefs;
- else
- targetList = (EList) target_.eGet(childFeature_);
- if (isCopy_) {
- if (clonedChildren_ != null) {
- for (int i = 0; i < clonedChildren_.length; i++) {
- targetList.remove(clonedChildren_[i]);
- }
- }
- } else {
- for (int i = 0; i < children_.length; i++) {
- int index = targetList.indexOf(children_[i]);
- if (index != -1) {
- targetList.remove(index);
- sourceList.add(children_[i]);
- }
- }
- }
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandRemoveElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandRemoveElement.java
deleted file mode 100644
index 2aa91d948..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandRemoveElement.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class CommandRemoveElement extends AbstractCommand {
- private EObject parent_;
- private Object child_;
- private Object oldChild_;
- private boolean oldChildSet_;
- private EStructuralFeature childFeature_;
- private boolean nillable_;
-
- public CommandRemoveElement(String label, String description, EObject parent, EStructuralFeature childFeature) {
- this(label, description, parent, childFeature, true);
- }
-
- public CommandRemoveElement(String label, String description, EObject parent, EStructuralFeature childFeature, boolean nillable) {
- this(label, description, parent, null, childFeature, nillable);
- }
-
- public CommandRemoveElement(String label, String description, EObject parent, Object child, EStructuralFeature childFeature) {
- this(label, description, parent, child, childFeature, true);
- }
-
- public CommandRemoveElement(String label, String description, EObject parent, Object child, EStructuralFeature childFeature, boolean nillable) {
- super(label, description);
- parent_ = parent;
- child_ = child;
- oldChild_ = null;
- oldChildSet_ = true;
- childFeature_ = childFeature;
- nillable_ = nillable;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- if (childFeature_.isMany()) {
- if (child_ != null)
- ((EList) parent_.eGet(childFeature_)).remove(child_);
- } else {
- oldChild_ = parent_.eGet(childFeature_);
- oldChildSet_ = parent_.eIsSet(childFeature_);
- if (nillable_)
- parent_.eUnset(childFeature_);
- else
- parent_.eSet(childFeature_, null);
- }
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (childFeature_.isMany()) {
- if (child_ != null)
- ((EList) parent_.eGet(childFeature_)).add(child_);
- } else {
- if (oldChildSet_)
- parent_.eSet(childFeature_, oldChild_);
- else
- parent_.eUnset(childFeature_);
- }
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandSetElement.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandSetElement.java
deleted file mode 100644
index d888b9e44..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/command/CommandSetElement.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.command;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-public class CommandSetElement extends AbstractCommand {
- private EObject parent_;
- private EStructuralFeature childFeature_;
- private Object newChild_;
- private Object oldChild_;
- private boolean oldChildSet_;
-
- public CommandSetElement(String label, String description, EObject parent, EStructuralFeature childFeature, Object newChild) {
- this(label, description, parent, childFeature, newChild, null);
- }
-
- public CommandSetElement(String label, String description, EObject parent, EStructuralFeature childFeature, Object newChild, Object oldChild) {
- super(label, description);
- parent_ = parent;
- childFeature_ = childFeature;
- newChild_ = newChild;
- oldChild_ = oldChild;
- oldChildSet_ = true;
- }
-
- /**
- * Called at most once in {@link #canExecute}to give the command an opportunity to ready itself
- * for execution. The returned value is stored in {@link #canExecute}. In other words, you can
- * override this method to initialize and to yield a cached value for the all subsequent calls
- * to canExecute.
- *
- * @return whether the command is executable.
- */
- @Override
- protected boolean prepare() {
- return true;
- }
-
- /**
- * Returns whether the comamad is valid to <code>execute</code>. The
- * {@link UnexecutableCommand#INSTANCE}.<code>canExecute()</code> always returns
- * <code>false</code>. This <b>must </b> be called before calling <code>execute</code>.
- *
- * @return whether the comamad is valid to <code>execute</code>.
- */
- @Override
- public boolean canExecute() {
- return super.canExecute();
- }
-
- /**
- * Performs the command activity required for the effect. The effect of calling
- * <code>execute</code> when <code>canExecute</code> returns <code>false</code>, or when
- * <code>canExecute</code> hasn't been called, is undefined.
- */
- public void execute() {
- if (childFeature_.isMany() && !(newChild_ instanceof EList)) {
- if (oldChild_ != null && newChild_ != null) {
- EList eList = (EList) parent_.eGet(childFeature_);
- int index = eList.indexOf(oldChild_);
- if (index != -1)
- eList.set(index, newChild_);
- }
- } else {
- oldChild_ = parent_.eGet(childFeature_);
- oldChildSet_ = parent_.eIsSet(childFeature_);
- if (newChild_ != null)
- parent_.eSet(childFeature_, newChild_);
- else
- parent_.eUnset(childFeature_);
- }
- }
-
- /**
- * Returns <code>true</code> because most command should be undoable.
- *
- * @return <code>true</code>.
- */
- @Override
- public boolean canUndo() {
- return true;
- }
-
- /**
- * Performs the command activity required to <code>undo</code> the effects of a preceding
- * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling
- * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or
- * when canUndo returns <code>false</code>, is undefined.
- */
- @Override
- public void undo() {
- if (childFeature_.isMany() && !(newChild_ instanceof EList)) {
- if (oldChild_ != null && newChild_ != null) {
- EList eList = (EList) parent_.eGet(childFeature_);
- int index = eList.indexOf(newChild_);
- if (index != -1)
- eList.set(index, oldChild_);
- }
- } else {
- if (oldChildSet_)
- parent_.eSet(childFeature_, oldChild_);
- else
- parent_.eUnset(childFeature_);
- }
- }
-
- /**
- * Performs the command activity required to <code>redo</code> the effect after undoing the
- * effect. The effect, if any, of calling <code>redo</code> before <code>undo</code> is
- * called is undefined. Note that if you implement <code>redo</code> to call
- * <code>execute</code> then any derived class will be restricted by that decision also.
- */
- public void redo() {
- execute();
- }
-
- /**
- * Returns a collection of things which this command wishes to present as it's result. The
- * result of calling this before an <code>execute</code> or <code>redo</code>, or after an
- * <code>undo</code>, is undefined.
- *
- * @return a collection of things which this command wishes to present as it's result.
- */
- @Override
- public Collection getResult() {
- return super.getResult();
- }
-
- /**
- * Returns the collection of things which this command wishes to present as the objects affected
- * by the command. Typically should could be used as the selection that should be highlighted to
- * best illustrate the effect of the command. The result of calling this before an
- * <code>execute</code>,<code>redo</code>, or <code>undo</code> is undefined. The
- * result may be different after an <code>undo</code> than it is after an <code>execute</code>
- * or <code>redo</code>, but the result should be the same (equivalent) after either an
- * <code>execute</code> or <code>redo</code>.
- *
- * @return the collection of things which this command wishes to present as the objects affected
- * by the command.
- */
- @Override
- public Collection getAffectedObjects() {
- return super.getAffectedObjects();
- }
-
- /**
- * Called to indicate that the command will never be used again. Calling any other method after
- * this one has undefined results.
- */
- @Override
- public void dispose() {
- //Do nothing
- }
-
- /**
- * Returns a command that represents the composition of this command with the given command. The
- * resulting command may just be this, if this command is capabable of composition. Otherwise,
- * it will be a new command created to compose the two.
- * <p>
- * Instead of the following pattern of usage
- *
- * <pre>
- * Command result = x;
- * if (condition)
- * result = result.chain(y);
- * </pre>
- *
- * you should consider using a {@link org.eclipse.emf.common.command.CompoundCommand}and using
- * {@link org.eclipse.emf.common.command.CompoundCommand#unwrap()}to optimize the result:
- *
- * <pre>
- * CompoundCommand subcommands = new CompoundCommand();
- * subcommands.append(x);
- * if (condition)
- * subcommands.append(y);
- * Command result = subcommands.unwrap();
- * </pre>
- *
- * This gives you more control over how the compound command composes it's result and affected
- * objects.
- *
- * @param command
- * the command to chain.
- * @return a command that represents the composition of this command with the given command.
- */
- @Override
- public Command chain(Command command) {
- return super.chain(command);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/JaxRPCMapArtifactEdit.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/JaxRPCMapArtifactEdit.java
deleted file mode 100644
index cef940cff..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/JaxRPCMapArtifactEdit.java
+++ /dev/null
@@ -1,391 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.componentcore.util;
-
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResource;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResourceFactory;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-import org.eclipse.wst.common.componentcore.UnresolveableURIException;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.impl.WTPResourceFactoryRegistry;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-
-/**
- * <p>
- * WSDDArtifactEdit obtains a WS Deployment Descriptor metamodel specifec data from a
- * {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp; which stores the metamodel. The
- * {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp;is retrieved from the
- * {@see org.eclipse.wst.common.modulecore.ArtifactEditModel}&nbsp;using a constant {@see
- * J2EEConstants#EJBJAR_DD_URI_OBJ}. The defined methods extract data or manipulate the contents of
- * the underlying resource.
- * </p>
- *
- */
-public class JaxRPCMapArtifactEdit extends EnterpriseArtifactEdit {
-
- /**
- * <p>
- * Identifier used to link WSDDArtifactEdit to a WsddAdapterFactory {@see
- * WsddAdapterFactory} stored in an AdapterManger (@see AdapterManager)
- * </p>
- */
-
- public static final Class ADAPTER_TYPE = JaxRPCMapArtifactEdit.class;
-
-
- /**
- * @param aHandle
- * @param toAccessAsReadOnly
- * @throws IllegalArgumentException
- */
- public JaxRPCMapArtifactEdit(IProject aProject, boolean toAccessAsReadOnly) throws IllegalArgumentException {
- super(aProject, toAccessAsReadOnly);
- }
-
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}.
- * </p>
- *
- * @param anArtifactEditModel
- */
- public JaxRPCMapArtifactEdit(ArtifactEditModel model) {
- super(model);
- }
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}
- * </p>
- *
- * <p>Note: This method is for internal use only. Clients should not call this method.</p>
- * @param aNature
- * A non-null {@see ModuleCoreNature}for an accessible project
- * @param aModule
- * A non-null {@see WorkbenchComponent}pointing to a module from the given
- * {@see ModuleCoreNature}
- */
- protected JaxRPCMapArtifactEdit(ModuleCoreNature aNature, IVirtualComponent aModule, boolean toAccessAsReadOnly) {
- super(aNature, aModule, toAccessAsReadOnly);
- }
-
- /**
- *
- * @return WsddResource from (@link getDeploymentDescriptorResource())
- *
- */
-
- public JaxrpcmapResource getJaxRPCMapXmiResource(String mappingFilePathURI) {
-
- URI uri = URI.createPlatformResourceURI(mappingFilePathURI);
- ResourceSet resSet = getArtifactEditModel().getResourceSet();
- WTPResourceFactoryRegistry registry = (WTPResourceFactoryRegistry) resSet.getResourceFactoryRegistry();
- registry.registerLastFileSegment(uri.lastSegment(), new JaxrpcmapResourceFactory(RendererFactory.getDefaultRendererFactory()));
-
- JaxrpcmapResource jaxrpcmapRes = (JaxrpcmapResource) resSet.getResource(uri, true);
-
- return jaxrpcmapRes;
- }
-
- /**
- * <p>
- * Retrieves J2EE version information from EJBResource.
- * </p>
- *
- * @return an integer representation of a J2EE Spec version
- *
- */
-
- public int getJ2EEVersion(String mappingFilePathURI) {
- return getJaxRPCMapXmiResource(mappingFilePathURI).getJ2EEVersionID();
- }
-
-
- /**
- * <p>
- * Retrieves the underlying resource from the ArtifactEditModel using defined URI.
- * </p>
- *
- * @return Resource
- *
- */
-
- public Resource getDeploymentDescriptorResource(String mappingFilePathURI) {
- return getJaxRPCMapXmiResource(mappingFilePathURI);
- }
-
-
- /**
- *
- * @return WebServices from (@link getDeploymentDescriptorRoot())
- *
- */
- public JavaWSDLMapping getJavaWSDLMapping() {
- return (JavaWSDLMapping) getDeploymentDescriptorRoot();
- }
-
- /**
- * <p>
- * Obtains the WebServices (@see WebServices) root object from the WsddResource. If the root object does
- * not exist, then one is created (@link addEJBJarIfNecessary(getEJBJarXmiResource())).
- * The root object contains all other resource defined objects.
- * </p>
- *
- * @return EObject
- *
- */
- public EObject getDeploymentDescriptorRoot(String mappingFilePathURI) {
- List contents = getDeploymentDescriptorResource(mappingFilePathURI).getContents();
- if (contents.size() > 0)
- return (EObject) contents.get(0);
- addJavaWSDLMappingIfNecessary(getJaxRPCMapXmiResource(mappingFilePathURI));
- return (EObject) contents.get(0);
- }
-
- /**
- * <p>
- * Creates a deployment descriptor root object (WebServices) and populates with data. Adds the root
- * object to the deployment descriptor resource.
- * </p>
- *
- * <p>
- *
- * @param aModule
- * A non-null pointing to a {@see XMLResource}
- * Note: This method is typically used for JUNIT - move?
- * </p>
- */
- protected void addJavaWSDLMappingIfNecessary(JaxrpcmapResource aResource) {
- if (aResource != null) {
- if(aResource.getContents() == null || aResource.getContents().isEmpty()) {
- JavaWSDLMapping map = JaxrpcmapFactory.eINSTANCE.createJavaWSDLMapping();
- aResource.getContents().add(map);
- }
- aResource.getContents().get(0);
- getArtifactEditModel().getModuleURI();
- try {
- aResource.saveIfNecessary();
- }
- catch (Exception e) {
- WebServicePlugin.logError(e);
- }
- }
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the given
- * {@see WorkbenchComponent}. Instances of ArtifactEdit that are returned through this method
- * must be {@see #dispose()}ed of when no longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific {@see WorkbenchComponent}&nbsp;that
- * will not be used for editing. Invocations of any save*() API on an instance returned from
- * this method will throw exceptions.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that resolves to an
- * accessible project in the workspace
- * @return An instance of ArtifactEdit that may only be used to read the underlying content
- * model
- */
- public static JaxRPCMapArtifactEdit getJaxRPCMapArtifactEditForRead(IProject aProject) {
- JaxRPCMapArtifactEdit artifactEdit = null;
- try {
- artifactEdit = new JaxRPCMapArtifactEdit(aProject, true);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- return artifactEdit;
- }
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the given
- * {@see WorkbenchComponent}. Instances of ArtifactEdit that are returned through this method
- * must be {@see #dispose()}ed of when no longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific {@see WorkbenchComponent}&nbsp;that
- * will be used for editing.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that resolves to an
- * accessible project in the workspace
- * @return An instance of ArtifactEdit that may be used to modify and persist changes to the
- * underlying content model
- */
- public static JaxRPCMapArtifactEdit getJaxRPCMapArtifactEditForWrite(IProject aProject) {
- JaxRPCMapArtifactEdit artifactEdit = null;
- try {
- artifactEdit = new JaxRPCMapArtifactEdit(aProject, false);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- return artifactEdit;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the given
- * {@see WorkbenchComponent}. Instances of WSDDArtifactEdit that are returned through this method
- * must be {@see #dispose()}ed of when no longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific {@see WorkbenchComponent}&nbsp;that will not
- * be used for editing. Invocations of any save*() API on an instance returned from this method
- * will throw exceptions.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- *
- * <p>Note: This method is for internal use only. Clients should not call this method.</p>
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that resolves to an accessible
- * project in the workspace
- * @return An instance of WSDDArtifactEdit that may only be used to read the underlying content
- * model
- * @throws UnresolveableURIException
- * could not resolve uri.
- */
- public static JaxRPCMapArtifactEdit getJaxRPCMapArtifactEditForRead(IVirtualComponent aModule) {
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- return new JaxRPCMapArtifactEdit(nature, aModule, true);
- }
-
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the given
- * {@see WorkbenchComponent}. Instances of EJBArtifactEdit that are returned through this method
- * must be {@see #dispose()}ed of when no longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific {@see WorkbenchComponent}&nbsp;that
- * will be used for editing.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- *
- * <p>Note: This method is for internal use only. Clients should not call this method.</p>
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that resolves to an accessible
- * project in the workspace
- * @return An instance of WSDDArtifactEdit that may be used to modify and persist changes to the
- * underlying content model
- */
- public static JaxRPCMapArtifactEdit getJaxRPCMapArtifactEditForWrite(IVirtualComponent aModule) {
-
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- return new JaxRPCMapArtifactEdit(nature, aModule, false);
-
- }
-
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and the moduleTypeId is a
- * JST module
- */
- public static boolean isValidEJBModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isEJBProject(aComponent.getProject());
- }
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and the moduleTypeId is a
- * JST module
- */
- public static boolean isValidWebModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isDynamicWebProject(aComponent.getProject());
- }
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and the moduleTypeId is a
- * JST module
- */
- public static boolean isValidAppClientModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isApplicationClientProject(aComponent.getProject());
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot()
- */
- public EObject createModelRoot(String mappingFilePathURI) {
- return createModelRoot(getJ2EEVersion(),mappingFilePathURI);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot(int)
- */
- public EObject createModelRoot(int version,String mappingFilePathURI) {
- JaxrpcmapResource res = getJaxRPCMapXmiResource(mappingFilePathURI);
- res.setModuleVersionID(version);
- addJavaWSDLMappingIfNecessary(res);
- return getJavaWSDLMapping();
- }
-
- @Override
- public EObject createModelRoot() {
- throw new IllegalArgumentException(WebServicePlugin.getMessage("_UI_JaxRPCMissingModel")); //$NON-NLS-1$
- }
-
- @Override
- public EObject createModelRoot(int version) {
- throw new IllegalArgumentException(WebServicePlugin.getMessage("_UI_JaxRPCMissingModel")); //$NON-NLS-1$
- }
-
- @Override
- public Resource getDeploymentDescriptorResource() {
- throw new IllegalArgumentException(WebServicePlugin.getMessage("_UI_JaxRPCMissingModel")); //$NON-NLS-1$
- }
-
- @Override
- public int getJ2EEVersion() {
- throw new IllegalArgumentException(WebServicePlugin.getMessage("_UI_JaxRPCMissingModel")); //$NON-NLS-1$
- }
-
- // [182417] This ArtifactEdit works for all project versions, so just return true.
- @Override
- protected boolean validProjectVersion(IProject project) {
- return true;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSCDDArtifactEdit.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSCDDArtifactEdit.java
deleted file mode 100644
index 36faf4eec..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSCDDArtifactEdit.java
+++ /dev/null
@@ -1,423 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.componentcore.util;
-
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesResource;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-import org.eclipse.wst.common.componentcore.UnresolveableURIException;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-
-/**
- * <p>
- * WSDDArtifactEdit obtains a WS Deployment Descriptor metamodel specifec data
- * from a {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp; which stores the
- * metamodel. The {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp;is retrieved
- * from the {@see org.eclipse.wst.common.modulecore.ArtifactEditModel}&nbsp;using
- * a constant {@see J2EEConstants#EJBJAR_DD_URI_OBJ}. The defined methods
- * extract data or manipulate the contents of the underlying resource.
- * </p>
- */
-public class WSCDDArtifactEdit extends EnterpriseArtifactEdit {
-
- /**
- * <p>
- * Identifier used to link WSDDArtifactEdit to a WsddAdapterFactory {@see
- * WsddAdapterFactory} stored in an AdapterManger (@see AdapterManager)
- * </p>
- */
-
- public static final Class ADAPTER_TYPE = WSCDDArtifactEdit.class;
-
- /**
- * @param aHandle
- * @param toAccessAsReadOnly
- * @throws IllegalArgumentException
- */
- public WSCDDArtifactEdit(IProject aProject, boolean toAccessAsReadOnly) throws IllegalArgumentException {
- super(aProject, toAccessAsReadOnly);
- }
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}.
- * </p>
- *
- * @param anArtifactEditModel
- */
- public WSCDDArtifactEdit(ArtifactEditModel model) {
- super(model);
- }
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aNature
- * A non-null {@see ModuleCoreNature}for an accessible project
- * @param aModule
- * A non-null {@see WorkbenchComponent}pointing to a module from
- * the given {@see ModuleCoreNature}
- */
- public WSCDDArtifactEdit(ModuleCoreNature aNature, IVirtualComponent aModule, boolean toAccessAsReadOnly) {
- super(aNature, aModule, toAccessAsReadOnly);
- }
-
- /**
- * @return WsddResource from (@link getDeploymentDescriptorResource())
- */
-
- public WebServicesResource getWscddXmiResource() {
- return (WebServicesResource) getDeploymentDescriptorResource();
- }
-
- /**
- * <p>
- * Retrieves J2EE version information from EJBResource.
- * </p>
- *
- * @return an integer representation of a J2EE Spec version
- */
-
- @Override
- public int getJ2EEVersion() {
- return getWscddXmiResource().getJ2EEVersionID();
- }
-
- /**
- * <p>
- * Retrieves the underlying resource from the ArtifactEditModel using
- * defined URI.
- * </p>
- *
- * @return Resource
- */
-
- @Override
- public Resource getDeploymentDescriptorResource() {
- if (getArtifactEditModel()!=null)
- return getArtifactEditModel().getResource(getWebServicesClientXmlResourceURI());
- return null;
- }
-
- public URI getWebServicesClientXmlResourceURI() {
- URI resourceURI = J2EEConstants.WEB_SERVICES_CLIENT_WEB_INF_DD_URI_OBJ;
- if (isValidAppClientModule(ComponentCore.createComponent(getProject())))
- resourceURI = J2EEConstants.WEB_SERVICES_CLIENT_META_INF_DD_URI_OBJ;
- else if (isValidEJBModule(ComponentCore.createComponent(getProject())))
- resourceURI = J2EEConstants.WEB_SERVICES_CLIENT_META_INF_DD_URI_OBJ;
- return resourceURI;
- }
-
- /**
- * @return WebServices from (@link getDeploymentDescriptorRoot())
- */
- public WebServicesClient getWebServicesClient() {
- return (WebServicesClient) getDeploymentDescriptorRoot();
- }
-
- /**
- * <p>
- * Obtains the WebServices (@see WebServices) root object from the
- * WsddResource. If the root object does not exist, then one is created
- * (@link addEJBJarIfNecessary(getEJBJarXmiResource())). The root object
- * contains all other resource defined objects.
- * </p>
- *
- * @return EObject
- */
- @Override
- public EObject getDeploymentDescriptorRoot() {
- List contents = getDeploymentDescriptorResource().getContents();
- if (contents.size() > 0)
- return (EObject) contents.get(0);
- addWebServicesClientIfNecessary(getWscddXmiResource());
- return (EObject) contents.get(0);
- }
-
- /**
- * <p>
- * Creates a deployment descriptor root object (WebServices) and populates
- * with data. Adds the root object to the deployment descriptor resource.
- * </p>
- * <p>
- *
- * @param aModule
- * A non-null pointing to a {@see XMLResource} Note: This method
- * is typically used for JUNIT - move?
- * </p>
- */
- protected void addWebServicesClientIfNecessary(WebServicesResource aResource) {
- if (aResource != null) {
- if (aResource.getContents() == null || aResource.getContents().isEmpty()) {
- WebServicesClient ws_client = Webservice_clientFactory.eINSTANCE.createWebServicesClient();
- aResource.getContents().add(ws_client);
- }
- aResource.getContents().get(0);
- getArtifactEditModel().getModuleURI();
- try {
- aResource.saveIfNecessary();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of ArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will not be used for editing.
- * Invocations of any save*() API on an instance returned from this method
- * will throw exceptions.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of ArtifactEdit that may only be used to read the
- * underlying content model
- */
- public static WSCDDArtifactEdit getWSCDDArtifactEditForRead(IProject aProject) {
- WSCDDArtifactEdit artifactEdit = null;
- try {
- artifactEdit = new WSCDDArtifactEdit(aProject, true);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- return artifactEdit;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of ArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will be used for editing.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of ArtifactEdit that may be used to modify and
- * persist changes to the underlying content model
- */
- public static WSCDDArtifactEdit getWSCDDArtifactEditForWrite(IProject aProject) {
- WSCDDArtifactEdit artifactEdit = null;
- try {
- artifactEdit = new WSCDDArtifactEdit(aProject, false);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- return artifactEdit;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of WSDDArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will not be used for editing.
- * Invocations of any save*() API on an instance returned from this method
- * will throw exceptions.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of WSDDArtifactEdit that may only be used to read the
- * underlying content model
- * @throws UnresolveableURIException
- * could not resolve uri.
- */
- public static WSCDDArtifactEdit getWSCDDArtifactEditForRead(IVirtualComponent aModule) {
-
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- if (isValidWSCDDModule(aModule))
- return new WSCDDArtifactEdit(nature, aModule, true);
- return null;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of EJBArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will be used for editing.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of WSDDArtifactEdit that may be used to modify and
- * persist changes to the underlying content model
- */
- public static WSCDDArtifactEdit getWSCDDArtifactEditForWrite(IVirtualComponent aModule) {
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- if (isValidWSCDDModule(aModule))
- return new WSCDDArtifactEdit(nature, aModule, false);
- return null;
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidEJBModule(IVirtualComponent aComponent) {
- return aComponent !=null && JavaEEProjectUtilities.isEJBProject(aComponent.getProject());
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidWSDDModule(IVirtualComponent)}and the
- * moduleTypeId is a JST module
- */
- protected static boolean isValidWSCDDModule(IVirtualComponent aComponent) {
- return (isValidAppClientModule(aComponent) || isValidWebModule(aComponent) || isValidEJBModule(aComponent));
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidWebModule(IVirtualComponent aComponent) {
- return aComponent !=null && JavaEEProjectUtilities.isDynamicWebProject(aComponent.getProject());
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidAppClientModule(IVirtualComponent aComponent) {
- return aComponent !=null && JavaEEProjectUtilities.isApplicationClientProject(aComponent.getProject());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot()
- */
- @Override
- public EObject createModelRoot() {
- return createModelRoot(getJ2EEVersion());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot(int)
- */
- @Override
- public EObject createModelRoot(int version) {
- WebServicesResource res = getWscddXmiResource();
- res.setModuleVersionID(version);
- addWebServicesClientIfNecessary(res);
- return getWebServicesClient();
- }
- @Override
- public IModelProvider create(IProject project) {
- return getWSCDDArtifactEditForRead(project);
- }
-
- @Override
- public IModelProvider create(IVirtualComponent component) {
- return getWSCDDArtifactEditForRead(component);
- }
- @Override
- public void modify(Runnable runnable, IPath modelPath) {
- setWritableEdit(getWSCDDArtifactEditForWrite(getProject()));
- try{
- runnable.run();
- if( getWritableEdit() != null ){
- // Always save regardless of resource path passed - Artifactedits save resources as a unit
- getWritableEdit().saveIfNecessary( new NullProgressMonitor() );
- }
-
- } finally { //Properly dispose the write artifact edit
- getWritableEdit().dispose();
- setWritableEdit(null);
- }
- }
- @Override
- protected boolean validProjectVersion(IProject project2) {
- return true;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSDDArtifactEdit.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSDDArtifactEdit.java
deleted file mode 100644
index 29c5d1a49..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/componentcore/util/WSDDArtifactEdit.java
+++ /dev/null
@@ -1,522 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.componentcore.util;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceProxy;
-import org.eclipse.core.resources.IResourceProxyVisitor;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceExtManager;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddResource;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-import org.eclipse.wst.common.componentcore.UnresolveableURIException;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualResource;
-
-/**
- * <p>
- * WSDDArtifactEdit obtains a WS Deployment Descriptor metamodel specifec data
- * from a {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp; which stores the
- * metamodel. The {@see org.eclipse.jst.j2ee.ejb.EJBResource}&nbsp;is retrieved
- * from the {@see org.eclipse.wst.common.modulecore.ArtifactEditModel}&nbsp;using
- * a constant {@see J2EEConstants#EJBJAR_DD_URI_OBJ}. The defined methods
- * extract data or manipulate the contents of the underlying resource.
- * </p>
- */
-public class WSDDArtifactEdit extends EnterpriseArtifactEdit {
-
- /**
- * <p>
- * Identifier used to link WSDDArtifactEdit to a WsddAdapterFactory {@see
- * WsddAdapterFactory} stored in an AdapterManger (@see AdapterManager)
- * </p>
- */
-
- public static final Class ADAPTER_TYPE = WSDDArtifactEdit.class;
-
- public static final String WSIL_FILE_EXT = "wsil"; //$NON-NLS-1$
-
- public static final String WSDL_FILE_EXT = "wsdl"; //$NON-NLS-1$
-
- /**
- * @param aHandle
- * @param toAccessAsReadOnly
- * @throws IllegalArgumentException
- */
- public WSDDArtifactEdit(IProject aProject, boolean toAccessAsReadOnly) throws IllegalArgumentException {
- super(aProject, toAccessAsReadOnly);
- }
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}.
- * </p>
- *
- * @param anArtifactEditModel
- */
- public WSDDArtifactEdit(ArtifactEditModel model) {
- super(model);
- }
-
- /**
- * <p>
- * Creates an instance facade for the given {@see ArtifactEditModel}
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aNature
- * A non-null {@see ModuleCoreNature}for an accessible project
- * @param aModule
- * A non-null {@see WorkbenchComponent}pointing to a module from
- * the given {@see ModuleCoreNature}
- */
- public WSDDArtifactEdit(ModuleCoreNature aNature, IVirtualComponent aModule, boolean toAccessAsReadOnly) {
- super(aNature, aModule, toAccessAsReadOnly);
- }
-
- /**
- * @return WsddResource from (@link getDeploymentDescriptorResource())
- */
-
- public WsddResource getWsddXmiResource() {
- return (WsddResource) getDeploymentDescriptorResource();
- }
-
- /**
- * <p>
- * Retrieves J2EE version information from EJBResource.
- * </p>
- *
- * @return an integer representation of a J2EE Spec version
- */
-
- @Override
- public int getJ2EEVersion() {
- return getWsddXmiResource().getJ2EEVersionID();
- }
-
- /**
- * <p>
- * Retrieves the underlying resource from the ArtifactEditModel using
- * defined URI.
- * </p>
- *
- * @return Resource
- */
-
- @Override
- public Resource getDeploymentDescriptorResource() {
- return getArtifactEditModel().getResource(getWebServicesXmlResourceURI());
- }
-
- public static void createDeploymentDescriptor(IProject project, int version) {
- EnterpriseArtifactEdit wsDDEdit = new WSDDArtifactEdit(project, false);
- try {
- wsDDEdit.createModelRoot(version);
- wsDDEdit.save(null);
- } finally { // Make sure new resource is removed - the uri used for creation shouldn't be cached
- Resource newRes = wsDDEdit.getDeploymentDescriptorResource();
- WorkbenchResourceHelperBase.getResourceSet(project).getResources().remove(newRes);
- newRes.unload();
- wsDDEdit.dispose();
- }
- }
-
- public URI getWebServicesXmlResourceURI() {
-
- URI resourceURI = J2EEConstants.WEB_SERVICES_WEB_INF_DD_URI_OBJ;
- if (isValidAppClientModule(getComponent()))
- resourceURI = J2EEConstants.WEB_SERVICES_META_INF_DD_URI_OBJ;
- else if (isValidEJBModule(getComponent()))
- resourceURI = J2EEConstants.WEB_SERVICES_META_INF_DD_URI_OBJ;
- return resourceURI;
- }
-
- /**
- * @return WebServices from (@link getDeploymentDescriptorRoot())
- */
- public WebServices getWebServices() {
- if (!getProject().isAccessible())
- return null;
- if (getWsddXmiResource().getContents().isEmpty())
- return null;
- return (WebServices) getDeploymentDescriptorRoot();
- }
-
- /**
- * <p>
- * Obtains the WebServices (@see WebServices) root object from the
- * WsddResource. If the root object does not exist, then one is created
- * (@link addEJBJarIfNecessary(getEJBJarXmiResource())). The root object
- * contains all other resource defined objects.
- * </p>
- *
- * @return EObject
- */
- @Override
- public EObject getDeploymentDescriptorRoot() {
- List contents = getDeploymentDescriptorResource().getContents();
- if (contents.size() > 0)
- return (EObject) contents.get(0);
- addWebServicesIfNecessary(getWsddXmiResource());
- if (contents.isEmpty())
- return null;
- return (EObject) contents.get(0);
- }
-
- /**
- * <p>
- * Creates a deployment descriptor root object (WebServices) and populates
- * with data. Adds the root object to the deployment descriptor resource.
- * </p>
- * <p>
- *
- * @param aModule
- * A non-null pointing to a {@see XMLResource} Note: This method
- * is typically used for JUNIT - move?
- * </p>
- */
- protected void addWebServicesIfNecessary(WsddResource aResource) {
- if (aResource != null) {
- if (aResource.getContents() == null || aResource.getContents().isEmpty()) {
- WebServices ws = WsddFactory.eINSTANCE.createWebServices();
- aResource.getContents().add(ws);
- }
- aResource.getContents().get(0);
- getArtifactEditModel().getModuleURI();
- try {
- aResource.saveIfNecessary();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of ArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will not be used for editing.
- * Invocations of any save*() API on an instance returned from this method
- * will throw exceptions.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of ArtifactEdit that may only be used to read the
- * underlying content model
- */
- public static WSDDArtifactEdit getWSDDArtifactEditForRead(IProject aProject) {
- WSDDArtifactEdit artifactEdit = null;
- IVirtualComponent comp = ComponentCore.createComponent(aProject);
- if (comp != null && isValidWSDDModule(comp)) {
- try {
- artifactEdit = new WSDDArtifactEdit(aProject, true);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- }
- return artifactEdit;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of ArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an ArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will be used for editing.
- * </p>
- * <p>
- * <b>The following method may return null. </b>
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of ArtifactEdit that may be used to modify and
- * persist changes to the underlying content model
- */
- public static WSDDArtifactEdit getWSDDArtifactEditForWrite(IProject aProject) {
- WSDDArtifactEdit artifactEdit = null;
- IVirtualComponent comp = ComponentCore.createComponent(aProject);
- if (comp != null && isValidWSDDModule(comp)) {
- try {
- artifactEdit = new WSDDArtifactEdit(aProject, false);
- } catch (IllegalArgumentException iae) {
- artifactEdit = null;
- }
- }
- return artifactEdit;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of WSDDArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will not be used for editing.
- * Invocations of any save*() API on an instance returned from this method
- * will throw exceptions.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of WSDDArtifactEdit that may only be used to read the
- * underlying content model
- * @throws UnresolveableURIException
- * could not resolve uri.
- */
- public static WSDDArtifactEdit getWSDDArtifactEditForRead(IVirtualComponent aModule) {
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- if (isValidWSDDModule(aModule))
- return new WSDDArtifactEdit(nature, aModule, true);
- return null;
- }
-
- /**
- * <p>
- * Returns an instance facade to manage the underlying edit model for the
- * given {@see WorkbenchComponent}. Instances of EJBArtifactEdit that are
- * returned through this method must be {@see #dispose()}ed of when no
- * longer in use.
- * </p>
- * <p>
- * Use to acquire an WSDDArtifactEdit facade for a specific
- * {@see WorkbenchComponent}&nbsp;that will be used for editing.
- * </p>
- * <p>
- * <b>This method may return null. </b>
- * </p>
- * <p>
- * Note: This method is for internal use only. Clients should not call this
- * method.
- * </p>
- *
- * @param aModule
- * A valid {@see WorkbenchComponent}&nbsp;with a handle that
- * resolves to an accessible project in the workspace
- * @return An instance of WSDDArtifactEdit that may be used to modify and
- * persist changes to the underlying content model
- */
- public static WSDDArtifactEdit getWSDDArtifactEditForWrite(IVirtualComponent aModule) {
- IProject project = aModule.getProject();
- ModuleCoreNature nature = ModuleCoreNature.getModuleCoreNature(project);
- if (isValidWSDDModule(aModule))
- return new WSDDArtifactEdit(nature, aModule, false);
- return null;
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidEJBModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isEJBProject(aComponent.getProject());
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidWSDDModule(IVirtualComponent)}and the
- * moduleTypeId is a JST module
- */
- protected static boolean isValidWSDDModule(IVirtualComponent aComponent) {
- return (isValidAppClientModule(aComponent) || isValidWebModule(aComponent) || isValidEJBModule(aComponent));
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidWebModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isDynamicWebProject(aComponent.getProject());
- }
-
- /**
- * @param component
- * A {@see IVirtualComponent}
- * @return True if the supplied module
- * {@see ArtifactEdit#isValidEditableModule(IVirtualComponent)}and
- * the moduleTypeId is a JST module
- */
- public static boolean isValidAppClientModule(IVirtualComponent aComponent) {
- return JavaEEProjectUtilities.isApplicationClientProject(aComponent.getProject());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot()
- */
- @Override
- public EObject createModelRoot() {
- return createModelRoot(getJ2EEVersion());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.modulecore.util.EnterpriseArtifactEdit#createModelRoot(int)
- */
- @Override
- public EObject createModelRoot(int version) {
- WsddResource res = (WsddResource) getDeploymentDescriptorResource();
- res.setModuleVersionID(version);
- addWebServicesIfNecessary(res);
- return getWebServices();
- }
-
- @Override
- public EObject getContentModelRoot() {
- return getWebServices();
- }
-
- public List getWSILResources() {
- final List result = new ArrayList();
-
- try {
- getProject().accept(new IResourceProxyVisitor() {
-
- public boolean visit(IResourceProxy proxy) throws CoreException {
- if(proxy.getName().endsWith(WSIL_FILE_EXT)) {
- IResource file = proxy.requestResource();
- IVirtualResource[] vResources = ComponentCore.createResources(file);
- if (vResources.length > 0 && !result.contains(file))
- result.add(file);
- }
- return true;
- }
-
- }, IResource.NONE);
- } catch (CoreException e) {
- WebServicePlugin.logError(0, e.getMessage(), e);
- }
- return result;
- }
-
- public List getWSDLResources() {
- return getResources(WSDL_FILE_EXT);
- }
-
- private List getResources(String ext) {
- List resources = getArtifactEditModel().getResources();
- List result = new ArrayList();
- for (int i = 0; i < resources.size(); i++) {
- Resource res = (Resource) resources.get(i);
- if (res != null && res.getURI().fileExtension() != null && res.getURI().fileExtension().equals(ext))
- result.add(res);
- }
- return result;
- }
-
- /**
- * return the WSDLResource if it exists, otherwise return null
- */
- public Resource getWsdlResource(String path) {
- if (path == null || path.equals(""))return null; //$NON-NLS-1$
- Resource res = null;
- try {
- res = getArtifactEditModel().getResource(URI.createURI(path));
- } catch (Exception e) {
- // Ignore
- }
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- if (res != null && res.isLoaded() && serviceHelper != null && serviceHelper.isWSDLResource(res))
- return res;
- return null;
- }
- @Override
- public IModelProvider create(IProject project) {
- return getWSDDArtifactEditForRead(project);
- }
-
- @Override
- public IModelProvider create(IVirtualComponent component) {
- return getWSDDArtifactEditForRead(component);
- }
-
- // [182417] This ArtifactEdit works for all project versions, so just return true.
- @Override
- protected boolean validProjectVersion(IProject project) {
- return true;
- }
- @Override
- public void modify(Runnable runnable, IPath modelPath) {
- setWritableEdit(getWSDDArtifactEditForWrite(getProject()));
- try{
- runnable.run();
- if( getWritableEdit() != null ){
- // Always save regardless of resource path passed - Artifactedits save resources as a unit
- getWritableEdit().saveIfNecessary( new NullProgressMonitor() );
- }
-
- } finally { //Properly dispose the write artifact edit
- getWritableEdit().dispose();
- setWritableEdit(null);
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/ATKUIConstants.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/ATKUIConstants.java
deleted file mode 100644
index 010157860..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/ATKUIConstants.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.constants;
-
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.internal.util.QNameHelper;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-
-
-public class ATKUIConstants {
- // init-param
- public String defaultInitParamName() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_NAME")); //$NON-NLS-1$
- }
-
- public String defaultInitParamValue() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_VALUE")); //$NON-NLS-1$
- }
-
- public String defaultDescription() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_DESCRIPTION")); //$NON-NLS-1$
- }
-
- // QName
- private String DEFAULT_PREFIX = "pfx"; //$NON-NLS-1$
- private String DEFAULT_NAMESPACEURI = "NamespaceURI"; //$NON-NLS-1$
- private String DEFAULT_LOCALPART = "LocalPart"; //$NON-NLS-1$
-
- public String defaultPrefix() {
- return new String(DEFAULT_PREFIX);
- }
-
- public String defaultNamespaceURI() {
- return new String(DEFAULT_NAMESPACEURI);
- }
-
- public String defaultLocalPart() {
- return new String(DEFAULT_LOCALPART);
- }
-
- // soap role
- public String defaultSOAPRole() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_SOAP_ROLE")); //$NON-NLS-1$
- }
-
- // port name
- public String defaultPortName() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_PORT_NAME")); //$NON-NLS-1$
- }
-
- //port component
- public String defaultServiceEndpointInterface() {
- return new String("java.rmi.Remote"); //$NON-NLS-1$
- }
-
-
- // port component ref
- public JavaClass defaultClientServiceEndpointInterface() {
- return JavaRefFactory.eINSTANCE.createClassRef("java.rmi.Remote"); //$NON-NLS-1$
- }
-
- public String defaultPortComponentLink() {
- return new String(WebServicePlugin.getMessage("%LABEL_TABLE_PORT_COMPONENT_LINK")); //$NON-NLS-1$
- }
-
- // service-ref
- public ServiceRef defaultServiceRef() {
- ServiceRef serviceRef = Webservice_clientFactory.eINSTANCE.createServiceRef();
- serviceRef.setServiceRefName(defaultServiceRefName());
- serviceRef.setServiceInterface(defaultServiceInterface());
- return serviceRef;
- }
-
- public String defaultServiceRefName() {
- StringBuffer sb = new StringBuffer("service/"); //$NON-NLS-1$
- sb.append(WebServicePlugin.getMessage("%_UI_ServiceRef_type")); //$NON-NLS-1$
- return sb.toString();
- }
-
- public JavaClass defaultServiceInterface() {
- return JavaRefFactory.eINSTANCE.createClassRef("javax.xml.rpc.Service"); //$NON-NLS-1$
- }
-
- // port component name
- public String defaultPortComponentName() {
- return new String(WebServicePlugin.getMessage("%_UI_PortComponent_type")); //$NON-NLS-1$
- }
-
- // service impl bean
- public ServiceImplBean defaultServiceImplBean() {
- ServiceImplBean serviceImplBean = WsddFactory.eINSTANCE.createServiceImplBean();
- serviceImplBean.setEServletLink(defaultServletLink());
- return serviceImplBean;
- }
-
- // servlet link
- public ServletLink defaultServletLink() {
- ServletLink servletLink = WsddFactory.eINSTANCE.createServletLink();
- servletLink.setServletLink(WebServicePlugin.getMessage("%LABEL_SERVLET_LINK")); //$NON-NLS-1$
- return servletLink;
- }
-
- // WSDL port
- public WSDLPort defaultWSDLPort(int versionID) {
- WSDLPort wsdlport = WsddFactory.eINSTANCE.createWSDLPort();
- QNameHelper.setQNameValue(wsdlport, defaultNamespaceURI(), defaultLocalPart(), defaultPrefix(), versionID);
- return wsdlport;
- }
-
- // port component
- public PortComponent defaultPortComponent(int versionID) {
- PortComponent portComponent = WsddFactory.eINSTANCE.createPortComponent();
- portComponent.setPortComponentName(defaultPortComponentName());
- portComponent.setWsdlPort(defaultWSDLPort(versionID));
- portComponent.setServiceEndpointInterface(defaultServiceEndpointInterface());
- portComponent.setServiceImplBean(defaultServiceImplBean());
- return portComponent;
- }
-
- // JAX RPC mapping
- public String defaultJaxRpcMappingFile() {
- return new String("jaxrpcmapping.xml"); //$NON-NLS-1$
- }
-
- // component scoped reference
- public String defaultComponentName() {
- return new String(WebServicePlugin.getMessage("%_UI_PortComponentRef_type")); //$NON-NLS-1$
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/InfopopConstants.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/InfopopConstants.java
deleted file mode 100644
index f3fbbbcc6..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/constants/InfopopConstants.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.constants;
-
-
-public class InfopopConstants {
-
- public static final String PLUGIN_ID_DOC = "org.eclipse.jst.j2ee.internal.internal.webservice"; //$NON-NLS-1$
-
- /** *************************Infopops for pages************************ */
- public String getInfopopWebServicesPage() {
- return PLUGIN_ID_DOC + ".EJSRP0001"; //$NON-NLS-1$
- }
-
- public String getInfopopPortComponentPage() {
- return PLUGIN_ID_DOC + ".EJSRP0002"; //$NON-NLS-1$
- }
-
- public String getInfopopWSHandlerPage() {
- return PLUGIN_ID_DOC + ".EJSRP0003"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceRefPage() {
- return PLUGIN_ID_DOC + ".EJSRP0004"; //$NON-NLS-1$
- }
-
- public String getInfopopSRHandlerPage() {
- return PLUGIN_ID_DOC + ".EJSRP0005"; //$NON-NLS-1$
- }
-
-
-
- /** *************************Infopops for sections*********************** */
- public String getInfopopDescription() {
- /* CONTEXT_ID EJSR0001 for the description text field */
- return PLUGIN_ID_DOC + "EJSR0001"; //$NON-NLS-1$
- }
-
- public String getInfopopDisplayName() {
- /* CONTEXT_ID EJSR0002 for the display name text field */
- return PLUGIN_ID_DOC + "EJSR0002"; //$NON-NLS-1$
- }
-
- public String getInfopopSmallIcon() {
- /* CONTEXT_ID EJSR0003 for the small icon display */
- return PLUGIN_ID_DOC + "EJSR0003"; //$NON-NLS-1$
- }
-
- public String getInfopopLargeIcon() {
- /* CONTEXT_ID EJSR0004 for the large icon display */
- return PLUGIN_ID_DOC + "EJSR0004"; //$NON-NLS-1$
- }
-
- public String getInfopopWebServiceDescriptionName() {
- /* CONTEXT_ID EJSR0005 for the Web service description name text field */
- return PLUGIN_ID_DOC + "EJSR0005"; //$NON-NLS-1$
- }
-
- public String getInfopopWSDLFile() {
- /* CONTEXT_ID EJSR0006 for the WSDL file location text field */
- return PLUGIN_ID_DOC + "EJSR0006"; //$NON-NLS-1$
- }
-
- public String getInfopopJAXRPCMappingFile() {
- /* CONTEXT_ID EJSR0007 for the JAX-RPC mapping file location text field */
- return PLUGIN_ID_DOC + "EJSR0007"; //$NON-NLS-1$
- }
-
- public String getInfopopPortComponentName() {
- /* CONTEXT_ID EJSR0008 for the port component name text field */
- return PLUGIN_ID_DOC + "EJSR0008"; //$NON-NLS-1$
- }
-
- public String getInfopopWSDLPortNamespaceURI() {
- /* CONTEXT_ID EJSR0009 for the WSDL port namespace URI text field */
- return PLUGIN_ID_DOC + "EJSR0009"; //$NON-NLS-1$
- }
-
- public String getInfopopWSDLPortLocalpart() {
- /* CONTEXT_ID EJSR0010 for the WSDL port local part text field */
- return PLUGIN_ID_DOC + "EJSR0010"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceEndpointInterface() {
- /*
- * CONTEXT_ID EJSR0011 for the fully qualified service endpoint interface class name text
- * field
- */
- return PLUGIN_ID_DOC + "EJSR0011"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceImplBean() {
- /*
- * CONTEXT_ID EJSR0012 for the fully qualified service implementation bean class name text
- * field
- */
- return PLUGIN_ID_DOC + "EJSR0012"; //$NON-NLS-1$
- }
-
- public String getInfopopEJBLink() {
- /* CONTEXT_ID EJSR0013 for the use EJB link radio button */
- return PLUGIN_ID_DOC + "EJSR0013"; //$NON-NLS-1$
- }
-
- public String getInfopopServletLink() {
- /* CONTEXT_ID EJSR0014 for the use servlet link radio button */
- return PLUGIN_ID_DOC + "EJSR0014"; //$NON-NLS-1$
- }
-
- public String getInfopopHandlerName() {
- /* CONTEXT_ID EJSR0015 for the handler name text field */
- return PLUGIN_ID_DOC + "EJSR0015"; //$NON-NLS-1$
- }
-
- public String getInfopopHandlerClass() {
- /* CONTEXT_ID EJSR0016 for the fully qualified handler class name text field */
- return PLUGIN_ID_DOC + "EJSR0016"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceRefName() {
- /* CONTEXT_ID EJSR0017 for the service reference name text field */
- return PLUGIN_ID_DOC + "EJSR0017"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceInterfaceName() {
- /* CONTEXT_ID EJSR0018 for the service interface name text field */
- return PLUGIN_ID_DOC + "EJSR0018"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceQNameNamespaceURI() {
- /* CONTEXT_ID EJSR0019 for the service qname namspace URI text field */
- return PLUGIN_ID_DOC + "EJSR0019"; //$NON-NLS-1$
- }
-
- public String getInfopopServiceQNameLocalpart() {
- /* CONTEXT_ID EJSR0020 for the service qname local part text field */
- return PLUGIN_ID_DOC + "EJSR0020"; //$NON-NLS-1$
- }
-
- public String getInfopopComboWebServiceDescription() {
- /*
- * CONTEXT_ID EJSR0021 for the Web service description drop-down (list of Web service
- * descriptions)
- */
- return PLUGIN_ID_DOC + "EJSR0021"; //$NON-NLS-1$
- }
-
- public String getInfopopComboPortComponent() {
- /* CONTEXT_ID EJSR0022 for the port component drop-down (list of port components) */
- return PLUGIN_ID_DOC + "EJSR0022"; //$NON-NLS-1$
- }
-
- public String getInfopopComboComponentScopedRef() {
- /*
- * CONTEXT_ID EJSR0023 for the component scoped reference drop-down (list of component
- * scoped reference)
- */
- return PLUGIN_ID_DOC + "EJSR0023"; //$NON-NLS-1$
- }
-
- public String getInfopopComboServiceRef() {
- /* CONTEXT_ID EJSR0024 for the service reference drop-down (list of service references) */
- return PLUGIN_ID_DOC + "EJSR0024"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionWebServiceDescription() {
- /* CONTEXT_ID EJSR0025 for the Web service description section in the webservices.xml editor */
- return PLUGIN_ID_DOC + "EJSR0025"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionPortComponent() {
- /* CONTEXT_ID EJSR0026 for the port component section in the webservices.xml editor */
- return PLUGIN_ID_DOC + "EJSR0026"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionHandlerWS() {
- /* CONTEXT_ID EJSR0027 for the handler section in the webservices.xml editor */
- return PLUGIN_ID_DOC + "EJSR0027"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionComponentScopedRef() {
- /*
- * CONTEXT_ID EJSR0028 for the component scoped reference section in the
- * webservicesclient.xml editor
- */
- return PLUGIN_ID_DOC + "EJSR0028"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionServiceRef() {
- /* CONTEXT_ID EJSR0029 for the service reference section in the webservicesclient.xml editor */
- return PLUGIN_ID_DOC + "EJSR0029"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionPortComponentRef() {
- /*
- * CONTEXT_ID EJSR0030 for the port component reference section in the webservicesclient.xml
- * editor
- */
- return PLUGIN_ID_DOC + "EJSR0030"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionHandlerWSC() {
- /* CONTEXT_ID EJSR0031 for the handler section in the webservicesclient.xml editor */
- return PLUGIN_ID_DOC + "EJSR0031"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionInitParams() {
- /*
- * CONTEXT_ID EJSR0032 for the initial parameter section in both webservices.xml and
- * webservicesclient.xml editor
- */
- return PLUGIN_ID_DOC + "EJSR0032"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionSOAPHeaders() {
- /*
- * CONTEXT_ID EJSR0033 for the SOAP header section in both webservices.xml and
- * webservicesclient.xml editor
- */
- return PLUGIN_ID_DOC + "EJSR0033"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionSOAPRoles() {
- /*
- * CONTEXT_ID EJSR0034 for the SOAP role section in both webservices.xml and
- * webservicesclient.xml editor
- */
- return PLUGIN_ID_DOC + "EJSR0034"; //$NON-NLS-1$
- }
-
- public String getInfopopSectionPortNames() {
- /* CONTEXT_ID EJSR0035 for the port name section in the webservicesclient.xml editor */
- return PLUGIN_ID_DOC + "EJSR0035"; //$NON-NLS-1$
- }
-
- public String getInfopopResourceTree() {
- /*
- * CONTEXT_ID EJSR0036 for the popup dialog that allows the user to select a resource in the
- * workbench
- */
- return PLUGIN_ID_DOC + "EJSR0036"; //$NON-NLS-1$
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLHelper.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLHelper.java
deleted file mode 100644
index d05b17c1a..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLHelper.java
+++ /dev/null
@@ -1,358 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-import java.net.MalformedURLException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceExtManager;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper;
-import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-
-/**
- * This class contains methods to help navigate WSDL files provided in various JSR-109 descriptors
- */
-public class WSDLHelper {
-
- private IProject proj;
-
- public WSDLHelper(IProject aProject) {
- this.proj = aProject;
- }
-
- /**
- * This method returns the list of wsdl:port@name's contained in the WSDL file referred to by
- * the specified <service-ref>
- *
- * @param serviceRefName
- * The name of the <service-ref>
- * @param compScopedRefName
- * The name of the <component-scoped-refs>
- * @param wsc
- * The root object of the webservicesclient.xml descriptor
- * @param exclude
- * port names to exclude in the returned array
- * @return String[] An array of wsdl:port@names's. null is returned if there are any problems
- * with navigating the webservicesclient.xml or the WSDL.
- */
- public String[] getPortNames(String serviceRefName, String compScopedRefName, WebServicesClient wsc, String[] exclude) {
- ServiceRef sr = getServiceRef(serviceRefName, compScopedRefName, wsc);
- if (sr == null)
- return null;
-
- String wsdlURL = getWSDLFileURL(sr);
- if (wsdlURL.length() == 0)
- return null;
-
- String serviceLocalName = getServiceQname(sr);
- String[] portNames = getPortNames(wsdlURL, serviceLocalName);
- portNames = trim(portNames, exclude);
- return portNames;
-
- }
-
- /**
- * This method returns the namespace of the wsdl:service in WSDL file referred to by the
- * specified <service-ref>
- *
- * @param serviceRefName
- * The name of the <service-ref>
- * @param compScopedRefName
- * The name of the <component-scoped-refs>
- * @param wsc
- * The root object of the webservicesclient.xml descriptor
- * @param exclude
- * port names to exclude in the returned array
- * @return String The namespace of the wsdl:service. null is returned if there are any problems
- * with navigating the webservicesclient.xml or the WSDL.
- */
- public String getPortNamespace(String serviceRefName, String compScopedRefName, WebServicesClient wsc) {
- ServiceRef sr = getServiceRef(serviceRefName, compScopedRefName, wsc);
- if (sr == null)
- return null;
-
- String wsdlURL = getWSDLFileURL(sr);
- if (wsdlURL.length() == 0)
- return ""; //$NON-NLS-1$
-
- String serviceLocalName = getServiceQname(sr);
- String namespace = getPortNamespace(wsdlURL, serviceLocalName);
- return namespace;
- }
-
- /**
- * This method returns the list of wsdl:port@name's contained in the specified wsdl:service in
- * the specified WSDL file.
- *
- * @param wsdlURL
- * The URL of the WSDL file.
- * @param serviceLocalName
- * The local name of the wsdl:service to look in.
- * @return String[] An array of wsdl:port@name's. Null is returned a wsdl:service with the
- * specified local name could not be found.
- */
- private String[] getPortNames(String wsdlURL, String serviceLocalName) {
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- Object targetService = getTargetService(wsdlURL, serviceLocalName);
-
- if (targetService == null) {
- //System.out.println("getPortNames ... targetService null.");
- return null;
- }
-
- Map ports = serviceHelper.getServicePorts(targetService);
- int numberOfPorts = ports.size();
- String[] portNames = new String[numberOfPorts];
- Iterator k = ports.values().iterator();
- for (int m = 0; m < numberOfPorts; m++) {
- Object port = k.next();
- portNames[m] = serviceHelper.getPortName(port);
- }
-
- return portNames;
- }
-
- /**
- * This method returns the namespace of the specified wsdl:service in the specified WSDL file.
- *
- * @param wsdlURL
- * The URL of the WSDL file.
- * @param serviceLocalName
- * The local name of the wsdl:service to look in.
- * @return String[] An array of wsdl:port@name's. An empty String is returned if a wsdl:service
- * with the specified local name could not be found.
- */
- private String getPortNamespace(String wsdlURL, String serviceLocalName) {
- Object targetService = getTargetService(wsdlURL, serviceLocalName);
-
- if (targetService == null) {
- //System.out.println("getPortNamespace ... targetService null.");
- return ""; //$NON-NLS-1$
- }
-
- return WSDLServiceExtManager.getServiceHelper().getServiceNamespaceURI(targetService);
- }
-
- private Object getTargetService(String wsdlURL, String serviceLocalName) {
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- Object definition = getWSDLDefinition(wsdlURL);
- if (definition == null) {
- return null;
- }
-
- Object targetService = null;
- Map services = serviceHelper.getDefinitionServices(definition);
- if (!services.isEmpty()) {
- if ((serviceLocalName == null || serviceLocalName.length() == 0) && services.size() > 1) //Multiple
- // services
- // without
- // one
- // designated
- // is
- // an
- // error
- {
- return null;
- }
-
- if ((serviceLocalName == null || serviceLocalName.length() == 0) && services.size() == 1) {
- //Return the port names in the one service
- Iterator i = services.values().iterator();
- targetService = i.next();
- } else //There are multiple services but one is designated
- {
- Iterator j = services.values().iterator();
- while (j.hasNext()) {
- Object service = j.next();
- String serviceName = serviceHelper.getServiceLocalPart(service);
- if (serviceName.equals(serviceLocalName)) {
- targetService = service;
- break; //Found a match. Break out of loop. We must be assuming unique names
- // on services.
- }
- }
- }
- }
-
- return targetService;
-
- }
-
-
- private Object getWSDLDefinition(String wsdlURL) {
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- return serviceHelper.getWSDLDefinition(wsdlURL);
-
- /*try {
- WSDLResourceImpl res = (WSDLResourceImpl) WorkbenchResourceHelperBase.getResource(URI.createURI(wsdlURL), true);
- if (res == null)
- return null;
- return res.getDefinition();
- } catch (Exception wsdle) {
- return null;
- }*/
- }
-
- /**
- * Returns the file URL of the <wsdl-file>specified in the given <service-ref>. Returns a blank
- * String if <wsdl-file>is not specified in the provided <service-ref>
- */
- private String getWSDLFileURL(ServiceRef sr) {
- String wsdlFileRelPath = sr.getWsdlFile();
- if (wsdlFileRelPath == null || wsdlFileRelPath.length() == 0)
- return ""; //$NON-NLS-1$
-
- // Get a handle on the WSDL file.
- IVirtualComponent component = ComponentCore.createComponent(proj);
- if (component != null) {
- IVirtualFolder moduleRoot = component.getRootFolder().getFolder("/"); //$NON-NLS-1$
- IFile wsdlFile = moduleRoot.getFile(wsdlFileRelPath).getUnderlyingFile();
- if (!wsdlFile.exists()) {
- return ""; //$NON-NLS-1$
- }
- //Get the fileURL from wsdlFile
- String wsdlURL;
- try {
- wsdlURL = wsdlFile.getLocation().toFile().toURL().toString();
- } catch (MalformedURLException murle) {
- return ""; //$NON-NLS-1$
- }
-
- if (wsdlURL == null || wsdlURL.length() == 0)
- return ""; //$NON-NLS-1$
- return wsdlURL;
- }
- return ""; //$NON-NLS-1$
- }
-
- /**
- * Returns the local part of the <service-qname>specified in the given <service-ref>. Returns a
- * blank String if <service-qname>is not specified in the provided <service-ref>
- */
- private String getServiceQname(ServiceRef sr) {
- QName serviceQname = sr.getServiceQname();
- if (serviceQname == null)
- return ""; //$NON-NLS-1$
-
- String serviceLocalName = serviceQname.getLocalPart();
- if (serviceLocalName == null)
- return ""; //$NON-NLS-1$
-
- return serviceLocalName;
- }
-
- /* If compScopedRefName is empty or null, we may have to check all of them. */
- public ServiceRef getServiceRef(String name, String compScopedRefName, WebServicesClient wsc) {
- Iterator serviceRefs;
- if (compScopedRefName != null && compScopedRefName.length() > 0) {
- ComponentScopedRefs csr = getCompScopedRef(compScopedRefName, wsc);
- serviceRefs = csr.getServiceRefs().iterator();
- } else {
- serviceRefs = wsc.getServiceRefs().iterator();
- //If there are no service refs ... check all component-scoped-refs for the service-ref
- if (!serviceRefs.hasNext()) {
- Iterator csRefs = wsc.getComponentScopedRefs().iterator();
-
- while (csRefs.hasNext()) {
- ComponentScopedRefs csr = (ComponentScopedRefs) csRefs.next();
- Iterator srs = csr.getServiceRefs().iterator();
- while (srs.hasNext()) {
- ServiceRef sr = (ServiceRef) srs.next();
- String thisName = sr.getServiceRefName();
- if (thisName.equals(name)) {
- return sr;
- }
- }
- }
-
- return null; //Could not find it in any of the component-scoped-refs
- }
-
- }
-
- while (serviceRefs.hasNext()) {
- ServiceRef serviceRef = (ServiceRef) serviceRefs.next();
- String serviceRefName = serviceRef.getServiceRefName();
- if (serviceRefName.equals(name))
- return serviceRef;
- }
- return null;
- }
-
-
- private ComponentScopedRefs getCompScopedRef(String name, WebServicesClient wsc) {
- Iterator compScopedRefs = wsc.getComponentScopedRefs().iterator();
- while (compScopedRefs.hasNext()) {
- ComponentScopedRefs compScopedRef = (ComponentScopedRefs) compScopedRefs.next();
- String compScopedRefName = compScopedRef.getComponentName();
- if (compScopedRefName.equals(name))
- return compScopedRef;
- }
- return null;
-
- }
-
-
- private String[] trim(String[] values, String[] exclude) {
- if (values == null || values.length == 0 || exclude == null || exclude.length == 0) //no
- // change
- // required.
- // return
- // as
- // is.
- return values;
-
- String[] finalValues;
- ArrayList finalList = new ArrayList();
- for (int i = 0; i < values.length; i++) {
- if (!contains(exclude, values[i])) {
- finalList.add(values[i]);
- }
- }
-
- int finalSize = finalList.size();
- finalValues = new String[finalSize];
- Object[] finalArray = finalList.toArray();
- for (int j = 0; j < finalSize; j++) {
- finalValues[j] = (String) (finalArray[j]);
- }
-
- return finalValues;
-
- }
-
- /**
- * Returns true if the array of String's contains the specified String. False otherwise.
- */
- private boolean contains(String[] values, String s) {
- if (values == null)
- return false;
-
- for (int i = 0; i < values.length; i++) {
- if (values[i].equals(s))
- return true;
- }
-
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLServiceHelperImpl.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLServiceHelperImpl.java
deleted file mode 100644
index df42d7c8b..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WSDLServiceHelperImpl.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Feb 21, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.wst.ws.internal.parser.wsil.WebServiceEntity;
-import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser;
-import org.eclipse.wst.wsdl.Definition;
-import org.eclipse.wst.wsdl.Port;
-import org.eclipse.wst.wsdl.Service;
-import org.eclipse.wst.wsdl.util.WSDLResourceImpl;
-
-/**
- * @author cbridgha
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class WSDLServiceHelperImpl implements WSDLServiceHelper {
-
- /**
- *
- */
- public WSDLServiceHelperImpl() {
- super();
- }
-
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getPortName(java.lang.Object)
- */
- public String getPortName(Object port) {
- Port aPort = (Port)port;
- return aPort.getName();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getServicePorts(java.lang.Object)
- */
- public Map getServicePorts(Object aService) {
- Service service =(Service)aService;
- return service.getPorts();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getServiceNamespaceURI(java.lang.Object)
- */
- public String getServiceNamespaceURI(Object aService) {
- Service service =(Service)aService;
- return service.getQName().getNamespaceURI();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getServiceDefinitionLocation(org.eclipse.emf.ecore.EObject)
- */
- public Object getServiceDefinitionLocation(EObject aService) {
- Service service =(Service)aService;
- return service.getEnclosingDefinition().getLocation();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getPortBindingNamespaceURI(java.lang.Object)
- */
- public String getPortBindingNamespaceURI(Object aPort) {
- Port port = (Port)aPort;
- return port.getBinding().getQName().getNamespaceURI();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getServiceLocalPart(java.lang.Object)
- */
- public String getServiceLocalPart(Object aService) {
- Service service =(Service)aService;
- return service.getQName().getLocalPart();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getServiceQName(java.lang.Object)
- */
- public Object getServiceQName(Object aService) {
- Service service =(Service)aService;
- return service.getQName();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getDefinitionServices(java.lang.Object)
- */
- public Map getDefinitionServices(Object aDefinition) {
- Definition definition =(Definition)aDefinition;
- return definition.getServices();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getWSDLDefinition(java.lang.String)
- */
- public Object getWSDLDefinition(String wsdlURL) {
- try {
- WSDLResourceImpl res = (WSDLResourceImpl) WorkbenchResourceHelperBase.getResource(URI.createURI(wsdlURL), true);
- if (res == null)
- return null;
- return res.getDefinition();
- } catch (Exception wsdle) {
- return null;
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getWSDLDefinition(org.eclipse.emf.ecore.resource.Resource)
- */
- public Object getWSDLDefinition(Resource wsdlResource) {
- return ((WSDLResourceImpl)wsdlResource).getDefinition();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper#getWsdlServicesFromWsilFile(org.eclipse.core.resources.IFile)
- */
- public List getWsdlServicesFromWsilFile(IFile wsil) {
- List result = new ArrayList();
- WebServiceEntity entity = parseWsilFile(wsil);
- if (entity != null && entity.getType() == WebServiceEntity.TYPE_WSIL) {
- // get all the WSDL references from the WSIL entity
- List wsdlList = entity.getChildren();
- for (Iterator it = wsdlList.iterator(); it.hasNext();) {
- Object item = it.next();
- if (item != null && item instanceof WebServiceEntity) {
- if (((WebServiceEntity) item).getModel() != null && ((WebServiceEntity) item).getModel() instanceof Definition) {
- Definition def = (Definition) ((WebServiceEntity) item).getModel();
- if (def != null && !def.getServices().isEmpty())
- result.addAll(def.getServices().values());
- }
- }
- }
- }
- return result;
- }
- public WebServiceEntity parseWsilFile(IFile wsil) {
- WebServicesParser parser = null;
- String url = null;
- // verify proper input
- if (wsil == null || !wsil.getFileExtension().equals(WSIL_EXT))
- return null;
- // Parse wsil file to get wsdl services
- try {
- url = wsil.getLocation().toFile().toURL().toString();
- parser = new WebServicesParser(url);
- parser.parse(WebServicesParser.PARSE_WSIL | WebServicesParser.PARSE_WSDL);
- } catch (Exception e) {
- //Ignore
- }
- if (parser == null)
- return null;
- return parser.getWebServiceEntityByURI(url);
-}
-
- public boolean isService(Object aService) {
-
- return aService instanceof Service;
- }
- public boolean isWSDLResource(Object aResource) {
-
- return aResource instanceof WSDLResourceImpl;
- }
- public boolean isDefinition(Object aDefinition) {
-
- return aDefinition instanceof Definition;
- }
-
-
- public List get13ServiceRefs(EObject j2eeObject) {
- if (j2eeObject instanceof ApplicationClient)
- return WebServicesManager.getInstance().get13ServiceRefs((ApplicationClient)j2eeObject);
- else if (j2eeObject instanceof EnterpriseBean)
- return WebServicesManager.getInstance().get13ServiceRefs((EnterpriseBean)j2eeObject);
- else if (j2eeObject instanceof WebApp)
- return WebServicesManager.getInstance().get13ServiceRefs((WebApp)j2eeObject);
- else
- return Collections.EMPTY_LIST;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceEvent.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceEvent.java
deleted file mode 100644
index da533387d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceEvent.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2006 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-public class WebServiceEvent {
-
- public static final int REFRESH = 1;
- public static final int REMOVE = 0;
-
- private int eventType = 0;
-
- public WebServiceEvent(int anEventType) {
- super();
- eventType = anEventType;
- }
-
- public int getEventType() {
- return eventType;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerListener.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerListener.java
deleted file mode 100644
index e1dcaee55..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerListener.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-public interface WebServiceManagerListener {
-
- public void webServiceManagerChanged(WebServiceEvent anEvent);
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerNLS.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerNLS.java
deleted file mode 100644
index 5b0ad0cd9..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServiceManagerNLS.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-import org.eclipse.osgi.util.NLS;
-
-public class WebServiceManagerNLS extends NLS {
-
- public static final String BUNDLE_NAME = "org.eclipse.jst.j2ee.internal.webservice.helper.messages"; //$NON-NLS-1$
- public static String WebServicesManager_Loading_Webservice_;
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, WebServiceManagerNLS.class);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java
deleted file mode 100644
index 54649e948..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java
+++ /dev/null
@@ -1,1070 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Feb 9, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-
-
-
-package org.eclipse.jst.j2ee.internal.webservice.helper;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.IResourceChangeListener;
-import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.resources.IResourceDeltaVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.jst.j2ee.client.ApplicationClientResource;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.EJBResource;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.webservice.componentcore.util.WSCDDArtifactEdit;
-import org.eclipse.jst.j2ee.internal.webservice.componentcore.util.WSDDArtifactEdit;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceExtManager;
-import org.eclipse.jst.j2ee.internal.webservices.WSDLServiceHelper;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebAppResource;
-import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesResource;
-import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddResource;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualResource;
-import org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-/**
- * Internal API class
- *
- * This utility class is meant to aid in managing webservice(jsr109) metadata related to Java EE 1.4 or earlier, and will not be upgraded beyond this release.
- * The WTP webservices team has duplicate public api for gathering serviceRef's etc.
- *
- * Marking as @frozen to support <= Java EE 1.4
- *
- */
-public class WebServicesManager implements EditModelListener, IResourceChangeListener, IResourceDeltaVisitor {
-
- private HashMap wsArtifactEdits = new HashMap();
- private HashMap wsClientArtifactEdits = new HashMap();
- private List wsArtifactEditsList;
- private List wsClientArtifactEditsList;
- private static WebServicesManager INSTANCE = null;
- private List listeners;
- private List removedListeners = new ArrayList();
- private boolean isNotifying = false;
- private boolean wsClientElementsChanged = true;
- private boolean wsElementsChanged = true;
- private ProcessProjectsWithWSDL processNewProjects;
-
- public static final String WSDL_EXT = "wsdl"; //$NON-NLS-1$
- public static final String WSIL_EXT = "wsil"; //$NON-NLS-1$
-
- public synchronized static WebServicesManager getInstance() {
- if (INSTANCE == null)
- INSTANCE = new WebServicesManager();
- return INSTANCE;
- }
-
- public static boolean isFileInteresting(IFile aFile) {
- if (aFile != null && aFile.getFileExtension() != null) {
- String extension = aFile.getFileExtension();
- return extension.equals(WSDL_EXT) || extension.equals(WSIL_EXT)
- || aFile.getName().equals(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME)
- || aFile.getName().equals(J2EEConstants.WEB_SERVICES_DD_URI);
- }
- return false;
- }
- /**
- * Default Constructor
- */
- public WebServicesManager() {
- super();
- init();
- }
-
- private void init() {
- collectArtifactEdits();
- ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
- }
-
- private void addArtifactEdit(IProject handle) {
- synchronized(wsArtifactEdits) {
- if (!wsArtifactEdits.containsKey(handle)) {
- WSDDArtifactEdit edit = WSDDArtifactEdit.getWSDDArtifactEditForRead(handle);
- if (edit != null) {
- WebServices webServices = edit.getWebServices();
- // If the project has a webservice.xml with internal services or
- // it has .wsil files with external services, we cache the artifact edit
- if ((webServices != null && !webServices.getWebServiceDescriptions().isEmpty()) || !edit.getWSILResources().isEmpty()) {
- edit.addListener(this);
- wsArtifactEdits.put(handle, edit);
- wsElementsChanged = true;
- // Otherwise, dispose the artifact edit
- } else {
- edit.dispose();
- }
- }
- }
- }
- synchronized (wsClientArtifactEdits) {
- if (!wsClientArtifactEdits.containsKey(handle)) {
- WSCDDArtifactEdit edit = WSCDDArtifactEdit.getWSCDDArtifactEditForRead(handle);
- if (edit != null) {
- WebServicesResource res = edit.getWscddXmiResource();
- boolean isInterested = false;
- // Does the project have 1.3 web service clients?
- if (res != null && res.isLoaded() && res.getWebServicesClient() != null)
- isInterested = true;
-
- // Does the project have 1.4 web service clients?
- List wsClientEdits = new ArrayList();
- wsClientEdits.add(edit);
- //if (!getWorkspace14ServiceRefs(wsClientEdits).isEmpty())
- isInterested = true;
-
- // If project has 1.3 or 1.4 web service clients, cache the artifact edit
- if (isInterested) {
- edit.addListener(this);
- wsClientArtifactEdits.put(handle, edit);
- wsClientElementsChanged = true;
- // Otherwise, dispose the artifact edit
- } else {
- edit.dispose();
- }
- }
- }
- }
- }
-
- private void removeArtifactEdit(IProject handle) {
- synchronized(wsArtifactEdits) {
- if (wsArtifactEdits.containsKey(handle)) {
- ArtifactEdit edit = (ArtifactEdit) wsArtifactEdits.get(handle);
- if (edit != null) {
- wsArtifactEdits.remove(handle);
- edit.removeListener(this);
- edit.dispose();
- wsElementsChanged = true;
- }
- }
- }
- synchronized (wsClientArtifactEdits) {
- if (wsClientArtifactEdits.containsKey(handle)) {
- ArtifactEdit edit = (ArtifactEdit) wsClientArtifactEdits.get(handle);
- if (edit != null) {
- wsClientArtifactEdits.remove(handle);
- edit.removeListener(this);
- edit.dispose();
- wsClientElementsChanged = true;
- }
- }
- }
- }
-
- private void collectArtifactEdits() {
- IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
- for (int i = 0; i < projects.length; i++) {
- IProject project = projects[i];
- IVirtualComponent component = ComponentCore.createComponent(project);
- try {
- if (!ModuleCoreNature.isFlexibleProject(project) || JavaEEProjectUtilities.isEARProject(project) || JavaEEProjectUtilities.isStaticWebProject(project))
- continue;
- } catch (Exception e) {
- continue;
- }
- addArtifactEdit(component.getProject());
- }
- }
-
- /**
- * @return Returns the artifact edit iterator for web service artifact edits
- */
- private List getWSArtifactEdits() {
- synchronized (wsArtifactEdits) {
- if (wsElementsChanged) {
- wsArtifactEditsList = new ArrayList();
- wsArtifactEditsList.addAll(wsArtifactEdits.values());
- wsElementsChanged = false;
- }
- }
- return wsArtifactEditsList;
- }
-
- /**
- * @return Returns the editModels.
- */
- private List getWSClientArtifactEdits() {
- synchronized (wsClientArtifactEdits) {
- if (wsClientElementsChanged) {
- wsClientArtifactEditsList = new ArrayList();
- wsClientArtifactEditsList.addAll(wsClientArtifactEdits.values());
- wsClientElementsChanged = false;
- }
- }
- return wsClientArtifactEditsList;
- }
-
- private List getListeners() {
- if (listeners == null)
- listeners = new ArrayList();
- return listeners;
- }
-
- /**
- * Add aListener to the list of listeners.
- */
- public void addListener(WebServiceManagerListener aListener) {
- if (aListener != null && !getListeners().contains(aListener))
- getListeners().add(aListener);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener#editModelChanged(org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent)
- */
- public void editModelChanged(EditModelEvent anEvent) {
- if (anEvent == null)
- return;
- if (anEvent.getEventCode()==EditModelEvent.UNLOADED_RESOURCE) {
- List resources = anEvent.getChangedResources();
- for (int i=0; i<resources.size(); i++) {
- Resource res = (Resource) resources.get(i);
- if (isInterestedInResource(res))
- notifyListeners(anEvent.getEventCode());
- }
- }
- else if (anEvent.getEventCode() == EditModelEvent.PRE_DISPOSE) {
- ArtifactEditModel editModel = (ArtifactEditModel) anEvent.getEditModel();
- if (editModel == null || editModel.getProject() == null)
- return;
- removeArtifactEdit(editModel.getProject());
- notifyListeners(anEvent.getEventCode());
- }
- }
-
-
- /**
- * Notify listeners of
- *
- * @anEvent.
- */
- protected void notifyListeners(int anEventType) {
- if (listeners == null)
- return;
- synchronized (this) {
- isNotifying = true;
- }
- try {
- WebServiceEvent webServiceEvent = null;
-
- switch (anEventType) {
- case EditModelEvent.UNLOADED_RESOURCE:
- case EditModelEvent.PRE_DISPOSE:
- case EditModelEvent.REMOVED_RESOURCE:
- webServiceEvent = new WebServiceEvent(WebServiceEvent.REMOVE);
- break;
- default:
- if (!getAllWorkspaceServiceRefs().isEmpty() || !getAllWSDLServices().isEmpty())
- webServiceEvent = new WebServiceEvent(WebServiceEvent.REFRESH);
- }
- List list = getListeners();
- if (webServiceEvent!=null) {
- for (int i = 0; i < list.size(); i++) {
- ((WebServiceManagerListener) list.get(i)).webServiceManagerChanged(webServiceEvent);
- }
- }
- } finally {
- synchronized (this) {
- isNotifying = false;
- if (removedListeners != null && !removedListeners.isEmpty()) {
- for (int i = 0; i < removedListeners.size(); i++)
- listeners.remove(removedListeners.get(i));
- removedListeners.clear();
- }
- }
- }
- }
-
- /**
- * Remove aListener from the list of listeners.
- */
- public synchronized boolean removeListener(WebServiceManagerListener aListener) {
- if (aListener != null) {
- if (isNotifying)
- return removedListeners.add(aListener);
- return getListeners().remove(aListener);
- }
- return false;
- }
-
- private void releaseArtifactEdits() {
- synchronized (wsArtifactEdits) {
- Iterator iter = wsArtifactEdits.values().iterator();
- while (iter.hasNext()) {
- WSDDArtifactEdit artifactEdit = (WSDDArtifactEdit) iter.next();
- artifactEdit.removeListener(this);
- artifactEdit.dispose();
- }
- wsArtifactEdits.clear();
- }
-
- synchronized (wsClientArtifactEdits) {
- Iterator iter = wsClientArtifactEdits.values().iterator();
- while (iter.hasNext()) {
- WSCDDArtifactEdit artifactEdit = (WSCDDArtifactEdit) iter.next();
- artifactEdit.removeListener(this);
- artifactEdit.dispose();
- }
- wsClientArtifactEdits.clear();
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)
- */
- public void resourceChanged(IResourceChangeEvent event) {
- acceptDelta(event);
- }
-
-
- protected void acceptDelta(IResourceChangeEvent event) {
- IResourceDelta delta = event.getDelta();
- // search for changes to any projects using a visitor
- if (delta != null) {
- try {
- delta.accept(this);
-
- } catch (Exception e) {
- Logger.getLogger().logError(e);
- }
- }
- }
-
- /**
- * returns a list of internal web services descriptions in the workspace
- */
- public List getInternalWebServicesDescriptions() {
- List result = new ArrayList();
- List webServices = getInternalWebServices();
- for (int i = 0; i < webServices.size(); i++) {
- WebServices webService = (WebServices) webServices.get(i);
- if (webService != null)
- result.addAll(webService.getWebServiceDescriptions());
- }
- return result;
- }
-
- /**
- * @return all internal web services instances in workspace
- */
- public List getInternalWebServices() {
- List result = new ArrayList();
- Iterator iter = getWSArtifactEdits().iterator();
- while (iter.hasNext()) {
- WSDDArtifactEdit artifactEdit = (WSDDArtifactEdit) iter.next();
- WebServices webServices = artifactEdit.getWebServices();
- if (webServices != null)
- result.add(webServices);
- }
- return result;
- }
-
- /**
- * returns a list of all the internal wsdl services in wsdl's pointed to by wsdd's
- */
- public List getInternalWSDLServices() {
- return getWSDLServicesFromWSDLResources(getInternalWSDLResources());
- }
-
- public List getInternalWSDLResources() {
- List result = new ArrayList();
- List wsddWebServices = getInternalWebServicesDescriptions();
- for (int i = 0; i < wsddWebServices.size(); i++) {
- WebServiceDescription webServices = (WebServiceDescription) wsddWebServices.get(i);
- Resource wsdl = getWSDLResource(webServices);
- if (wsdl != null && !result.contains(wsdl))
- result.add(wsdl);
- }
- return result;
- }
-
- public List getExternalWSDLResources() {
- //TODO fix up for basis off .wsil
- List result = getWorkspaceWSDLResources();
- result.removeAll(getInternalWSDLResources());
- List serviceRefs = getAllWorkspaceServiceRefs();
- for (int i=0; i<serviceRefs.size(); i++) {
- ServiceRef ref = (ServiceRef) serviceRefs.get(i);
- try {
- Resource res = WorkbenchResourceHelperBase.getResource(URI.createURI(ref.getWsdlFile()), true);
- if (res !=null && result.contains(res))
- result.remove(res);
- } catch (Exception e) {
- //Ignore
- }
- }
- return result;
- }
-
- public boolean isServiceInternal(EObject service) {
- return getInternalWSDLResources().contains(getWSDLResource(service));
- }
-
- private List getWSDLServicesFromWSDLResources(List wsdlResources) {
- List result = new ArrayList();
- for (int i = 0; i < wsdlResources.size(); i++) {
- Resource wsdl = (Resource) wsdlResources.get(i);
- List services = getWSDLServices(wsdl);
- if (wsdl != null && services != null && !services.isEmpty())
- result.addAll(services);
- }
- return result;
- }
-
- public List getExternalWSDLServices() {
- List result = getWsdlServicesFromWorkspaceWSILs();
- result.removeAll(getInternalWSDLServices());
- return result;
- }
-
- public List getWsdlServicesFromWorkspaceWSILs() {
- List result = new ArrayList();
- List wsilFiles = getWorkspaceWSILFiles();
- for (int i = 0; i < wsilFiles.size(); i++) {
- IFile wsil = (IFile) wsilFiles.get(i);
- List services = getWsdlServicesFromWsilFile(wsil);
- if (!services.isEmpty())
- result.addAll(services);
- }
- return result;
- }
-
- public List getWsdlServicesFromWsilFile(IFile wsil) {
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- return serviceHelper.getWsdlServicesFromWsilFile(wsil);
- }
-
- /**
- * Returns all WSDL Services, both internal and external
- */
- public List getAllWSDLServices() {
- List result = new ArrayList();
- result.addAll(getInternalWSDLServices());
- result.addAll(getExternalWSDLServices());
- return result;
- }
-
- protected void dispose() {
- ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
- releaseArtifactEdits();
- INSTANCE = null;
- }
-
- public Resource getWSDLResource(WebServiceDescription webService) {
- if (webService == null)
- return null;
- String wsdlFileName = webService.getWsdlFile();
- Resource res = null;
- IVirtualResource[] resources = ComponentCore.createResources(WorkbenchResourceHelper.getFile(webService));
- if (resources == null || resources.length==0) return res;
- WSDDArtifactEdit artifactEdit = getExistingWSDDArtifactEdit(resources[0].getComponent().getProject());
- if (artifactEdit!=null)
- res = artifactEdit.getWsdlResource(wsdlFileName);
- return res;
- }
-
- private WSDDArtifactEdit getExistingWSDDArtifactEdit(IProject project) {
- List wsEdits = getWSArtifactEdits();
- for (int i=0; i<wsEdits.size(); i++) {
- WSDDArtifactEdit edit = (WSDDArtifactEdit) wsEdits.get(i);
- if (edit !=null && edit.getProject()!= null && edit.getProject().equals(project))
- return edit;
- }
- return null;
- }
-
- private WSCDDArtifactEdit getExistingWSCDDArtifactEdit(IProject project) {
- List wsClientEdits = getWSClientArtifactEdits();
- for (int i=0; i<wsClientEdits.size(); i++) {
- WSCDDArtifactEdit edit = (WSCDDArtifactEdit) wsClientEdits.get(i);
- if (edit !=null && edit.getProject()!= null && edit.getProject().equals(project))
- return edit;
- }
- return null;
- }
-
- public List getWSDLServices(Resource wsdl) {
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- List result = new ArrayList();
- Object def = serviceHelper.getWSDLDefinition(wsdl);
- if (def == null)
- return result;
- result = new ArrayList(serviceHelper.getDefinitionServices(def).values());
- return result;
- }
-
- public EObject getWSDLServiceForWebService(WebServiceDescription webService) {
- EObject service = null;
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- Resource wsdl = getWSDLResource(webService);
- if (wsdl == null) return service;
- Object definition = serviceHelper.getWSDLDefinition(wsdl);
- if (definition == null) return service;
- Map services = serviceHelper.getDefinitionServices(definition);
- if (services.isEmpty()) return service;
- PortComponent portComp = null;
- if (webService.getPortComponents()!=null && webService.getPortComponents().size()>0) {
- portComp = (PortComponent) webService.getPortComponents().get(0);
- return getService(portComp);
- }
- return service;
- }
-
- public Resource getWSDLResource(EObject wsdlService) {
- return wsdlService.eResource();
- }
-
- public EObject getService(PortComponent port) {
- List services = getInternalWSDLServices();
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- for (int i = 0; i < services.size(); i++) {
- EObject service = (EObject)services.get(i);
- if (serviceHelper.getServicePorts(service).size() == 1) {
- Object wsdlPort = serviceHelper.getServicePorts(service).values().toArray()[0];
- String qName = serviceHelper.getPortBindingNamespaceURI(wsdlPort);
- if (port.getWsdlPort().getNamespaceURI().equals(qName))
- return service;
- }
- }
- return null;
- }
-
- public PortComponent getPortComponent(String qName) {
- List wsDescs = getInternalWebServicesDescriptions();
- for (int i = 0; i < wsDescs.size(); i++) {
- WebServiceDescription wsDesc = (WebServiceDescription) wsDescs.get(i);
- List ports = wsDesc.getPortComponents();
- for (int j = 0; j < ports.size(); j++) {
- PortComponent portComp = (PortComponent) ports.get(j);
- if (portComp.getWsdlPort().getNamespaceURI().equals(qName))
- return portComp;
- }
- }
- return null;
- }
-
- public PortComponent getPortComponent(String qName, IProject project) {
- List wsDescs = getInternalWebServicesDescriptions();
- for (int i = 0; i < wsDescs.size(); i++) {
- WebServiceDescription wsDesc = (WebServiceDescription) wsDescs.get(i);
- List ports = wsDesc.getPortComponents();
- for (int j = 0; j < ports.size(); j++) {
- PortComponent portComp = (PortComponent) ports.get(j);
- if (project == ProjectUtilities.getProject(portComp))
- return portComp;
- }
- }
- return null;
- }
-
- public PortComponent getPortComponent(EObject wsdlService) {
- // If there is only one port in the wsdl service, find the matching port component
- // otherwise if multiple ports return null because we need more information
- WSDLServiceHelper serviceHelper = WSDLServiceExtManager.getServiceHelper();
- if (wsdlService == null || serviceHelper.getServicePorts(wsdlService).isEmpty())
- return null;
- if (serviceHelper.getServicePorts(wsdlService).size() > 0) {
- Object port = serviceHelper.getServicePorts(wsdlService).values().toArray()[0];
- String qName = serviceHelper.getPortBindingNamespaceURI(port);
- return getPortComponent(qName, ProjectUtilities.getProject(wsdlService));
- }
- return null;
- }
-
- public ServiceImplBean getServiceImplBean(EObject wsdlService) {
- PortComponent port = getPortComponent(wsdlService);
- if (port == null)
- return null;
- return port.getServiceImplBean();
- }
-
- public WsddResource getWsddResource(EObject wsdlService) {
- PortComponent port = getPortComponent(wsdlService);
- if (port == null)
- return null;
- return (WsddResource) port.eResource();
- }
-
- public String getServiceEndpointInterface(EObject wsdlService) {
- PortComponent port = getPortComponent(wsdlService);
- if (port == null)
- return null;
- return port.getServiceEndpointInterface();
- }
-
- public List getAllWorkspaceServiceRefs() {
- List result = new ArrayList();
- result.addAll(getWorkspace13ServiceRefs());
- result.addAll(getWorkspace14ServiceRefs());
- return result;
- }
-
- public List getWorkspace13ServiceRefs() {
- List result = new ArrayList();
- Iterator iter = getWSClientArtifactEdits().iterator();
- while (iter.hasNext()) {
- WSCDDArtifactEdit artifactEdit = (WSCDDArtifactEdit) iter.next();
- WebServicesResource res = artifactEdit.getWscddXmiResource();
- if (res != null && res.isLoaded() && res.getWebServicesClient() != null) {
- if (JavaEEProjectUtilities.isEJBProject(artifactEdit.getProject())) {
- List scopedBeans = res.getWebServicesClient().getComponentScopedRefs();
- for (Iterator iterator = scopedBeans.iterator(); iterator.hasNext();) {
- ComponentScopedRefs refBean = (ComponentScopedRefs) iterator.next();
- result.addAll(refBean.getServiceRefs());
- }
- } else result.addAll(res.getWebServicesClient().getServiceRefs());
- }
- }
- return result;
- }
-
- public List get13ServiceRefs(IProject handle) {
- List result = new ArrayList();
- WSCDDArtifactEdit wsClientArtifactEdit = getExistingWSCDDArtifactEdit(handle);
- if (wsClientArtifactEdit !=null) {
- WebServicesResource res = wsClientArtifactEdit.getWscddXmiResource();
- if (res != null && res.isLoaded() && res.getWebServicesClient() != null)
- result.addAll(res.getWebServicesClient().getServiceRefs());
- }
- return result;
- }
-
- public List getWorkspace14ServiceRefs() {
- return getWorkspace14ServiceRefs(getWSClientArtifactEdits());
- }
-
- private List getWorkspace14ServiceRefs(List wsClientArtifactEdits) {
- Iterator iter = wsClientArtifactEdits.iterator();
- List result = new ArrayList();
- while (iter.hasNext()) {
- WSCDDArtifactEdit wscArtifactEdit = (WSCDDArtifactEdit) iter.next();
-
- IProject project = wscArtifactEdit.getProject();
-
- String projectType = J2EEProjectUtilities.getJ2EEProjectType(project);
- String projectVersion = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- int j2eeLevel = 0;
- if(IModuleConstants.JST_EJB_MODULE.equals(projectType)){
- j2eeLevel = J2EEVersionUtil.convertEJBVersionStringToJ2EEVersionID(projectVersion);
- } else if(IModuleConstants.JST_WEB_MODULE.equals(projectType)){
- j2eeLevel = J2EEVersionUtil.convertWebVersionStringToJ2EEVersionID(projectVersion);
- } else if(IModuleConstants.JST_APPCLIENT_MODULE.equals(projectType)){
- j2eeLevel = J2EEVersionUtil.convertAppClientVersionStringToJ2EEVersionID(projectVersion);
- }
-
- // this method needs to check that project's j2ee level is 14
- if(j2eeLevel != J2EEVersionConstants.J2EE_1_4_ID)
- continue;
-
- ArtifactEdit artifactEdit = ArtifactEdit.getArtifactEditForRead(project);
- try {
- EObject rootObject = null;
- if (artifactEdit!=null)
- rootObject = artifactEdit.getContentModelRoot();
- // handle EJB project case
- if (rootObject instanceof EJBJar) {
- List cmps = ((EJBJar) rootObject).getEnterpriseBeans();
- for (int j = 0; j < cmps.size(); j++) {
- EnterpriseBean bean = (EnterpriseBean) cmps.get(j);
- if (bean.getServiceRefs() != null && !bean.getServiceRefs().isEmpty())
- result.addAll(bean.getServiceRefs());
- }
- }
- // handle Web Project
- else if (rootObject instanceof WebApp) {
- if (((WebApp) rootObject).getServiceRefs() != null && !((WebApp) rootObject).getServiceRefs().isEmpty())
- result.addAll(((WebApp) rootObject).getServiceRefs());
- }
- // handle App clients
- else if (rootObject instanceof ApplicationClient) {
- if (((ApplicationClient) rootObject).getServiceRefs() != null && !((ApplicationClient) rootObject).getServiceRefs().isEmpty())
- result.addAll(((ApplicationClient) rootObject).getServiceRefs());
- }
- } finally {
- if (artifactEdit != null)
- artifactEdit.dispose();
- }
- }
- return result;
- }
-
- public boolean isJ2EE14(ServiceRef ref) {
- return !(ref.eContainer() instanceof WebServicesClient);
- }
-
- public List getWorkspaceWSILFiles() {
- List result = new ArrayList();
- Iterator iter = getWSArtifactEdits().iterator();
- while (iter.hasNext()) {
- WSDDArtifactEdit artifactEdit = (WSDDArtifactEdit) iter.next();
- List files = artifactEdit.getWSILResources();
- for (int j = 0; j < files.size(); j++) {
- IFile file = (IFile) files.get(j);
- if (file != null && WSIL_EXT.equals(file.getFileExtension()))
- result.add(file);
- }
- }
- return result;
- }
-
- public List getWorkspaceWSDLResources() {
- List result = new ArrayList();
- Iterator iter = getWSArtifactEdits().iterator();
- while (iter.hasNext()) {
- WSDDArtifactEdit artifactEdit = (WSDDArtifactEdit) iter.next();
- IProject project = artifactEdit.getProject();
- if (project != null) {
- List wsdlResources = artifactEdit.getWSDLResources();
- if (wsdlResources != null && !wsdlResources.isEmpty()) {
- for (int j = 0; j < wsdlResources.size(); j++) {
- Resource wsdl = (Resource) wsdlResources.get(j);
- if (!result.contains(wsdl))
- result.add(wsdl);
- }
- }
- }
- }
- return result;
- }
-
- public List getWSDLServices() {
- List result = new ArrayList();
- List internalWsdls = getInternalWSDLServices();
- if (internalWsdls != null && !internalWsdls.isEmpty())
- result.addAll(internalWsdls);
- //TODO add externals
- return result;
- }
-
- /**
- * @param bean
- * @return
- */
- public List get13ServiceRefs(EnterpriseBean bean) {
- WSCDDArtifactEdit artifactEdit = null;
- IFile file = WorkbenchResourceHelper.getFile(bean);
- if (file!=null)
- artifactEdit = getExistingWSCDDArtifactEdit(file.getProject());
- if (artifactEdit !=null) {
- WebServicesResource res = artifactEdit.getWscddXmiResource();
- if (res != null && res.getWebServicesClient() != null) {
- String ejbName = bean.getName();
- List scopes = res.getWebServicesClient().getComponentScopedRefs();
- for (Iterator iter = scopes.iterator(); iter.hasNext();) {
- ComponentScopedRefs scope = (ComponentScopedRefs) iter.next();
- if (scope.getComponentName().equals(ejbName))
- return scope.getServiceRefs();
- }
- }
- }
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @param client
- * @return
- */
- public List get13ServiceRefs(ApplicationClient client) {
- IProject handle = getComponentProject(WorkbenchResourceHelper.getFile(client));
- if (handle == null)
- return Collections.EMPTY_LIST;
- WSCDDArtifactEdit artifactEdit = getExistingWSCDDArtifactEdit(handle);
- if (artifactEdit !=null) {
- WebServicesResource res = artifactEdit.getWscddXmiResource();
- if (res != null) {
- WebServicesClient webClient = res.getWebServicesClient();
- if (webClient != null)
- return webClient.getServiceRefs();
- }
- }
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @param webapp
- * @return
- */
- public List get13ServiceRefs(WebApp webapp) {
- IProject handle = getComponentProject(WorkbenchResourceHelper.getFile(webapp));
- if (handle == null)
- return Collections.EMPTY_LIST;
- WSCDDArtifactEdit artifactEdit = getExistingWSCDDArtifactEdit(handle);
- if (artifactEdit !=null) {
- WebServicesResource res = artifactEdit.getWscddXmiResource();
- if (res != null) {
- WebServicesClient webClient = res.getWebServicesClient();
- if (webClient != null)
- return webClient.getServiceRefs();
- }
- }
- return Collections.EMPTY_LIST;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IResourceDeltaVisitor#visit(org.eclipse.core.resources.IResourceDelta)
- */
- public boolean visit(IResourceDelta delta) throws CoreException {
- IResource resource = delta.getResource();
- if (resource.getType() == IResource.PROJECT) {
- IProject p = (IProject) resource;
- // Handle project adds and project opens
- if ((delta.getKind()==IResourceDelta.ADDED || (((delta.getFlags() & IResourceDelta.OPEN) != 0) && p.isAccessible()))) {
- IVirtualComponent component = ComponentCore.createComponent(p);
- if (component!=null && !JavaEEProjectUtilities.isEARProject(p) && !JavaEEProjectUtilities.isStaticWebProject(p)) {
- getQueuedJob().addProject(p);
- return false;
- }
- }
- // Handle project close events and removals
- else if ((delta.getKind() == IResourceDelta.CHANGED && ((delta.getFlags() & IResourceDelta.OPEN) != 0))
- || (delta.getKind() == IResourceDelta.REMOVED)){
- removeArtifactEdit(p);
- return false;
- }
- }
-
- else if (resource.getType() == IResource.FILE && isInterrestedInFile((IFile) resource)) {
- // Handle WSIL and WSDL File additions as well as webservice.xml and webserviceclient.xml
- if ((delta.getKind() == IResourceDelta.ADDED) || ((delta.getFlags() & IResourceDelta.MOVED_TO) != 0)) {
- if (resource.getFileExtension().equals(WSDL_EXT))
- addedWsdl((IFile) resource);
- else if (resource.getFileExtension().equals(WSIL_EXT))
- addedWsil((IFile)resource);
- else if (resource.getName().equals(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME) ||
- resource.getName().equals(J2EEConstants.WEB_SERVICES_DD_URI)) {
- getQueuedJob().addProject(resource.getProject());
- }
- }
- // Handle WSIL or WSDL file removals
- else if ((delta.getKind() == IResourceDelta.REMOVED) || ((delta.getFlags() & IResourceDelta.MOVED_FROM) != 0)) {
- if (resource.getFileExtension().equals(WSDL_EXT) || resource.getFileExtension().equals(WSIL_EXT))
- notifyListeners(EditModelEvent.UNLOADED_RESOURCE);
- }
- return false;
- }
- return true;
- }
-
- private ProcessProjectsWithWSDL createProjectsJob() {
- Set newSet = new HashSet();
- ProcessProjectsWithWSDL job = new ProcessProjectsWithWSDL(newSet, EditModelEvent.ADDED_RESOURCE);
- job.setRule(ResourcesPlugin.getWorkspace().getRoot());
- job.setSystem(true);
- return job;
- }
-
- private ProcessProjectsWithWSDL getQueuedJob() {
-
- if (processNewProjects != null && (processNewProjects.getState() == Job.WAITING)){
- return processNewProjects;
- }
- processNewProjects = createProjectsJob();
- processNewProjects.schedule();
- return processNewProjects;
- }
-
- private class ProcessProjectsWithWSDL extends Job
- {
- private Set currentProjects;
- private int eventType;
-
- public ProcessProjectsWithWSDL(Set p, int newEventType)
- {
- super(WebServiceManagerNLS.WebServicesManager_Loading_Webservice_);
- currentProjects = p;
- eventType = newEventType;
- }
-
- public void addProject(IProject p) {
- synchronized(currentProjects) {
- currentProjects.add(p);
- }
- }
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- // Null out job for processing new projects
- synchronized (processNewProjects) {
- if(processNewProjects == this){
- processNewProjects = null;
- }
- }
- for (Iterator iterator = currentProjects.iterator(); iterator.hasNext();) {
- IProject currentProject = (IProject) iterator.next();
- addArtifactEdit(currentProject);
- }
- notifyListeners(eventType);
-
- return Status.OK_STATUS;
- }
- }
-
- protected void addedWsdl(IFile wsdl) {
- if (!wsdl.exists())
- return;
- IProject handle = getComponentProject(wsdl);
- if (handle != null) {
- addArtifactEdit(handle);
- notifyListeners(EditModelEvent.LOADED_RESOURCE);
- }
- }
-
- protected void addedWsil(IFile wsil) {
- if (!wsil.exists())
- return;
- IProject handle = getComponentProject(wsil);
- if (handle != null) {
- addArtifactEdit(handle);
- notifyListeners(EditModelEvent.LOADED_RESOURCE);
- }
- }
-
- private IProject getComponentProject(IFile res) {
- if (res==null)
- return null;
- return res.getProject();
- }
-
- protected boolean isInterrestedInFile(IFile aFile) {
- return isFileInteresting(aFile);
- }
-
- /**
- * The only resources webservice manager is concerned about are:
- * webservice.xml, webserviceclient.xml, and J2EE 1.4 web.xml, ejb-jar-xml, and application-client.xml
- * @param res
- * @return boolean isInterested
- */
- private boolean isInterestedInResource(Resource res) {
- if (res instanceof WsddResource || res instanceof WebServicesResource) {
- return true;
- } else if (res instanceof EJBResource || res instanceof WebAppResource || res instanceof ApplicationClientResource) {
- return ((XMLResource)res).getJ2EEVersionID()>J2EEVersionConstants.J2EE_1_3_ID;
- } else {
- return false;
- }
- }
-
- /**
- * @param object
- * @return
- */
- public Collection getServiceRefs(EJBJar jar) {
-
- List list = new ArrayList();
- List beans = jar.getEnterpriseBeans();
- try {
- for (int i = 0; i < beans.size(); i++) {
- EnterpriseBean bean = (EnterpriseBean) beans.get(i);
- list.addAll(getServiceRefs(bean));
- }
- } catch (Exception e) {
- //Ignore
- }
- return list;
- }
-
- public Collection getServiceRefs(EnterpriseBean bean) {
- List list = new ArrayList();
- if (bean.getEjbJar().getJ2EEVersionID() >= J2EEVersionConstants.J2EE_1_4_ID)
- list.addAll(bean.getServiceRefs());
- else
- list.addAll(get13ServiceRefs(bean));
- return list;
- }
-
- public Collection getServiceRefs(WebApp webapp) {
-
- List list = new ArrayList();
- try {
- if (webapp.getVersionID() >= J2EEVersionConstants.WEB_2_4_ID)
- list.addAll(webapp.getServiceRefs());
- else
- list.addAll(get13ServiceRefs(webapp));
- } catch (Exception e) {
- //Ignore
- }
- return list;
- }
-
- public Collection getServiceRefs(ApplicationClient client) {
-
- List list = new ArrayList();
- try {
- if (client.getJ2EEVersionID() >= J2EEVersionConstants.J2EE_1_4_ID)
- list.addAll(client.getServiceRefs());
- else
- list.addAll(get13ServiceRefs(client));
- } catch (Exception e) {
- //Ignore
- }
- return list;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/messages.properties b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/messages.properties
deleted file mode 100644
index 5e8d8702e..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/messages.properties
+++ /dev/null
@@ -1 +0,0 @@
-WebServicesManager_Loading_Webservice_=Loading Webservices
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java
deleted file mode 100644
index 549e7f8e2..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2006 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 28, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.internal.webservice.plugin;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.text.MessageFormat;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.wst.common.frameworks.internal.WTPPlugin;
-import org.osgi.framework.BundleContext;
-import java.lang.Throwable;
-
-
-/**
- * @author jlanuti
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class WebServicePlugin extends WTPPlugin implements ResourceLocator {
-
-
- /**
- * The reference to the singleton instance of this plugin.
- */
- private static WebServicePlugin singleton;
-
- //the ID for this plugin (added automatically by logging quickfix)
- public static final String PLUGIN_ID = "org.eclipse.jst.j2ee.webservice"; //$NON-NLS-1$
-
- /**
- * @param descriptor
- */
- public WebServicePlugin() {
- super();
- if (singleton == null)
- singleton = this;
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.frameworks.internal.WTPPlugin#getPluginID()
- */
- @Override
- public String getPluginID() {
- return PLUGIN_ID;
- }
-
- /**
- * Returns an image descriptor for the named resource as relative to the plugin install
- * location.
- *
- * @return An image descriptor, possibly null.
- */
- public static ImageDescriptor getImageDescriptor(String name) {
- try {
- URL installURL = getInstance().getBundle().getEntry("/"); //$NON-NLS-1$
- URL imageURL = new URL(installURL, name);
- return ImageDescriptor.createFromURL(imageURL);
- } catch (MalformedURLException e) {
- return null;
- }
- }
-
- /**
- * Returns the singleton instance of this plugin. Equivalent to calling
- * (ATKUIPlugin)Platform.getPlugin("com.ibm.etools.webservice.atk.ui");
- *
- * @return The ATKUIPlugin singleton.
- */
- static public WebServicePlugin getInstance() {
- return singleton;
- }
-
- /**
- * Returns the message string identified by the given key from the plugin.properties file for
- * the appropriate locale.
- *
- * @param key
- * The message key string prefixed by a "%" symbol. That is, the string passed in
- * must be of the form "%KEY" where the plugin.properties file contains a line of the
- * form: "KEY = value".
- * @return The locale-specific message.
- */
- public static String getMessage(String key) {
- return Platform.getResourceString(getInstance().getBundle(), key);
- }
-
- /**
- * Returns the message string identified by the given key from the plugin.properties file for
- * the appropriate locale. Substitution sequences in the message string are replaced by the
- * given array of substitution objects (which are most frequently strings). See
- * java.text.MessageFormat for further details on substitution.
- *
- * @param key
- * The message key string prefixed by a "%" symbol. That is, the string passed in
- * must be of the form "%KEY" where the plugin.properties file contains a line of the
- * form: "KEY = value".
- * @param args
- * The substitution values for the message as required by the message in
- * plugin.properties and by the rules of class java.text.MessageFormat.
- * @return The locale-specific message.
- */
- public static String getMessage(String key, Object[] args) {
- return MessageFormat.format(getMessage(key), args);
- }
-
-
- /**
- * Returns the URL from which all resources are based.
- *
- * @return the URL from which all resources are based.
- */
- public URL getBaseURL() {
- String installURL = getPluginInstallLocation();
- if (installURL != null) {
- try {
- StringBuffer sb = new StringBuffer(installURL);
- sb.append("plugin.properties"); //$NON-NLS-1$
- return new URL(sb.toString());
- } catch (MalformedURLException e) {
- //Ignore
- }
- }
- return null;
- }
-
- /**
- * Returns the description that can be used to create the image resource associated with the
- * key. The description will typically be in the form of a URL to the image data. Creation of an
- * actual image depends on the GUI environment; within Eclipse,
- * org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry can be used.
- *
- * @param key
- * the key of the image resource.
- * @return the description on the image resource.
- */
- public Object getImage(String key) {
- ImageDescriptor imageDescriptor = getImageDescriptor(key);
- if (imageDescriptor != null)
- return imageDescriptor.createImage();
- return null;
- }
-
- public String getPluginStateLocation() {
- return Platform.getPluginStateLocation(this).addTrailingSeparator().toOSString();
- }
-
- public String getPluginInstallLocation() {
- try {
- return Platform.resolve(getInstance().getBundle().getEntry("/")).getFile(); //$NON-NLS-1$
- } catch (Throwable t) {
- return null;
- }
- }
-
- /**
- * Returns the string resource associated with the key.
- *
- * @param key
- * the key of the string resource.
- * @return the string resource associated with the key.
- */
- public String getString(String key) {
- return getMessage(key);
- }
-
- /**
- * Returns a string resource associated with the key, and peforms substitutions.
- *
- * @param key
- * the key of the string.
- * @param substitutions
- * the message substitutions.
- * @return a string resource associated with the key.
- * @see #getString(String)
- * @see MessageFormat#format(String, Object[])
- */
- public String getString(String key, Object[] substitutions) {
- return getMessage(key, substitutions);
- }
-
- /**
- * Called once by the platform when this plugin is first loaded.
- *
- * @throws CoreException
- * If this plugin fails to start.
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * Called once by the platform when this plugin is unloaded.
- *
- * @throws CoreException
- * If this plugin fails to shutdown.
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- }
- public String getString(String key, boolean translate) {
- // TODO For now... translate not supported
- return getString(key);
- }
-
- public String getString(String key, Object[] substitutions, boolean translate) {
- // TODO For now... translate not supported
- return getString(key,substitutions);
- }
-
-
- /**
- * Record an error against this plugin's log.
- *
- * @param aCode
- * @param aMessage
- * @param anException
- */
- public static void logError(int aCode, String aMessage,
- Throwable anException) {
- getInstance().getLog().log(
- createErrorStatus(aCode, aMessage, anException));
- }
-
- /**
- *
- * Record a message against this plugin's log.
- *
- * @param severity
- * @param aCode
- * @param aMessage
- * @param exception
- */
- public static void log(int severity, int aCode, String aMessage,
- Throwable exception) {
- log(createStatus(severity, aCode, aMessage, exception));
- }
-
- /**
- *
- * Record a status against this plugin's log.
- *
- * @param aStatus
- */
- public static void log(IStatus aStatus) {
- getInstance().getLog().log(aStatus);
- }
-
- /**
- * Create a status associated with this plugin.
- *
- * @param severity
- * @param aCode
- * @param aMessage
- * @param exception
- * @return A status configured with this plugin's id and the given parameters.
- */
- public static IStatus createStatus(int severity, int aCode,
- String aMessage, Throwable exception) {
- return new Status(severity, PLUGIN_ID, aCode,
- aMessage != null ? aMessage : "No message.", exception); //$NON-NLS-1$
- }
-
- /**
- *
- * @param aCode
- * @param aMessage
- * @param exception
- * @return A status configured with this plugin's id and the given parameters.
- */
- public static IStatus createErrorStatus(int aCode, String aMessage,
- Throwable exception) {
- return createStatus(IStatus.ERROR, aCode, aMessage, exception);
- }
-
- public static IStatus createStatus(int severity, String message, Throwable exception) {
- return new Status(severity, PLUGIN_ID, message, exception);
- }
-
- public static IStatus createStatus(int severity, String message) {
- return createStatus(severity, message, null);
- }
-
- public static void logError(Throwable exception) {
- Platform.getLog(Platform.getBundle(PLUGIN_ID)).log( createStatus(IStatus.ERROR, exception.getMessage(), exception));
- }
-
- public static void logError(CoreException exception) {
- Platform.getLog(Platform.getBundle(PLUGIN_ID)).log( exception.getStatus() );
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIAdapterFactory.java
deleted file mode 100644
index dfc72a210..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIAdapterFactory.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-
-
-public class ATKUIAdapterFactory extends AdapterFactoryImpl {
- private AdapterFactory[] adapterFactories_;
-
- public ATKUIAdapterFactory() {
- adapterFactories_ = new AdapterFactory[4];
- adapterFactories_[0] = new WsddItemProviderAdapterFactory();
- adapterFactories_[1] = new ATKUIWscddAdapterFactory();
- adapterFactories_[2] = new ATKUIWscommonAdapterFactory();
- adapterFactories_[3] = new ATKUICommonAdapterFactory();
-
- }
-
- @Override
- public Object adapt(Object target, Object type) {
-
- if (target instanceof Notifier) {
- for (int i = 0; i < adapterFactories_.length; i++) {
- Object object = adapterFactories_[i].adapt(target, type);
- if (object != null) {
- return object;
- }
- }
- return null;
- }
- return resolve(target, type);
- }
-
- @Override
- public Adapter adapt(Notifier target, Object type) {
- Object object = adapt((Object) target, type);
- if (object instanceof Adapter) {
- return (Adapter) object;
- }
- return null;
- }
-
- /**
- * This is called by {@link #adapt(Object,Object) adapt(Object, Object)}for objects that aren't
- * notifiers.
- *
- * @param an
- * arbitrary object to adapt.
- * @param type
- * the key indicating the type of adapter required.
- * @return the object itself.
- * @see #adapt(Object,Object)
- */
- @Override
- protected Object resolve(Object object, Object type) {
- if (object instanceof EList)
- return resolveEList((EList) object, type);
- else if (object instanceof AdapterViewerItem)
- return resolveAdapterViewerItem((AdapterViewerItem) object, type);
- else
- return null;
- }
-
- private Object resolveEList(EList eList, Object type) {
- if (eList.size() > 0)
- return adapt(eList.get(0), type);
- return null;
- }
-
- private Object resolveAdapterViewerItem(AdapterViewerItem adapterViewerItem, Object type) {
- return resolveEList(adapterViewerItem.getEObjectList(), type);
- }
-
- public void addListener(INotifyChangedListener listener) {
- ((WsddItemProviderAdapterFactory) adapterFactories_[0]).addListener(listener);
- ((ATKUIWscddAdapterFactory) adapterFactories_[1]).addListener(listener);
- ((ATKUIWscommonAdapterFactory) adapterFactories_[2]).addListener(listener);
- ((ATKUICommonAdapterFactory) adapterFactories_[3]).addListener(listener);
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUICommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUICommonAdapterFactory.java
deleted file mode 100644
index 6c639fb86..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUICommonAdapterFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.jst.j2ee.common.internal.provider.CommonItemProviderAdapterFactory;
-
-
-public class ATKUICommonAdapterFactory extends CommonItemProviderAdapterFactory {
- public ATKUICommonAdapterFactory() {
- super();
- }
-
- @Override
- public Adapter createParamValueAdapter() {
- if (paramValueItemProvider == null)
- paramValueItemProvider = new ATKUIParamValueItemProvider(this);
-
- return paramValueItemProvider;
- }
-
- @Override
- public Adapter createQNameAdapter() {
- if (qNameItemProvider == null) {
- qNameItemProvider = new ATKUIQNameItemProvider(this);
- }
-
- return qNameItemProvider;
- }
-
-
- /*
- * public Adapter createSOAPHeaderAdapter() { if (soapHeaderItemProvider == null)
- * soapHeaderItemProvider = new ATKUISOAPHeaderItemProvider(this); return
- * soapHeaderItemProvider; }
- *
- * public Adapter createSOAPRoleAdapter() { if (soapRoleItemProvider == null)
- * soapRoleItemProvider = new ATKUISOAPRoleItemProvider(this); return soapRoleItemProvider; }
- *
- * public Adapter createPortNameAdapter() { if (portNameItemProvider == null)
- * portNameItemProvider = new ATKUIPortNameItemProvider(this); return portNameItemProvider; }
- *
- */
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIComponentScopedRefsItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIComponentScopedRefsItemProvider.java
deleted file mode 100644
index 95fd652da..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIComponentScopedRefsItemProvider.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs;
-
-
-public class ATKUIComponentScopedRefsItemProvider extends ComponentScopedRefsItemProvider implements ITableItemLabelProvider {
- public ATKUIComponentScopedRefsItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- return toDisplayString(((ComponentScopedRefs) object).getComponentName());
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIHandlerItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIHandlerItemProvider.java
deleted file mode 100644
index 33ad020bf..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIHandlerItemProvider.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.webservice.wsclient.Handler;
-
-
-public class ATKUIHandlerItemProvider extends HandlerItemProvider implements ITableItemLabelProvider {
- public ATKUIHandlerItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- return toDisplayString(((Handler) object).getHandlerName());
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-
- protected String toDisplayString(JavaClass javaClass) {
- String className = javaClass.getQualifiedNameForReflection();
- return (className != null) ? className : ""; //$NON-NLS-1$
- }
-
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIInitParamItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIInitParamItemProvider.java
deleted file mode 100644
index 7477a1a64..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIInitParamItemProvider.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.InitParam;
-
-
-public class ATKUIInitParamItemProvider extends InitParamItemProvider implements ITableItemLabelProvider {
- public ATKUIInitParamItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- InitParam initParam = (InitParam) object;
- switch (columnIndex) {
- case 0 :
- return toDisplayString(initParam.getParamName());
- case 1 :
- return toDisplayString(initParam.getParamValue());
- case 2 :
- return toDisplayString(initParam.getDescription());
- default :
- StringBuffer sb = new StringBuffer();
- sb.append(initParam.getParamName());
- sb.append("="); //$NON-NLS-1$
- sb.append(initParam.getParamValue());
- return sb.toString();
- }
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIParamValueItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIParamValueItemProvider.java
deleted file mode 100644
index 2a075b942..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIParamValueItemProvider.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.internal.provider.ParamValueItemProvider;
-
-public class ATKUIParamValueItemProvider extends ParamValueItemProvider implements ITableItemLabelProvider {
- public ATKUIParamValueItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- ParamValue initParam = (ParamValue) object;
- switch (columnIndex) {
- case 0 :
- return toDisplayString(initParam.getName());
- case 1 :
- return toDisplayString(initParam.getValue());
- case 2 :
- return toDisplayString(initParam.getDescription());
- default :
- StringBuffer sb = new StringBuffer();
- sb.append(initParam.getName());
- sb.append("="); //$NON-NLS-1$
- sb.append(initParam.getValue());
- return sb.toString();
- }
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortComponentRefItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortComponentRefItemProvider.java
deleted file mode 100644
index 0eb154ce8..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortComponentRefItemProvider.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef;
-
-
-public class ATKUIPortComponentRefItemProvider extends PortComponentRefItemProvider implements ITableItemLabelProvider {
- public ATKUIPortComponentRefItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- PortComponentRef portCompRef = (PortComponentRef) object;
- switch (columnIndex) {
- case 0 :
- return toDisplayString(portCompRef.getServiceEndpointInterface());
- case 1 :
- return toDisplayString(portCompRef.getPortComponentLink());
- default :
- return toDisplayString(portCompRef.getServiceEndpointInterface());
- }
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-
- protected String toDisplayString(JavaClass javaClass) {
- String className = javaClass.getQualifiedNameForReflection();
- return (className != null) ? className : ""; //$NON-NLS-1$
- }
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortNameItemProvider.java
deleted file mode 100644
index 742ad883d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIPortNameItemProvider.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.PortName;
-
-
-public class ATKUIPortNameItemProvider extends PortNameItemProvider implements ITableItemLabelProvider {
- public ATKUIPortNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- PortName portName = (PortName) object;
- return toDisplayString(portName.getPortName());
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIQNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIQNameItemProvider.java
deleted file mode 100644
index b147637fc..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIQNameItemProvider.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-
-
-public class ATKUIQNameItemProvider extends QNameItemProvider implements ITableItemLabelProvider {
- public ATKUIQNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- QName qname = (QName) object;
- switch (columnIndex) {
- case 0 :
- return toDisplayString(qname.getNamespaceURI());
- case 1 :
- return toDisplayString(qname.getLocalPart());
- default :
- StringBuffer sb = new StringBuffer();
- sb.append(qname.getNamespaceURI());
- sb.append("#"); //$NON-NLS-1$
- sb.append(qname.getLocalPart());
- return sb.toString();
- }
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPHeaderItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPHeaderItemProvider.java
deleted file mode 100644
index f4ef91a4a..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPHeaderItemProvider.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader;
-
-
-
-
-public class ATKUISOAPHeaderItemProvider extends SOAPHeaderItemProvider implements ITableItemLabelProvider {
- public ATKUISOAPHeaderItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- SOAPHeader soapHeader = (SOAPHeader) object;
- switch (columnIndex) {
- case 0 :
- return toDisplayString(soapHeader.getNamespaceURI());
- case 1 :
- return toDisplayString(soapHeader.getLocalPart());
- default :
- StringBuffer sb = new StringBuffer();
- sb.append(soapHeader.getNamespaceURI());
- sb.append("#"); //$NON-NLS-1$
- sb.append(soapHeader.getLocalPart());
- return sb.toString();
- }
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPRoleItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPRoleItemProvider.java
deleted file mode 100644
index 6c5843fb9..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUISOAPRoleItemProvider.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole;
-
-
-public class ATKUISOAPRoleItemProvider extends SOAPRoleItemProvider implements ITableItemLabelProvider {
- public ATKUISOAPRoleItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- SOAPRole soapRole = (SOAPRole) object;
- return toDisplayString(soapRole.getSoapRole());
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIServiceRefItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIServiceRefItemProvider.java
deleted file mode 100644
index 2eb9d93f3..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIServiceRefItemProvider.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-
-
-public class ATKUIServiceRefItemProvider extends ServiceRefItemProvider implements ITableItemLabelProvider {
- public ATKUIServiceRefItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnText.
- */
- @Override
- public String getColumnText(Object object, int columnIndex) {
- return toDisplayString(((ServiceRef) object).getServiceRefName());
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This does the same thing as ITableLabelProvider.getColumnImage.
- */
- @Override
- public Object getColumnImage(Object object, int columnIndex) {
- return null;
- }
-
- protected String toDisplayString(JavaClass javaClass) {
- String className = javaClass.getQualifiedNameForReflection();
- return (className != null) ? className : ""; //$NON-NLS-1$
- }
-
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWebServicesClientItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWebServicesClientItemProvider.java
deleted file mode 100644
index 87767e06e..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWebServicesClientItemProvider.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-
-
-public class ATKUIWebServicesClientItemProvider extends WebServicesClientItemProvider {
- public ATKUIWebServicesClientItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- feature = Webservice_clientFactory.eINSTANCE.getWebservice_clientPackage().getWebServicesClient_ComponentScopedRefs();
- if (feature.getName().equals(adapterViewerItem.getEStructuralFeature().getName()))
- result.add(SectionComponentScopedRefHelper.getWsClient());
- return result;
- }
-
- /**
- * This returns WebServicesClient.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return null;
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- return WebServicePlugin.getMessage("%LABEL_UNQUALIFIED_COMPONENT"); //$NON-NLS-1$
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscddAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscddAdapterFactory.java
deleted file mode 100644
index 6fd9d016c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscddAdapterFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.Adapter;
-
-
-public class ATKUIWscddAdapterFactory extends Webservice_clientItemProviderAdapterFactory {
- public ATKUIWscddAdapterFactory() {
- super();
- }
-
- @Override
- public Adapter createWebServicesClientAdapter() {
- if (webServicesClientItemProvider == null)
- webServicesClientItemProvider = new ATKUIWebServicesClientItemProvider(this);
- return webServicesClientItemProvider;
- }
-
- @Override
- public Adapter createComponentScopedRefsAdapter() {
- if (componentScopedRefsItemProvider == null)
- componentScopedRefsItemProvider = new ATKUIComponentScopedRefsItemProvider(this);
- return componentScopedRefsItemProvider;
- }
-
- @Override
- public Adapter createPortComponentRefAdapter() {
- if (portComponentRefItemProvider == null)
- portComponentRefItemProvider = new ATKUIPortComponentRefItemProvider(this);
- return portComponentRefItemProvider;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.internal.webservice.wsclient.util.Webservice_clientAdapterFactory#createServiceRefAdapter()
- */
- @Override
- public Adapter createServiceRefAdapter() {
- if (serviceRefItemProvider == null)
- serviceRefItemProvider = new ATKUIServiceRefItemProvider(this);
- return serviceRefItemProvider;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.internal.webservice.wsclient.util.Webservice_clientAdapterFactory#createHandlerAdapter()
- */
- @Override
- public Adapter createHandlerAdapter() {
- if (handlerItemProvider == null)
- handlerItemProvider = new ATKUIHandlerItemProvider(this);
- return handlerItemProvider;
- }
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscommonAdapterFactory.java
deleted file mode 100644
index 0493a5ef6..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ATKUIWscommonAdapterFactory.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/***************************************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- **************************************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.Adapter;
-
-public class ATKUIWscommonAdapterFactory extends WscommonItemProviderAdapterFactory {
- public ATKUIWscommonAdapterFactory() {
- super();
- }
-
- @Override
- public Adapter createInitParamAdapter() {
- if (initParamItemProvider == null)
- initParamItemProvider = new ATKUIInitParamItemProvider(this);
- return initParamItemProvider;
- }
-
- @Override
- public Adapter createSOAPHeaderAdapter() {
- if (soapHeaderItemProvider == null)
- soapHeaderItemProvider = new ATKUISOAPHeaderItemProvider(this);
- return soapHeaderItemProvider;
- }
-
- @Override
- public Adapter createSOAPRoleAdapter() {
- if (soapRoleItemProvider == null)
- soapRoleItemProvider = new ATKUISOAPRoleItemProvider(this);
- return soapRoleItemProvider;
- }
-
- @Override
- public Adapter createPortNameAdapter() {
- if (portNameItemProvider == null)
- portNameItemProvider = new ATKUIPortNameItemProvider(this);
- return portNameItemProvider;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/AbstractATKUIItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/AbstractATKUIItemProvider.java
deleted file mode 100644
index 4da13658e..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/AbstractATKUIItemProvider.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-
-
-// Non-generated provider code
-
-public abstract class AbstractATKUIItemProvider extends ItemProviderAdapter {
- public AbstractATKUIItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * Get the resource locator for this adapter's resources.
- */
- @Override
- protected ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/BeanLinkItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/BeanLinkItemProvider.java
deleted file mode 100644
index 951badd01..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/BeanLinkItemProvider.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.BeanLink}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class BeanLinkItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public BeanLinkItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns BeanLink.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/BeanLink"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { return getString("_UI_BeanLink_type"); }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- return getString("%_UI_BeanLink_type"); //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ComponentScopedRefsItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ComponentScopedRefsItemProvider.java
deleted file mode 100644
index 12e70169a..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ComponentScopedRefsItemProvider.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.ComponentScopedRefs;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-/**
- * This is the item provider adpater for a {@link com.ibm.etools.wsclient.ComponentScopedRefs}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ComponentScopedRefsItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ComponentScopedRefsItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addComponentNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Component Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addComponentNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ComponentScopedRefs_componentName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ComponentScopedRefs_componentName_feature", "_UI_ComponentScopedRefs_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Webservice_clientPackage.eINSTANCE.getComponentScopedRefs_ComponentName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getComponentScopedRefs_ServiceRefs());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns ComponentScopedRefs.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/ComponentScopedRefs.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((ComponentScopedRefs)object).getComponentName(); return label == null || label.length() == 0 ?
- * getString("_UI_ComponentScopedRefs_type") : getString("_UI_ComponentScopedRefs_type") + " " +
- * label; }
- */
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ComponentScopedRefs) object).getComponentName();
- return label == null || label.length() == 0 ? getString("%_UI_ComponentScopedRefs_type") : label; //$NON-NLS-1$
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ComponentScopedRefs.class)) {
- case Webservice_clientPackage.COMPONENT_SCOPED_REFS__COMPONENT_NAME :
- case Webservice_clientPackage.COMPONENT_SCOPED_REFS__SERVICE_REFS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getComponentScopedRefs_ServiceRefs(), Webservice_clientFactory.eINSTANCE.createServiceRef()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ConstructorParameterOrderItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ConstructorParameterOrderItemProvider.java
deleted file mode 100644
index f7a0465b9..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ConstructorParameterOrderItemProvider.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ConstructorParameterOrder;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ConstructorParameterOrder}object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ConstructorParameterOrderItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ConstructorParameterOrderItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ConstructorParameterOrder_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ConstructorParameterOrder_id_feature", "_UI_ConstructorParameterOrder_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getConstructorParameterOrder_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(JaxrpcmapPackage.eINSTANCE.getConstructorParameterOrder_ElementNames());
- }
- return childrenFeatures;
- }
-
-
- /**
- * This returns ConstructorParameterOrder.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ConstructorParameterOrder"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ConstructorParameterOrder) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_ConstructorParameterOrder_type") : //$NON-NLS-1$
- getString("_UI_ConstructorParameterOrder_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ConstructorParameterOrder.class)) {
- case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ID :
- case JaxrpcmapPackage.CONSTRUCTOR_PARAMETER_ORDER__ELEMENT_NAMES : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getConstructorParameterOrder_ElementNames(), JaxrpcmapFactory.eINSTANCE.createElementName()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DescriptionTypeItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DescriptionTypeItemProvider.java
deleted file mode 100644
index 37d9df201..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DescriptionTypeItemProvider.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.DescriptionItemProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DescriptionType}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class DescriptionTypeItemProvider extends DescriptionItemProvider {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public DescriptionTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns DescriptionType.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/DescriptionType"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((DescriptionType) object).getLang();
- return label == null || label.length() == 0 ? getString("_UI_DescriptionType_type") : //$NON-NLS-1$
- getString("_UI_DescriptionType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DisplayNameTypeItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DisplayNameTypeItemProvider.java
deleted file mode 100644
index 0d15751e4..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/DisplayNameTypeItemProvider.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.DisplayNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DisplayNameType}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class DisplayNameTypeItemProvider extends DisplayNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public DisplayNameTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns DisplayNameType.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/DisplayNameType"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((DisplayNameType) object).getLang();
- return label == null || label.length() == 0 ? getString("_UI_DisplayNameType_type") : //$NON-NLS-1$
- getString("_UI_DisplayNameType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/EJBLinkItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/EJBLinkItemProvider.java
deleted file mode 100644
index bb64e2d0c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/EJBLinkItemProvider.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.EJBLink}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class EJBLinkItemProvider extends BeanLinkItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public EJBLinkItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addEjbLinkPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_EJBLink_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_EJBLink_id_feature", "_UI_EJBLink_type"), WsddPackage.eINSTANCE.getEJBLink_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Ejb Link feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addEjbLinkPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_EJBLink_ejbLink_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_EJBLink_ejbLink_feature", "_UI_EJBLink_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getEJBLink_EjbLink(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns EJBLink.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/sessionBean_obj.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((EJBLink)object).getId(); return label ==
- * null || label.length() == 0 ? getString("_UI_EJBLink_type") : getString("_UI_EJBLink_type") + " " +
- * label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((EJBLink) object).getEjbLink();
- return label == null || label.length() == 0 ? getString("%_UI_EJBLink_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(EJBLink.class)) {
- case WsddPackage.EJB_LINK__EJB_LINK : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ElementNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ElementNameItemProvider.java
deleted file mode 100644
index 8b7457b76..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ElementNameItemProvider.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ElementName;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ElementName}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ElementNameItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ElementNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addTextPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ElementName_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ElementName_id_feature", "_UI_ElementName_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getElementName_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Text feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addTextPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ElementName_text_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ElementName_text_feature", "_UI_ElementName_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getElementName_Text(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns ElementName.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ElementName"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ElementName) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_ElementName_type") : //$NON-NLS-1$
- getString("_UI_ElementName_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ElementName.class)) {
- case JaxrpcmapPackage.ELEMENT_NAME__ID :
- case JaxrpcmapPackage.ELEMENT_NAME__TEXT : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ExceptionMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ExceptionMappingItemProvider.java
deleted file mode 100644
index 2eb13f773..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ExceptionMappingItemProvider.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ExceptionMapping;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ExceptionMapping}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class ExceptionMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ExceptionMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addExceptionTypePropertyDescriptor(object);
- addWsdlMessagePartNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ExceptionMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ExceptionMapping_id_feature", "_UI_ExceptionMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getExceptionMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Exception Type feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addExceptionTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ExceptionMapping_exceptionType_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ExceptionMapping_exceptionType_feature", "_UI_ExceptionMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getExceptionMapping_ExceptionType(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Message Part Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlMessagePartNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ExceptionMapping_wsdlMessagePartName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ExceptionMapping_wsdlMessagePartName_feature", "_UI_ExceptionMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getExceptionMapping_WsdlMessagePartName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getExceptionMapping_WsdlMessage());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getExceptionMapping_ConstructorParameterOrder());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ExceptionMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ExceptionMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ExceptionMapping) object).getWsdlMessagePartName();
- return label == null || label.length() == 0 ? getString("_UI_ExceptionMapping_type") : //$NON-NLS-1$
- getString("_UI_ExceptionMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ExceptionMapping.class)) {
- case JaxrpcmapPackage.EXCEPTION_MAPPING__ID :
- case JaxrpcmapPackage.EXCEPTION_MAPPING__EXCEPTION_TYPE :
- case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE_PART_NAME :
- case JaxrpcmapPackage.EXCEPTION_MAPPING__WSDL_MESSAGE :
- case JaxrpcmapPackage.EXCEPTION_MAPPING__CONSTRUCTOR_PARAMETER_ORDER : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getExceptionMapping_WsdlMessage(), JaxrpcmapFactory.eINSTANCE.createWSDLMessage()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getExceptionMapping_ConstructorParameterOrder(), JaxrpcmapFactory.eINSTANCE.createConstructorParameterOrder()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/HandlerItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/HandlerItemProvider.java
deleted file mode 100644
index a7c779310..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/HandlerItemProvider.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2006 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.internal.provider.CompatibilityDescriptionGroupItemProvider;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.Handler;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-
-/**
- * This is the item provider adpater for a {@link com.ibm.etools.wsclient.Handler}object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class HandlerItemProvider extends CompatibilityDescriptionGroupItemProvider {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public HandlerItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addHandlerNamePropertyDescriptor(object);
- addSoapRolesPropertyDescriptor(object);
- addPortNamesPropertyDescriptor(object);
- addHandlerClassPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Handler Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addHandlerNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_Handler_handlerName_feature"), //$NON-NLS-1$
- getString("%_UI_Handler_handlerName_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getHandler_HandlerName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Soap Roles feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addSoapRolesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_Handler_soapRoles_feature"), //$NON-NLS-1$
- getString("%_UI_Handler_soapRoles_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getHandler_SoapRoles(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Port Names feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addPortNamesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_Handler_portNames_feature"), //$NON-NLS-1$
- getString("%_UI_Handler_portNames_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getHandler_PortNames(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Handler Class feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addHandlerClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_Handler_handlerClass_feature"), //$NON-NLS-1$
- getString("%_UI_Handler_handlerClass_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getHandler_HandlerClass(), false));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getHandler_InitParams());
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getHandler_SoapHeaders());
-// childrenReferences.add(Webservice_clientPackage.eINSTANCE.getHandler_HandlerName());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns Handler.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/handler.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((Handler)object).getHandlerName();
- * return label == null || label.length() == 0 ? getString("_UI_Handler_type") :
- * getString("_UI_Handler_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Handler) object).getHandlerName();
- return label == null || label.length() == 0 ? getString("%_UI_Handler_type") : getString("%_UI_Handler_type") + ": " + label; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(Handler.class)) {
- case Webservice_clientPackage.HANDLER__HANDLER_NAME :
- case Webservice_clientPackage.HANDLER__SOAP_ROLES :
- case Webservice_clientPackage.HANDLER__PORT_NAMES :
- case Webservice_clientPackage.HANDLER__INIT_PARAMS :
- case Webservice_clientPackage.HANDLER__SOAP_HEADERS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getHandler_InitParams(), CommonFactory.eINSTANCE.createParamValue()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getHandler_SoapHeaders(), CommonFactory.eINSTANCE.createQName()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getHandler_SoapHeaders(), WscommonFactory.eINSTANCE.createSOAPHeader()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getHandler_SoapHeaders(), WsddFactory.eINSTANCE.createWSDLPort()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InitParamItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InitParamItemProvider.java
deleted file mode 100644
index d40813f69..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InitParamItemProvider.java
+++ /dev/null
@@ -1,226 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.webservice.wscommon.InitParam;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.InitParam}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class InitParamItemProvider extends AbstractATKUIItemProvider implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public InitParamItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- //pgm addIdPropertyDescriptor(object);
- addParamNamePropertyDescriptor(object);
- addParamValuePropertyDescriptor(object);
- addDescriptionPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_InitParam_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_InitParam_id_feature", "_UI_InitParam_type"),
- * WscommonPackage.eINSTANCE.getInitParam_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Param Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addParamNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_InitParam_paramName_feature"), //$NON-NLS-1$
- getString("%_UI_InitParam_paramName_feature_desc"), //$NON-NLS-1$
- WscommonPackage.eINSTANCE.getInitParam_ParamName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Param Value feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addParamValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_InitParam_paramValue_feature"), //$NON-NLS-1$
- getString("%_UI_InitParam_paramValue_feature_desc"), //$NON-NLS-1$
- WscommonPackage.eINSTANCE.getInitParam_ParamValue(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addDescriptionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_InitParam_description_feature"), //$NON-NLS-1$
- getString("%_UI_InitParam_description_feature_desc"), //$NON-NLS-1$
- WscommonPackage.eINSTANCE.getInitParam_Description(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WscommonPackage.eINSTANCE.getInitParam_DescriptionTypes());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns InitParam.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/initializ_parameter.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((InitParam)object).getParamName();
- * return label == null || label.length() == 0 ? getString("_UI_InitParam_type") :
- * getString("_UI_InitParam_type") + " " + label; } /*
- *
- * /** This returns the label text for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc --> @non-generated
- */
- @Override
- public String getText(Object object) {
- InitParam initParam = (InitParam) object;
- String name = initParam.getParamName();
- String value = initParam.getParamValue();
- if (name == null || name.length() == 0 || value == null || value.length() == 0)
- return getString("%_UI_InitParam_type"); //$NON-NLS-1$
- StringBuffer label = new StringBuffer();
- label.append(name);
- label.append("="); //$NON-NLS-1$
- label.append(value);
- return label.toString();
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(InitParam.class)) {
- //pgm case WscommonPackage.INIT_PARAM__ID:
- case WscommonPackage.INIT_PARAM__PARAM_NAME :
- case WscommonPackage.INIT_PARAM__PARAM_VALUE :
- case WscommonPackage.INIT_PARAM__DESCRIPTION :
- case WscommonPackage.INIT_PARAM__DESCRIPTION_TYPES : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WscommonPackage.eINSTANCE.getInitParam_DescriptionTypes(), WscommonFactory.eINSTANCE.createDescriptionType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- /*
- * public ResourceLocator getResourceLocator() { return Webservicej2eeEditPlugin.INSTANCE; }
- */
- @Override
- public Collection getChildren(Object object) {
- Collection children = super.getChildren(object);
- InitParam param = (InitParam) object;
- if (param.getParamName() != null)
- children.add(param.getParamName());
- if (param.getParamValue() != null)
- children.add(param.getParamValue());
- if (param.getDescription() != null)
- children.add(param.getDescription());
- return children;
-
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InterfaceMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InterfaceMappingItemProvider.java
deleted file mode 100644
index 7fce3092d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/InterfaceMappingItemProvider.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.InterfaceMapping}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class InterfaceMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public InterfaceMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns InterfaceMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/InterfaceMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_InterfaceMapping_type"); //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaWSDLMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaWSDLMappingItemProvider.java
deleted file mode 100644
index f512fe62e..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaWSDLMappingItemProvider.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaWSDLMapping;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaWSDLMapping}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class JavaWSDLMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public JavaWSDLMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_JavaWSDLMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_JavaWSDLMapping_id_feature", "_UI_JavaWSDLMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_PackageMappings());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_JavaXMLTypeMappings());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_ExceptionMappings());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_InterfaceMappings());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns JavaWSDLMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/JavaWSDLMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((JavaWSDLMapping) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_JavaWSDLMapping_type") : //$NON-NLS-1$
- getString("_UI_JavaWSDLMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(JavaWSDLMapping.class)) {
- case JaxrpcmapPackage.JAVA_WSDL_MAPPING__ID :
- case JaxrpcmapPackage.JAVA_WSDL_MAPPING__PACKAGE_MAPPINGS :
- case JaxrpcmapPackage.JAVA_WSDL_MAPPING__JAVA_XML_TYPE_MAPPINGS :
- case JaxrpcmapPackage.JAVA_WSDL_MAPPING__EXCEPTION_MAPPINGS :
- case JaxrpcmapPackage.JAVA_WSDL_MAPPING__INTERFACE_MAPPINGS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_PackageMappings(), JaxrpcmapFactory.eINSTANCE.createPackageMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_JavaXMLTypeMappings(), JaxrpcmapFactory.eINSTANCE.createJavaXMLTypeMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_ExceptionMappings(), JaxrpcmapFactory.eINSTANCE.createExceptionMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_InterfaceMappings(), JaxrpcmapFactory.eINSTANCE.createInterfaceMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_InterfaceMappings(), JaxrpcmapFactory.eINSTANCE.createServiceInterfaceMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaWSDLMapping_InterfaceMappings(), JaxrpcmapFactory.eINSTANCE.createServiceEndpointInterfaceMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaXMLTypeMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaXMLTypeMappingItemProvider.java
deleted file mode 100644
index 85239e1ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JavaXMLTypeMappingItemProvider.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JavaXMLTypeMapping;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaXMLTypeMapping}object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class JavaXMLTypeMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public JavaXMLTypeMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addClassTypePropertyDescriptor(object);
- addQnameScopePropertyDescriptor(object);
- addAnonymousTypeQnamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_JavaXMLTypeMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_JavaXMLTypeMapping_id_feature", "_UI_JavaXMLTypeMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Class Type feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addClassTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_JavaXMLTypeMapping_classType_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_JavaXMLTypeMapping_classType_feature", "_UI_JavaXMLTypeMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_ClassType(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Qname Scope feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addQnameScopePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_JavaXMLTypeMapping_qnameScope_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_JavaXMLTypeMapping_qnameScope_feature", "_UI_JavaXMLTypeMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_QnameScope(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Anonymous Type Qname feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addAnonymousTypeQnamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_JavaXMLTypeMapping_anonymousTypeQname_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_JavaXMLTypeMapping_anonymousTypeQname_feature", "_UI_JavaXMLTypeMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_AnonymousTypeQname(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_RootTypeQname());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_VariableMappings());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns JavaXMLTypeMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/JavaXMLTypeMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((JavaXMLTypeMapping) object).getAnonymousTypeQname();
- return label == null || label.length() == 0 ? getString("_UI_JavaXMLTypeMapping_type") : //$NON-NLS-1$
- getString("_UI_JavaXMLTypeMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(JavaXMLTypeMapping.class)) {
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ID :
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__CLASS_TYPE :
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__QNAME_SCOPE :
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ANONYMOUS_TYPE_QNAME :
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__ROOT_TYPE_QNAME :
- case JaxrpcmapPackage.JAVA_XML_TYPE_MAPPING__VARIABLE_MAPPINGS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_RootTypeQname(), JaxrpcmapFactory.eINSTANCE.createRootTypeQname()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getJavaXMLTypeMapping_VariableMappings(), JaxrpcmapFactory.eINSTANCE.createVariableMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JaxrpcmapItemProviderAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JaxrpcmapItemProviderAdapterFactory.java
deleted file mode 100644
index 38fc66650..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/JaxrpcmapItemProviderAdapterFactory.java
+++ /dev/null
@@ -1,703 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.internal.util.JaxrpcmapAdapterFactory;
-
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers. The
- * adapters generated by this factory convert EMF adapter notifications into calls to
- * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class JaxrpcmapItemProviderAdapterFactory extends JaxrpcmapAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by
- * {@link #isFactoryForType isFactoryForType}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected Collection supportedTypes = new ArrayList();
-
- /**
- * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public JaxrpcmapItemProviderAdapterFactory() {
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaWSDLMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected JavaWSDLMappingItemProvider javaWSDLMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaWSDLMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createJavaWSDLMappingAdapter() {
- if (javaWSDLMappingItemProvider == null) {
- javaWSDLMappingItemProvider = new JavaWSDLMappingItemProvider(this);
- }
-
- return javaWSDLMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PackageMapping}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PackageMappingItemProvider packageMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PackageMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPackageMappingAdapter() {
- if (packageMappingItemProvider == null) {
- packageMappingItemProvider = new PackageMappingItemProvider(this);
- }
-
- return packageMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaXMLTypeMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected JavaXMLTypeMappingItemProvider javaXMLTypeMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.JavaXMLTypeMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createJavaXMLTypeMappingAdapter() {
- if (javaXMLTypeMappingItemProvider == null) {
- javaXMLTypeMappingItemProvider = new JavaXMLTypeMappingItemProvider(this);
- }
-
- return javaXMLTypeMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ExceptionMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExceptionMappingItemProvider exceptionMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ExceptionMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createExceptionMappingAdapter() {
- if (exceptionMappingItemProvider == null) {
- exceptionMappingItemProvider = new ExceptionMappingItemProvider(this);
- }
-
- return exceptionMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceInterfaceMapping}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ServiceInterfaceMappingItemProvider serviceInterfaceMappingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceInterfaceMapping}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServiceInterfaceMappingAdapter() {
- if (serviceInterfaceMappingItemProvider == null) {
- serviceInterfaceMappingItemProvider = new ServiceInterfaceMappingItemProvider(this);
- }
-
- return serviceInterfaceMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ServiceEndpointInterfaceMappingItemProvider serviceEndpointInterfaceMappingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServiceEndpointInterfaceMappingAdapter() {
- if (serviceEndpointInterfaceMappingItemProvider == null) {
- serviceEndpointInterfaceMappingItemProvider = new ServiceEndpointInterfaceMappingItemProvider(this);
- }
-
- return serviceEndpointInterfaceMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.RootTypeQname}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected RootTypeQnameItemProvider rootTypeQnameItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.RootTypeQname}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createRootTypeQnameAdapter() {
- if (rootTypeQnameItemProvider == null) {
- rootTypeQnameItemProvider = new RootTypeQnameItemProvider(this);
- }
-
- return rootTypeQnameItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.VariableMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected VariableMappingItemProvider variableMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.VariableMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createVariableMappingAdapter() {
- if (variableMappingItemProvider == null) {
- variableMappingItemProvider = new VariableMappingItemProvider(this);
- }
-
- return variableMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessage}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLMessageItemProvider wsdlMessageItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessage}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLMessageAdapter() {
- if (wsdlMessageItemProvider == null) {
- wsdlMessageItemProvider = new WSDLMessageItemProvider(this);
- }
-
- return wsdlMessageItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ConstructorParameterOrder}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConstructorParameterOrderItemProvider constructorParameterOrderItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ConstructorParameterOrder}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createConstructorParameterOrderAdapter() {
- if (constructorParameterOrderItemProvider == null) {
- constructorParameterOrderItemProvider = new ConstructorParameterOrderItemProvider(this);
- }
-
- return constructorParameterOrderItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ElementName}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ElementNameItemProvider elementNameItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ElementName}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createElementNameAdapter() {
- if (elementNameItemProvider == null) {
- elementNameItemProvider = new ElementNameItemProvider(this);
- }
-
- return elementNameItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLServiceName}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLServiceNameItemProvider wsdlServiceNameItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLServiceName}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLServiceNameAdapter() {
- if (wsdlServiceNameItemProvider == null) {
- wsdlServiceNameItemProvider = new WSDLServiceNameItemProvider(this);
- }
-
- return wsdlServiceNameItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PortMapping}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PortMappingItemProvider portMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PortMapping}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPortMappingAdapter() {
- if (portMappingItemProvider == null) {
- portMappingItemProvider = new PortMappingItemProvider(this);
- }
-
- return portMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLPortType}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLPortTypeItemProvider wsdlPortTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLPortType}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLPortTypeAdapter() {
- if (wsdlPortTypeItemProvider == null) {
- wsdlPortTypeItemProvider = new WSDLPortTypeItemProvider(this);
- }
-
- return wsdlPortTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLBinding}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLBindingItemProvider wsdlBindingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLBinding}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLBindingAdapter() {
- if (wsdlBindingItemProvider == null) {
- wsdlBindingItemProvider = new WSDLBindingItemProvider(this);
- }
-
- return wsdlBindingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointMethodMapping}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ServiceEndpointMethodMappingItemProvider serviceEndpointMethodMappingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointMethodMapping}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServiceEndpointMethodMappingAdapter() {
- if (serviceEndpointMethodMappingItemProvider == null) {
- serviceEndpointMethodMappingItemProvider = new ServiceEndpointMethodMappingItemProvider(this);
- }
-
- return serviceEndpointMethodMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLOperation}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLOperationItemProvider wsdlOperationItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLOperation}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLOperationAdapter() {
- if (wsdlOperationItemProvider == null) {
- wsdlOperationItemProvider = new WSDLOperationItemProvider(this);
- }
-
- return wsdlOperationItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.MethodParamPartsMapping}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected MethodParamPartsMappingItemProvider methodParamPartsMappingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.MethodParamPartsMapping}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createMethodParamPartsMappingAdapter() {
- if (methodParamPartsMappingItemProvider == null) {
- methodParamPartsMappingItemProvider = new MethodParamPartsMappingItemProvider(this);
- }
-
- return methodParamPartsMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLReturnValueMapping}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLReturnValueMappingItemProvider wsdlReturnValueMappingItemProvider;
-
- /**
- * This creates an adapter for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLReturnValueMapping}. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLReturnValueMappingAdapter() {
- if (wsdlReturnValueMappingItemProvider == null) {
- wsdlReturnValueMappingItemProvider = new WSDLReturnValueMappingItemProvider(this);
- }
-
- return wsdlReturnValueMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessageMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLMessageMappingItemProvider wsdlMessageMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessageMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLMessageMappingAdapter() {
- if (wsdlMessageMappingItemProvider == null) {
- wsdlMessageMappingItemProvider = new WSDLMessageMappingItemProvider(this);
- }
-
- return wsdlMessageMappingItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessagePartName}instances. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected WSDLMessagePartNameItemProvider wsdlMessagePartNameItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessagePartName}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLMessagePartNameAdapter() {
- if (wsdlMessagePartNameItemProvider == null) {
- wsdlMessagePartNameItemProvider = new WSDLMessagePartNameItemProvider(this);
- }
-
- return wsdlMessagePartNameItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.InterfaceMapping}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected InterfaceMappingItemProvider interfaceMappingItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.InterfaceMapping}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createInterfaceMappingAdapter() {
- if (interfaceMappingItemProvider == null) {
- interfaceMappingItemProvider = new InterfaceMappingItemProvider(this);
- }
-
- return interfaceMappingItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/MethodParamPartsMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/MethodParamPartsMappingItemProvider.java
deleted file mode 100644
index 6c4c39a32..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/MethodParamPartsMappingItemProvider.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.MethodParamPartsMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.MethodParamPartsMapping}object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class MethodParamPartsMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public MethodParamPartsMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addParamPositionPropertyDescriptor(object);
- addParamTypePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_MethodParamPartsMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_MethodParamPartsMapping_id_feature", "_UI_MethodParamPartsMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Param Position feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addParamPositionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_MethodParamPartsMapping_paramPosition_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_MethodParamPartsMapping_paramPosition_feature", "_UI_MethodParamPartsMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping_ParamPosition(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Param Type feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addParamTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_MethodParamPartsMapping_paramType_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_MethodParamPartsMapping_paramType_feature", "_UI_MethodParamPartsMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping_ParamType(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping_WsdlMessageMapping());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns MethodParamPartsMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/MethodParamPartsMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((MethodParamPartsMapping) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_MethodParamPartsMapping_type") : //$NON-NLS-1$
- getString("_UI_MethodParamPartsMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(MethodParamPartsMapping.class)) {
- case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__ID :
- case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_POSITION :
- case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__PARAM_TYPE :
- case JaxrpcmapPackage.METHOD_PARAM_PARTS_MAPPING__WSDL_MESSAGE_MAPPING : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getMethodParamPartsMapping_WsdlMessageMapping(), JaxrpcmapFactory.eINSTANCE.createWSDLMessageMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PackageMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PackageMappingItemProvider.java
deleted file mode 100644
index 69c683f01..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PackageMappingItemProvider.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PackageMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PackageMapping}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class PackageMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PackageMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addPackageTypePropertyDescriptor(object);
- addNamespaceURIPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PackageMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PackageMapping_id_feature", "_UI_PackageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPackageMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Package Type feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addPackageTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PackageMapping_packageType_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PackageMapping_packageType_feature", "_UI_PackageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPackageMapping_PackageType(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Namespace URI feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addNamespaceURIPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PackageMapping_namespaceURI_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PackageMapping_namespaceURI_feature", "_UI_PackageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPackageMapping_NamespaceURI(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns PackageMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/PackageMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PackageMapping) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_PackageMapping_type") : //$NON-NLS-1$
- getString("_UI_PackageMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(PackageMapping.class)) {
- case JaxrpcmapPackage.PACKAGE_MAPPING__ID :
- case JaxrpcmapPackage.PACKAGE_MAPPING__PACKAGE_TYPE :
- case JaxrpcmapPackage.PACKAGE_MAPPING__NAMESPACE_URI : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentItemProvider.java
deleted file mode 100644
index a603fa1fd..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentItemProvider.java
+++ /dev/null
@@ -1,344 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.PortComponent}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class PortComponentItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PortComponentItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addPortComponentNamePropertyDescriptor(object);
- addServiceEndpointInterfacePropertyDescriptor(object);
- addSmallIconPropertyDescriptor(object);
- addLargeIconPropertyDescriptor(object);
- addDescriptionPropertyDescriptor(object);
- addDisplayNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_PortComponent_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_PortComponent_id_feature", "_UI_PortComponent_type"),
- * WsddPackage.eINSTANCE.getPortComponent_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Port Component Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addPortComponentNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_portComponentName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_portComponentName_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_PortComponentName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Service Endpoint Interface feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addServiceEndpointInterfacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_serviceEndpointInterface_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_serviceEndpointInterface_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_ServiceEndpointInterface(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Small Icon feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addSmallIconPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_smallIcon_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_smallIcon_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_SmallIcon(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Large Icon feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addLargeIconPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_largeIcon_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_largeIcon_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_LargeIcon(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addDescriptionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_description_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_description_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_Description(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Display Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addDisplayNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortComponent_displayName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortComponent_displayName_feature", "_UI_PortComponent_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getPortComponent_DisplayName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_WsdlPort());
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_ServiceImplBean());
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_Handlers());
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_DescriptionType());
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_DisplayNameType());
- childrenReferences.add(WsddPackage.eINSTANCE.getPortComponent_IconType());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns PortComponent.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- /*
- * public Object getImage(Object object) { return
- * getResourceLocator().getImage("full/obj16/PortComponent"); }
- */
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((PortComponent)object).getPortComponentName(); return label == null || label.length() == 0 ?
- * getString("_UI_PortComponent_type") : getString("_UI_PortComponent_type") + " " + label; }
- */
-
- /**
- * This returns PortComponent.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @non-generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/portcomponent.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PortComponent) object).getPortComponentName();
- return label == null || label.length() == 0 ? getString("%_UI_PortComponent_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(PortComponent.class)) {
- case WsddPackage.PORT_COMPONENT__PORT_COMPONENT_NAME :
- case WsddPackage.PORT_COMPONENT__SERVICE_ENDPOINT_INTERFACE :
- case WsddPackage.PORT_COMPONENT__SMALL_ICON :
- case WsddPackage.PORT_COMPONENT__LARGE_ICON :
- case WsddPackage.PORT_COMPONENT__DESCRIPTION :
- case WsddPackage.PORT_COMPONENT__DISPLAY_NAME :
- case WsddPackage.PORT_COMPONENT__WSDL_PORT :
- case WsddPackage.PORT_COMPONENT__SERVICE_IMPL_BEAN :
- case WsddPackage.PORT_COMPONENT__HANDLERS :
- case WsddPackage.PORT_COMPONENT__DESCRIPTION_TYPE :
- case WsddPackage.PORT_COMPONENT__DISPLAY_NAME_TYPE :
- case WsddPackage.PORT_COMPONENT__ICON_TYPE : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_WsdlPort(), WsddFactory.eINSTANCE.createWSDLPort()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_ServiceImplBean(), WsddFactory.eINSTANCE.createServiceImplBean()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_Handlers(), WsddFactory.eINSTANCE.createHandler()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_DescriptionType(), WscommonFactory.eINSTANCE.createDescriptionType()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_DisplayNameType(), WscommonFactory.eINSTANCE.createDisplayNameType()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getPortComponent_IconType(), CommonFactory.eINSTANCE.createIconType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentRefItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentRefItemProvider.java
deleted file mode 100644
index 5979bc609..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortComponentRefItemProvider.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.PortComponentRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-/**
- * This is the item provider adpater for a {@link com.ibm.etools.wsclient.PortComponentRef}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class PortComponentRefItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PortComponentRefItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addPortComponentLinkPropertyDescriptor(object);
- addServiceEndpointInterfacePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Port Component Link feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- */
- protected void addPortComponentLinkPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_PortComponentRef_portComponentLink_feature"), //$NON-NLS-1$
- getString("%_UI_PortComponentRef_portComponentLink_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getPortComponentRef_PortComponentLink(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Service Endpoint Interface feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- */
- protected void addServiceEndpointInterfacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_PortComponentRef_serviceEndpointInterface_feature"), //$NON-NLS-1$
- getString("%_UI_PortComponentRef_serviceEndpointInterface_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getPortComponentRef_ServiceEndpointInterface(), false));
- }
-
-
- /**
- * This returns PortComponentRef.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/portcomponent.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((PortComponentRef)object).getPortComponentLink(); return label == null || label.length() ==
- * 0 ? getString("_UI_PortComponentRef_type") : getString("_UI_PortComponentRef_type") + " " +
- * label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PortComponentRef) object).getPortComponentLink();
- return label == null || label.length() == 0 ? getString("%_UI_PortComponentRef_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(PortComponentRef.class)) {
- case Webservice_clientPackage.PORT_COMPONENT_REF__PORT_COMPONENT_LINK : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortMappingItemProvider.java
deleted file mode 100644
index 1abd29cef..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortMappingItemProvider.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.PortMapping;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.PortMapping}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class PortMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PortMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addPortNamePropertyDescriptor(object);
- addJavaPortNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortMapping_id_feature", "_UI_PortMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPortMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Port Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addPortNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortMapping_portName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortMapping_portName_feature", "_UI_PortMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPortMapping_PortName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Java Port Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addJavaPortNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortMapping_javaPortName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortMapping_javaPortName_feature", "_UI_PortMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getPortMapping_JavaPortName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns PortMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/PortMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PortMapping) object).getPortName();
- return label == null || label.length() == 0 ? getString("_UI_PortMapping_type") : //$NON-NLS-1$
- getString("_UI_PortMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(PortMapping.class)) {
- case JaxrpcmapPackage.PORT_MAPPING__ID :
- case JaxrpcmapPackage.PORT_MAPPING__PORT_NAME :
- case JaxrpcmapPackage.PORT_MAPPING__JAVA_PORT_NAME : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortNameItemProvider.java
deleted file mode 100644
index 4a6bb1225..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/PortNameItemProvider.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.webservice.wscommon.PortName;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.PortName}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class PortNameItemProvider extends AbstractATKUIItemProvider implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public PortNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- //pgm addIdPropertyDescriptor(object);
- addPortNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_PortName_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_PortName_id_feature", "_UI_PortName_type"), WscommonPackage.eINSTANCE.getPortName_Id(),
- * true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Port Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addPortNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_PortName_portName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_PortName_portName_feature", "_UI_PortName_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WscommonPackage.eINSTANCE.getPortName_PortName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns PortName.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/PortName"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((PortName)object).getPortName();
- * return label == null || label.length() == 0 ? getString("_UI_PortName_type") :
- * getString("_UI_PortName_type") + " " + label; }
- */
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((PortName) object).getPortName();
- return label == null || label.length() == 0 ? getString("%_UI_PortName_type") : label; //$NON-NLS-1$
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(PortName.class)) {
- //pgm case WscommonPackage.PORT_NAME__ID:
- case WscommonPackage.PORT_NAME__PORT_NAME : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- /*
- * public ResourceLocator getResourceLocator() { return Webservicej2eeEditPlugin.INSTANCE; }
- */
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/RootTypeQnameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/RootTypeQnameItemProvider.java
deleted file mode 100644
index 1af13d20c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/RootTypeQnameItemProvider.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.RootTypeQname;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.RootTypeQname}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class RootTypeQnameItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public RootTypeQnameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns RootTypeQname.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/RootTypeQname"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((RootTypeQname) object).getCombinedQName();
- return label == null || label.length() == 0 ? getString("_UI_RootTypeQname_type") : //$NON-NLS-1$
- getString("_UI_RootTypeQname_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPHeaderItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPHeaderItemProvider.java
deleted file mode 100644
index e0511fd37..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPHeaderItemProvider.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPHeader}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class SOAPHeaderItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public SOAPHeaderItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns SOAPHeader.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/SOAPHeader"); //$NON-NLS-1$
- }
-
-
- protected String toDisplayString(String s) {
- return (s != null) ? s : ""; //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((SOAPHeader)object).getCombinedQName(); return label == null || label.length() == 0 ?
- * getString("_UI_SOAPHeader_type") : getString("_UI_SOAPHeader_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- SOAPHeader soapHeader = (SOAPHeader) object;
- String nsURI = soapHeader.getNamespaceURI();
- String localpart = soapHeader.getLocalPart();
- if (nsURI == null || nsURI.length() == 0 || localpart == null || localpart.length() == 0)
- return getString("%_UI_SOAPHeader_type"); //$NON-NLS-1$
- StringBuffer label = new StringBuffer();
- label.append(nsURI);
- label.append("#"); //$NON-NLS-1$
- label.append(localpart);
- return label.toString();
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPRoleItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPRoleItemProvider.java
deleted file mode 100644
index 31457858d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SOAPRoleItemProvider.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPRole}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class SOAPRoleItemProvider extends AbstractATKUIItemProvider implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public SOAPRoleItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- //pgm addIdPropertyDescriptor(object);
- addSoapRolePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_SOAPRole_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_SOAPRole_id_feature", "_UI_SOAPRole_type"), WscommonPackage.eINSTANCE.getSOAPRole_Id(),
- * true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Soap Role feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addSoapRolePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_SOAPRole_soapRole_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_SOAPRole_soapRole_feature", "_UI_SOAPRole_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WscommonPackage.eINSTANCE.getSOAPRole_SoapRole(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns SOAPRole.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/SOAPRole"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((SOAPRole)object).getId(); return
- * label == null || label.length() == 0 ? getString("_UI_SOAPRole_type") :
- * getString("_UI_SOAPRole_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((SOAPRole) object).getSoapRole();
- return label == null || label.length() == 0 ? getString("%_UI_SOAPRole_type") : label; //$NON-NLS-1$
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(SOAPRole.class)) {
- //pgm case WscommonPackage.SOAP_ROLE__ID:
- case WscommonPackage.SOAP_ROLE__SOAP_ROLE : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- /*
- * public ResourceLocator getResourceLocator() { return Webservicej2eeEditPlugin.INSTANCE; }
- */
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SectionComponentScopedRefHelper.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SectionComponentScopedRefHelper.java
deleted file mode 100644
index b542c9596..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/SectionComponentScopedRefHelper.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 29, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-
-
-/**
- * @author jlanuti
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class SectionComponentScopedRefHelper {
-
- private static WebServicesClient wsClient;
-
- public static void setWsClient(WebServicesClient client) {
- wsClient = client;
- }
-
- public static WebServicesClient getWsClient() {
- return wsClient;
- }
-
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointInterfaceMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointInterfaceMappingItemProvider.java
deleted file mode 100644
index 561986793..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointInterfaceMappingItemProvider.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointInterfaceMapping}object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServiceEndpointInterfaceMappingItemProvider extends InterfaceMappingItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServiceEndpointInterfaceMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addServiceEndpointInterfacePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointInterfaceMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointInterfaceMapping_id_feature", "_UI_ServiceEndpointInterfaceMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Service Endpoint Interface feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addServiceEndpointInterfacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointInterfaceMapping_serviceEndpointInterface_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointInterfaceMapping_serviceEndpointInterface_feature", "_UI_ServiceEndpointInterfaceMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_ServiceEndpointInterface(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlPortType());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlBinding());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ServiceEndpointInterfaceMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ServiceEndpointInterfaceMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ServiceEndpointInterfaceMapping) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_ServiceEndpointInterfaceMapping_type") : //$NON-NLS-1$
- getString("_UI_ServiceEndpointInterfaceMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServiceEndpointInterfaceMapping.class)) {
- case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__ID :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_INTERFACE :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_PORT_TYPE :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__WSDL_BINDING :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_INTERFACE_MAPPING__SERVICE_ENDPOINT_METHOD_MAPPINGS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlPortType(), JaxrpcmapFactory.eINSTANCE.createWSDLPortType()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_WsdlBinding(), JaxrpcmapFactory.eINSTANCE.createWSDLBinding()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceEndpointInterfaceMapping_ServiceEndpointMethodMappings(), JaxrpcmapFactory.eINSTANCE.createServiceEndpointMethodMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointMethodMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointMethodMappingItemProvider.java
deleted file mode 100644
index 84b1e729d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceEndpointMethodMappingItemProvider.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceEndpointMethodMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceEndpointMethodMapping}object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServiceEndpointMethodMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServiceEndpointMethodMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addJavaMethodNamePropertyDescriptor(object);
- addWsdlOperationPropertyDescriptor(object);
- addWrappedElementPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointMethodMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointMethodMapping_id_feature", "_UI_ServiceEndpointMethodMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Java Method Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addJavaMethodNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointMethodMapping_javaMethodName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointMethodMapping_javaMethodName_feature", "_UI_ServiceEndpointMethodMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_JavaMethodName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Operation feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlOperationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointMethodMapping_wsdlOperation_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointMethodMapping_wsdlOperation_feature", "_UI_ServiceEndpointMethodMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_WsdlOperation(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wrapped Element feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addWrappedElementPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceEndpointMethodMapping_wrappedElement_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceEndpointMethodMapping_wrappedElement_feature", "_UI_ServiceEndpointMethodMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_WrappedElement(), true, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_MethodParamPartsMappings());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_WsdlReturnValueMapping());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ServiceEndpointMethodMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ServiceEndpointMethodMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ServiceEndpointMethodMapping) object).getJavaMethodName();
- return label == null || label.length() == 0 ? getString("_UI_ServiceEndpointMethodMapping_type") : //$NON-NLS-1$
- getString("_UI_ServiceEndpointMethodMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServiceEndpointMethodMapping.class)) {
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__ID :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__JAVA_METHOD_NAME :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_OPERATION :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WRAPPED_ELEMENT :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__METHOD_PARAM_PARTS_MAPPINGS :
- case JaxrpcmapPackage.SERVICE_ENDPOINT_METHOD_MAPPING__WSDL_RETURN_VALUE_MAPPING : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_MethodParamPartsMappings(), JaxrpcmapFactory.eINSTANCE.createMethodParamPartsMapping()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceEndpointMethodMapping_WsdlReturnValueMapping(), JaxrpcmapFactory.eINSTANCE.createWSDLReturnValueMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceImplBeanItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceImplBeanItemProvider.java
deleted file mode 100644
index 2589f8bd2..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceImplBeanItemProvider.java
+++ /dev/null
@@ -1,262 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServiceImplBean}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServiceImplBeanItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServiceImplBeanItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_ServiceImplBean_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_ServiceImplBean_id_feature", "_UI_ServiceImplBean_type"),
- * WsddPackage.eINSTANCE.getServiceImplBean_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WsddPackage.eINSTANCE.getServiceImplBean_EEJBLink());
- childrenReferences.add(WsddPackage.eINSTANCE.getServiceImplBean_EServletLink());
- childrenReferences.add(WsddPackage.eINSTANCE.getServiceImplBean_BeanLink());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ServiceImplBean.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/srvce_elem_obj.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((ServiceImplBean)object).getId();
- * return label == null || label.length() == 0 ? getString("_UI_ServiceImplBean_type") :
- * getString("_UI_ServiceImplBean_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- ServiceImplBean serviceImplBean = (ServiceImplBean) object;
- String ejbLink = serviceImplBean.getEEJBLink().getEjbLink();
- if (ejbLink != null && ejbLink.length() > 0)
- return ejbLink;
- String beanLink = serviceImplBean.getBeanLink().toString();
- if (beanLink != null && beanLink.length() > 0)
- return beanLink;
- String servletLink = serviceImplBean.getEServletLink().getServletLink();
- if (servletLink != null && servletLink.length() > 0)
- return servletLink;
- return getString("%_UI_ServiceImplBean_type"); //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServiceImplBean.class)) {
- case WsddPackage.SERVICE_IMPL_BEAN__EEJB_LINK :
- case WsddPackage.SERVICE_IMPL_BEAN__ESERVLET_LINK :
- case WsddPackage.SERVICE_IMPL_BEAN__BEAN_LINK : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getServiceImplBean_EEJBLink(), WsddFactory.eINSTANCE.createEJBLink()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getServiceImplBean_EServletLink(), WsddFactory.eINSTANCE.createServletLink()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getServiceImplBean_BeanLink(), WsddFactory.eINSTANCE.createBeanLink()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getServiceImplBean_BeanLink(), WsddFactory.eINSTANCE.createServletLink()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getServiceImplBean_BeanLink(), WsddFactory.eINSTANCE.createEJBLink()));
- }
-
- /**
- * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getCreateChildText(Object owner, Object feature, Object child, Collection selection) {
- boolean qualify = feature == WsddPackage.eINSTANCE.getServiceImplBean_EServletLink() || feature == WsddPackage.eINSTANCE.getServiceImplBean_BeanLink() || feature == WsddPackage.eINSTANCE.getServiceImplBean_EEJBLink();
- return getString(qualify ? "_UI_CreateChild_text2" : "_UI_CreateChild_text", //$NON-NLS-1$ //$NON-NLS-2$
- new Object[]{getTypeText(child), getFeatureText(feature), getTypeText(owner)});
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceInterfaceMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceInterfaceMappingItemProvider.java
deleted file mode 100644
index bab157845..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceInterfaceMappingItemProvider.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.ServiceInterfaceMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.ServiceInterfaceMapping}object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServiceInterfaceMappingItemProvider extends InterfaceMappingItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServiceInterfaceMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addServiceInterfacePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceInterfaceMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceInterfaceMapping_id_feature", "_UI_ServiceInterfaceMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Service Interface feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addServiceInterfacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServiceInterfaceMapping_serviceInterface_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServiceInterfaceMapping_serviceInterface_feature", "_UI_ServiceInterfaceMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_ServiceInterface(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_WsdlServiceName());
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_PortMappings());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ServiceInterfaceMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/ServiceInterfaceMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ServiceInterfaceMapping) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_ServiceInterfaceMapping_type") : //$NON-NLS-1$
- getString("_UI_ServiceInterfaceMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServiceInterfaceMapping.class)) {
- case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__ID :
- case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__SERVICE_INTERFACE :
- case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__WSDL_SERVICE_NAME :
- case JaxrpcmapPackage.SERVICE_INTERFACE_MAPPING__PORT_MAPPINGS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_WsdlServiceName(), JaxrpcmapFactory.eINSTANCE.createWSDLServiceName()));
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getServiceInterfaceMapping_PortMappings(), JaxrpcmapFactory.eINSTANCE.createPortMapping()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefEditorItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefEditorItemProvider.java
deleted file mode 100644
index c8f8ed31d..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefEditorItemProvider.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Mar 26, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-/**
- * @author cbridgha
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class ServiceRefEditorItemProvider extends ServiceRefItemProvider {
- /**
- * @param adapterFactory
- */
- public ServiceRefEditorItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getServiceRef_Handlers());
- }
- return childrenReferences;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.edit.provider.ItemProviderAdapter#hasChildren(java.lang.Object)
- */
- @Override
- public boolean hasChildren(Object arg0) {
- return false;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefItemProvider.java
deleted file mode 100644
index d97578dd8..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServiceRefItemProvider.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.internal.provider.CompatibilityDescriptionGroupItemProvider;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-
-/**
- * This is the item provider adpater for a {@link com.ibm.etools.wsclient.ServiceRef}object. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServiceRefItemProvider extends CompatibilityDescriptionGroupItemProvider {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServiceRefItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addServiceInterfacePropertyDescriptor(object);
- addServiceRefNamePropertyDescriptor(object);
- addWsdlFilePropertyDescriptor(object);
- addJaxrpcMappingFilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Service Ref Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addServiceRefNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_ServiceRef_serviceRefName_feature"), //$NON-NLS-1$
- getString("%_UI_ServiceRef_serviceRefName_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceRefName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl File feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- */
- protected void addWsdlFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_ServiceRef_wsdlFile_feature"), //$NON-NLS-1$
- getString("%_UI_ServiceRef_wsdlFile_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getServiceRef_WsdlFile(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Jaxrpc Mapping File feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- */
- protected void addJaxrpcMappingFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_ServiceRef_jaxrpcMappingFile_feature"), //$NON-NLS-1$
- getString("%_UI_ServiceRef_jaxrpcMappingFile_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getServiceRef_JaxrpcMappingFile(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Service Interface feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- */
- protected void addServiceInterfacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("%_UI_ServiceRef_serviceInterface_feature"), //$NON-NLS-1$
- getString("%_UI_ServiceRef_serviceInterface_feature_desc"), //$NON-NLS-1$
- Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceInterface(), false));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- //childrenReferences.add(Webservice_clientPackage.eINSTANCE.getServiceRef_PortComponentRefs());
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getServiceRef_Handlers());
- //childrenReferences.add(Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceQname());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns ServiceRef.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/serviceref.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((ServiceRef)object).getServiceRefName(); return label == null || label.length() == 0 ?
- * getString("_UI_ServiceRef_type") : getString("_UI_ServiceRef_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ServiceRef) object).getServiceRefName();
- return "ServiceRef " + label; //$NON-NLS-1$
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServiceRef.class)) {
- case Webservice_clientPackage.SERVICE_REF__SERVICE_REF_NAME :
- case Webservice_clientPackage.SERVICE_REF__WSDL_FILE :
- case Webservice_clientPackage.SERVICE_REF__JAXRPC_MAPPING_FILE :
- case Webservice_clientPackage.SERVICE_REF__PORT_COMPONENT_REFS :
- case Webservice_clientPackage.SERVICE_REF__HANDLERS :
- case Webservice_clientPackage.SERVICE_REF__SERVICE_QNAME : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getServiceRef_PortComponentRefs(), Webservice_clientFactory.eINSTANCE.createPortComponentRef()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getServiceRef_Handlers(), Webservice_clientFactory.eINSTANCE.createHandler()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceQname(), CommonFactory.eINSTANCE.createQName()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceQname(), WscommonFactory.eINSTANCE.createSOAPHeader()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getServiceRef_ServiceQname(), WsddFactory.eINSTANCE.createWSDLPort()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServletLinkItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServletLinkItemProvider.java
deleted file mode 100644
index 8e3ce617a..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/ServletLinkItemProvider.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServletLink}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class ServletLinkItemProvider extends BeanLinkItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public ServletLinkItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addServletLinkPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_ServletLink_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_ServletLink_id_feature", "_UI_ServletLink_type"),
- * WsddPackage.eINSTANCE.getServletLink_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Servlet Link feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addServletLinkPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_ServletLink_servletLink_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_ServletLink_servletLink_feature", "_UI_ServletLink_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getServletLink_ServletLink(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns ServletLink.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/servlet.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((ServletLink)object).getId(); return
- * label == null || label.length() == 0 ? getString("_UI_ServletLink_type") :
- * getString("_UI_ServletLink_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ServletLink) object).getServletLink();
- return label == null || label.length() == 0 ? getString("%_UI_ServletLink_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(ServletLink.class)) {
- case WsddPackage.SERVLET_LINK__SERVLET_LINK : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/VariableMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/VariableMappingItemProvider.java
deleted file mode 100644
index f0ecbe7de..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/VariableMappingItemProvider.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.VariableMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.VariableMapping}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class VariableMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public VariableMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addJavaVariableNamePropertyDescriptor(object);
- addXmlElementNamePropertyDescriptor(object);
- addDataMemberPropertyDescriptor(object);
- addXmlAttributeNamePropertyDescriptor(object);
- addXmlWildcardPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_id_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Java Variable Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addJavaVariableNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_javaVariableName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_javaVariableName_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_JavaVariableName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Xml Element Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addXmlElementNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_xmlElementName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_xmlElementName_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_XmlElementName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Data Member feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addDataMemberPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_dataMember_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_dataMember_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_DataMember(), true, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Xml Attribute Name feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addXmlAttributeNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_xmlAttributeName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_xmlAttributeName_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_XmlAttributeName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Xml Wildcard feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addXmlWildcardPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_VariableMapping_xmlWildcard_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_VariableMapping_xmlWildcard_feature", "_UI_VariableMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getVariableMapping_XmlWildcard(), true, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE));
- }
-
-
- /**
- * This returns VariableMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/VariableMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((VariableMapping) object).getJavaVariableName();
- return label == null || label.length() == 0 ? getString("_UI_VariableMapping_type") : //$NON-NLS-1$
- getString("_UI_VariableMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(VariableMapping.class)) {
- case JaxrpcmapPackage.VARIABLE_MAPPING__ID :
- case JaxrpcmapPackage.VARIABLE_MAPPING__JAVA_VARIABLE_NAME :
- case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ELEMENT_NAME :
- case JaxrpcmapPackage.VARIABLE_MAPPING__DATA_MEMBER :
- case JaxrpcmapPackage.VARIABLE_MAPPING__XML_ATTRIBUTE_NAME :
- case JaxrpcmapPackage.VARIABLE_MAPPING__XML_WILDCARD : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLBindingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLBindingItemProvider.java
deleted file mode 100644
index 343d2006b..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLBindingItemProvider.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLBinding;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLBinding}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLBindingItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLBindingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns WSDLBinding.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLBinding"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLBinding) object).getCombinedQName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLBinding_type") : //$NON-NLS-1$
- getString("_UI_WSDLBinding_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageItemProvider.java
deleted file mode 100644
index 2f5e08ec8..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageItemProvider.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessage}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLMessageItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLMessageItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns WSDLMessage.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLMessage"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLMessage) object).getCombinedQName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLMessage_type") : //$NON-NLS-1$
- getString("_UI_WSDLMessage_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageMappingItemProvider.java
deleted file mode 100644
index d2de2f029..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessageMappingItemProvider.java
+++ /dev/null
@@ -1,203 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessageMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessageMapping}object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLMessageMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLMessageMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addWsdlMessagePartNamePropertyDescriptor(object);
- addParameterModePropertyDescriptor(object);
- addSoapHeaderPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessageMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessageMapping_id_feature", "_UI_WSDLMessageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Message Part Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlMessagePartNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessageMapping_wsdlMessagePartName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessageMapping_wsdlMessagePartName_feature", "_UI_WSDLMessageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_WsdlMessagePartName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Parameter Mode feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addParameterModePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessageMapping_parameterMode_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessageMapping_parameterMode_feature", "_UI_WSDLMessageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_ParameterMode(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Soap Header feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addSoapHeaderPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessageMapping_soapHeader_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessageMapping_soapHeader_feature", "_UI_WSDLMessageMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_SoapHeader(), true, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_WsdlMessage());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns WSDLMessageMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLMessageMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLMessageMapping) object).getWsdlMessagePartName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLMessageMapping_type") : //$NON-NLS-1$
- getString("_UI_WSDLMessageMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WSDLMessageMapping.class)) {
- case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__ID :
- case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE_PART_NAME :
- case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__PARAMETER_MODE :
- case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__SOAP_HEADER :
- case JaxrpcmapPackage.WSDL_MESSAGE_MAPPING__WSDL_MESSAGE : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getWSDLMessageMapping_WsdlMessage(), JaxrpcmapFactory.eINSTANCE.createWSDLMessage()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessagePartNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessagePartNameItemProvider.java
deleted file mode 100644
index b4f64f33b..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLMessagePartNameItemProvider.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLMessagePartName;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLMessagePartName}object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLMessagePartNameItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLMessagePartNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addWsdlMessagePartNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessagePartName_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessagePartName_id_feature", "_UI_WSDLMessagePartName_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessagePartName_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Message Part Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlMessagePartNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLMessagePartName_wsdlMessagePartName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLMessagePartName_wsdlMessagePartName_feature", "_UI_WSDLMessagePartName_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLMessagePartName_WsdlMessagePartName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns WSDLMessagePartName.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLMessagePartName"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLMessagePartName) object).getWsdlMessagePartName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLMessagePartName_type") : //$NON-NLS-1$
- getString("_UI_WSDLMessagePartName_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WSDLMessagePartName.class)) {
- case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__ID :
- case JaxrpcmapPackage.WSDL_MESSAGE_PART_NAME__WSDL_MESSAGE_PART_NAME : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLOperationItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLOperationItemProvider.java
deleted file mode 100644
index 7bdd5551f..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLOperationItemProvider.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLOperation;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLOperation}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLOperationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLOperationItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addWsdlOperationPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLOperation_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLOperation_id_feature", "_UI_WSDLOperation_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLOperation_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Operation feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlOperationPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLOperation_wsdlOperation_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLOperation_wsdlOperation_feature", "_UI_WSDLOperation_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLOperation_WsdlOperation(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
-
- /**
- * This returns WSDLOperation.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLOperation"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLOperation) object).getId();
- return label == null || label.length() == 0 ? getString("_UI_WSDLOperation_type") : //$NON-NLS-1$
- getString("_UI_WSDLOperation_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WSDLOperation.class)) {
- case JaxrpcmapPackage.WSDL_OPERATION__ID :
- case JaxrpcmapPackage.WSDL_OPERATION__WSDL_OPERATION : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortItemProvider.java
deleted file mode 100644
index 2ca62d143..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortItemProvider.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WSDLPort}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLPortItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLPortItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns WSDLPort.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/full/obj16/wsdl.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((WSDLPort)object).getCombinedQName();
- * return label == null || label.length() == 0 ? getString("_UI_WSDLPort_type") :
- * getString("_UI_WSDLPort_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- WSDLPort wsdlport = (WSDLPort) object;
- String nsURI = wsdlport.getNamespaceURI();
- String localpart = wsdlport.getLocalPart();
- if (nsURI == null || nsURI.length() == 0 || localpart == null || localpart.length() == 0)
- return getString("%_UI_WSDLPort_type"); //$NON-NLS-1$
- StringBuffer label = new StringBuffer();
- label.append(nsURI);
- label.append("#"); //$NON-NLS-1$
- label.append(localpart);
- return label.toString();
- }
-
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortTypeItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortTypeItemProvider.java
deleted file mode 100644
index 5e3805ca4..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLPortTypeItemProvider.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLPortType;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLPortType}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLPortTypeItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLPortTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns WSDLPortType.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLPortType"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLPortType) object).getCombinedQName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLPortType_type") : //$NON-NLS-1$
- getString("_UI_WSDLPortType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLReturnValueMappingItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLReturnValueMappingItemProvider.java
deleted file mode 100644
index 417cae069..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLReturnValueMappingItemProvider.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLReturnValueMapping;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLReturnValueMapping}object. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WSDLReturnValueMappingItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLReturnValueMappingItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addIdPropertyDescriptor(object);
- addMethodReturnValuePropertyDescriptor(object);
- addWsdlMessagePartNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLReturnValueMapping_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLReturnValueMapping_id_feature", "_UI_WSDLReturnValueMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping_Id(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Method Return Value feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addMethodReturnValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLReturnValueMapping_methodReturnValue_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLReturnValueMapping_methodReturnValue_feature", "_UI_WSDLReturnValueMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping_MethodReturnValue(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl Message Part Name feature. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlMessagePartNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WSDLReturnValueMapping_wsdlMessagePartName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WSDLReturnValueMapping_wsdlMessagePartName_feature", "_UI_WSDLReturnValueMapping_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping_WsdlMessagePartName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping_WsdlMessage());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns WSDLReturnValueMapping.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLReturnValueMapping"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLReturnValueMapping) object).getWsdlMessagePartName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLReturnValueMapping_type") : //$NON-NLS-1$
- getString("_UI_WSDLReturnValueMapping_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WSDLReturnValueMapping.class)) {
- case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__ID :
- case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__METHOD_RETURN_VALUE :
- case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE_PART_NAME :
- case JaxrpcmapPackage.WSDL_RETURN_VALUE_MAPPING__WSDL_MESSAGE : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(JaxrpcmapPackage.eINSTANCE.getWSDLReturnValueMapping_WsdlMessage(), JaxrpcmapFactory.eINSTANCE.createWSDLMessage()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLServiceNameItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLServiceNameItemProvider.java
deleted file mode 100644
index 1ad974318..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WSDLServiceNameItemProvider.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.QNameItemProvider;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.WSDLServiceName;
-
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.jaxrpcmap.WSDLServiceName}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class WSDLServiceNameItemProvider extends QNameItemProvider{
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WSDLServiceNameItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
-
- /**
- * This returns WSDLServiceName.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WSDLServiceName"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WSDLServiceName) object).getCombinedQName();
- return label == null || label.length() == 0 ? getString("_UI_WSDLServiceName_type") : //$NON-NLS-1$
- getString("_UI_WSDLServiceName_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Webservicej2eeEditPlugin.INSTANCE;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServiceDescriptionItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServiceDescriptionItemProvider.java
deleted file mode 100644
index fc6cfa9de..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServiceDescriptionItemProvider.java
+++ /dev/null
@@ -1,352 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-/**
- * This is the item provider adpater for a
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServiceDescription}object. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class WebServiceDescriptionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WebServiceDescriptionItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addJaxrpcMappingFilePropertyDescriptor(object);
- addWebServiceDescriptionNamePropertyDescriptor(object);
- addWsdlFilePropertyDescriptor(object);
- addSmallIconPropertyDescriptor(object);
- addLargeIconPropertyDescriptor(object);
- addDescriptionPropertyDescriptor(object);
- addDisplayNamePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_WebServiceDescription_id_feature"),
- * getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_id_feature",
- * "_UI_WebServiceDescription_type"), WsddPackage.eINSTANCE.getWebServiceDescription_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Jaxrpc Mapping File feature. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addJaxrpcMappingFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_jaxrpcMappingFile_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_jaxrpcMappingFile_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_JaxrpcMappingFile(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Web Service Description Name feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected void addWebServiceDescriptionNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_webServiceDescriptionName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_webServiceDescriptionName_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_WebServiceDescriptionName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Wsdl File feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addWsdlFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_wsdlFile_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_wsdlFile_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_WsdlFile(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Small Icon feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addSmallIconPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_smallIcon_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_smallIcon_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_SmallIcon(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Large Icon feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addLargeIconPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_largeIcon_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_largeIcon_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_LargeIcon(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addDescriptionPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_description_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_description_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_Description(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Display Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addDisplayNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_WebServiceDescription_displayName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_WebServiceDescription_displayName_feature", "_UI_WebServiceDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getWebServiceDescription_DisplayName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WsddPackage.eINSTANCE.getWebServiceDescription_PortComponents());
- childrenReferences.add(WsddPackage.eINSTANCE.getWebServiceDescription_DescriptionType());
- childrenReferences.add(WsddPackage.eINSTANCE.getWebServiceDescription_DisplayNameType());
- childrenReferences.add(WsddPackage.eINSTANCE.getWebServiceDescription_IconType());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns WebServiceDescription.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- /*
- * public Object getImage(Object object) { return
- * getResourceLocator().getImage("full/obj16/WebServiceDescription"); }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label =
- * ((WebServiceDescription)object).getWebServiceDescriptionName(); return label == null ||
- * label.length() == 0 ? getString("_UI_WebServiceDescription_type") :
- * getString("_UI_WebServiceDescription_type") + " " + label; }
- */
-
- /**
- * This returns WebServiceDescription.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/webservicedesc.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WebServiceDescription) object).getWebServiceDescriptionName();
- return label == null || label.length() == 0 ? getString("%_UI_WebServiceDescription_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WebServiceDescription.class)) {
- case WsddPackage.WEB_SERVICE_DESCRIPTION__JAXRPC_MAPPING_FILE :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__WEB_SERVICE_DESCRIPTION_NAME :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__WSDL_FILE :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__SMALL_ICON :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__LARGE_ICON :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__PORT_COMPONENTS :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__DESCRIPTION_TYPE :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__DISPLAY_NAME_TYPE :
- case WsddPackage.WEB_SERVICE_DESCRIPTION__ICON_TYPE : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getWebServiceDescription_PortComponents(), WsddFactory.eINSTANCE.createPortComponent()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getWebServiceDescription_DescriptionType(), WscommonFactory.eINSTANCE.createDescriptionType()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getWebServiceDescription_DisplayNameType(), WscommonFactory.eINSTANCE.createDisplayNameType()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getWebServiceDescription_IconType(), CommonFactory.eINSTANCE.createIconType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesClientItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesClientItemProvider.java
deleted file mode 100644
index 54ec7b7d1..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesClientItemProvider.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsclient.WebServicesClient;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-
-
-/**
- * This is the item provider adpater for a {@link com.ibm.etools.wsclient.WebServicesClient}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WebServicesClientItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WebServicesClientItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getWebServicesClient_ComponentScopedRefs());
- childrenReferences.add(Webservice_clientPackage.eINSTANCE.getWebServicesClient_ServiceRefs());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns WebServicesClient.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WebServicesClient"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
-
- @Override
- public String getText(Object object) {
- //return getString("_UI_WebServicesClient_type");
- return getString("%_UI_WebServicesClient_type"); //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WebServicesClient.class)) {
- case Webservice_clientPackage.WEB_SERVICES_CLIENT__COMPONENT_SCOPED_REFS :
- case Webservice_clientPackage.WEB_SERVICES_CLIENT__SERVICE_REFS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getWebServicesClient_ComponentScopedRefs(), Webservice_clientFactory.eINSTANCE.createComponentScopedRefs()));
-
- newChildDescriptors.add(createChildParameter(Webservice_clientPackage.eINSTANCE.getWebServicesClient_ServiceRefs(), Webservice_clientFactory.eINSTANCE.createServiceRef()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesItemProvider.java
deleted file mode 100644
index 43918d2cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WebServicesItemProvider.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.jst.j2ee.common.internal.provider.CompatibilityDescriptionGroupItemProvider;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServices}
- * object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class WebServicesItemProvider extends CompatibilityDescriptionGroupItemProvider {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public WebServicesItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_WebServices_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_WebServices_id_feature", "_UI_WebServices_type"),
- * WsddPackage.eINSTANCE.getWebServices_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WsddPackage.eINSTANCE.getWebServices_WebServiceDescriptions());
- }
- return childrenReferences;
- }
-
-
- /**
- * This returns WebServices.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("full/obj16/WebServices"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((WebServices)object).getDisplayName();
- * return label == null || label.length() == 0 ? getString("_UI_WebServices_type") :
- * getString("_UI_WebServices_type") + " " + label; }
- */
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((WebServices) object).getDisplayName();
- return label == null || label.length() == 0 ? getString("%_UI_WebServices_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(WebServices.class)) {
- case WsddPackage.WEB_SERVICES__WEB_SERVICE_DESCRIPTIONS : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getWebServices_WebServiceDescriptions(), WsddFactory.eINSTANCE.createWebServiceDescription()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientEditorItemProviderFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientEditorItemProviderFactory.java
deleted file mode 100644
index 633f5ca0c..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientEditorItemProviderFactory.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Mar 26, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.emf.common.notify.Adapter;
-
-/**
- * @author cbridgha
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class Webservice_clientEditorItemProviderFactory extends Webservice_clientItemProviderAdapterFactory {
- /**
- *
- */
- public Webservice_clientEditorItemProviderFactory() {
- super();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.internal.webservice.wsclient.util.Webservice_clientAdapterFactory#createServiceRefAdapter()
- */
- @Override
- public Adapter createServiceRefAdapter() {
- if (serviceRefItemProvider == null) {
- serviceRefItemProvider = new ServiceRefEditorItemProvider(this);
- }
-
- return serviceRefItemProvider;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientItemProviderAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientItemProviderAdapterFactory.java
deleted file mode 100644
index e2060459b..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservice_clientItemProviderAdapterFactory.java
+++ /dev/null
@@ -1,287 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.jst.j2ee.webservice.wsclient.internal.util.Webservice_clientAdapterFactory;
-
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers. The
- * adapters generated by this factory convert EMF adapter notifications into calls to
- * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class Webservice_clientItemProviderAdapterFactory extends Webservice_clientAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by
- * {@link #isFactoryForType isFactoryForType}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected Collection supportedTypes = new ArrayList();
-
- /**
- * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Webservice_clientItemProviderAdapterFactory() {
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- }
-
- /**
- * This keeps track of the one adapter used for all {@link com.ibm.etools.wsclient.ServiceRef}
- * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ServiceRefItemProvider serviceRefItemProvider;
-
- /**
- * This creates an adapter for a {@link com.ibm.etools.wsclient.ServiceRef}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServiceRefAdapter() {
- if (serviceRefItemProvider == null) {
- serviceRefItemProvider = new ServiceRefItemProvider(this);
- }
-
- return serviceRefItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link com.ibm.etools.wsclient.PortComponentRef}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected PortComponentRefItemProvider portComponentRefItemProvider;
-
- /**
- * This creates an adapter for a {@link com.ibm.etools.wsclient.PortComponentRef}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPortComponentRefAdapter() {
- if (portComponentRefItemProvider == null) {
- portComponentRefItemProvider = new PortComponentRefItemProvider(this);
- }
-
- return portComponentRefItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link com.ibm.etools.wsclient.Handler}
- * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected HandlerItemProvider handlerItemProvider;
-
- /**
- * This creates an adapter for a {@link com.ibm.etools.wsclient.Handler}. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createHandlerAdapter() {
- if (handlerItemProvider == null) {
- handlerItemProvider = new HandlerItemProvider(this);
- }
-
- return handlerItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link com.ibm.etools.wsclient.WebServicesClient}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected WebServicesClientItemProvider webServicesClientItemProvider;
-
- /**
- * This creates an adapter for a {@link com.ibm.etools.wsclient.WebServicesClient}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWebServicesClientAdapter() {
- if (webServicesClientItemProvider == null) {
- webServicesClientItemProvider = new WebServicesClientItemProvider(this);
- }
-
- return webServicesClientItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link com.ibm.etools.wsclient.ComponentScopedRefs}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected ComponentScopedRefsItemProvider componentScopedRefsItemProvider;
-
- /**
- * This creates an adapter for a {@link com.ibm.etools.wsclient.ComponentScopedRefs}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createComponentScopedRefsAdapter() {
- if (componentScopedRefsItemProvider == null) {
- componentScopedRefsItemProvider = new ComponentScopedRefsItemProvider(this);
- }
-
- return componentScopedRefsItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java
deleted file mode 100644
index 795ed2615..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/Webservicej2eeEditPlugin.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2004 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.emf.common.EMFPlugin;
-import org.eclipse.emf.common.util.ResourceLocator;
-
-/**
- * This is the central singleton for the Webservice-j2ee edit plugin. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public final class Webservicej2eeEditPlugin extends EMFPlugin {
- /**
- * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final Webservicej2eeEditPlugin INSTANCE = new Webservicej2eeEditPlugin();
-
- /**
- * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private static Implementation plugin;
-
- /**
- * Create the instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Webservicej2eeEditPlugin() {
- super(new ResourceLocator[]{});
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the singleton instance.
- * @generated
- */
- @Override
- public ResourceLocator getPluginResourceLocator() {
- return plugin;
- }
-
- /**
- * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the singleton instance.
- * @generated
- */
- public static Implementation getPlugin() {
- return plugin;
- }
-
- /**
- * The actual implementation of the Eclipse <b>Plugin </b>. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static class Implementation extends EclipsePlugin {
- /**
- * Creates an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param descriptor
- * the description of the plugin.
- * @generated
- */
- public Implementation(IPluginDescriptor descriptor) {
- super(descriptor);
-
- // Remember the static instance.
- //
- plugin = this;
- }
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WscommonItemProviderAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WscommonItemProviderAdapterFactory.java
deleted file mode 100644
index 6f17cb050..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WscommonItemProviderAdapterFactory.java
+++ /dev/null
@@ -1,316 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITableItemLabelProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.jst.j2ee.webservice.wscommon.internal.util.WscommonAdapterFactory;
-
-
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers. The
- * adapters generated by this factory convert EMF adapter notifications into calls to
- * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class WscommonItemProviderAdapterFactory extends WscommonAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by
- * {@link #isFactoryForType isFactoryForType}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected Collection supportedTypes = new ArrayList();
-
- /**
- * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public WscommonItemProviderAdapterFactory() {
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(ITableItemLabelProvider.class);
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.InitParam}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected InitParamItemProvider initParamItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.InitParam}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createInitParamAdapter() {
- if (initParamItemProvider == null) {
- initParamItemProvider = new InitParamItemProvider(this);
- }
-
- return initParamItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPHeader}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected SOAPHeaderItemProvider soapHeaderItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPHeader}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createSOAPHeaderAdapter() {
- if (soapHeaderItemProvider == null) {
- soapHeaderItemProvider = new SOAPHeaderItemProvider(this);
- }
-
- return soapHeaderItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPRole}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected SOAPRoleItemProvider soapRoleItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.SOAPRole}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createSOAPRoleAdapter() {
- if (soapRoleItemProvider == null) {
- soapRoleItemProvider = new SOAPRoleItemProvider(this);
- }
-
- return soapRoleItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.PortName}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected PortNameItemProvider portNameItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.PortName}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPortNameAdapter() {
- if (portNameItemProvider == null) {
- portNameItemProvider = new PortNameItemProvider(this);
- }
-
- return portNameItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DescriptionType}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DescriptionTypeItemProvider descriptionTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DescriptionType}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDescriptionTypeAdapter() {
- if (descriptionTypeItemProvider == null) {
- descriptionTypeItemProvider = new DescriptionTypeItemProvider(this);
- }
-
- return descriptionTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DisplayNameType}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DisplayNameTypeItemProvider displayNameTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wscommon.DisplayNameType}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createDisplayNameTypeAdapter() {
- if (displayNameTypeItemProvider == null) {
- displayNameTypeItemProvider = new DisplayNameTypeItemProvider(this);
- }
-
- return displayNameTypeItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WsddItemProviderAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WsddItemProviderAdapterFactory.java
deleted file mode 100644
index 0a72bc887..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/provider/WsddItemProviderAdapterFactory.java
+++ /dev/null
@@ -1,386 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.webservice.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.jst.j2ee.internal.wsdd.provider.HandlerItemProvider;
-import org.eclipse.jst.j2ee.webservice.wsdd.internal.util.WsddAdapterFactory;
-
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers. The
- * adapters generated by this factory convert EMF adapter notifications into calls to
- * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
-public class WsddItemProviderAdapterFactory extends WsddAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by
- * {@link #isFactoryForType isFactoryForType}. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected Collection supportedTypes = new ArrayList();
-
- /**
- * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public WsddItemProviderAdapterFactory() {
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServices}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected WebServicesItemProvider webServicesItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServices}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWebServicesAdapter() {
- if (webServicesItemProvider == null) {
- webServicesItemProvider = new WebServicesItemProvider(this);
- }
-
- return webServicesItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServiceDescription}instances. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected WebServiceDescriptionItemProvider webServiceDescriptionItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WebServiceDescription}.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWebServiceDescriptionAdapter() {
- if (webServiceDescriptionItemProvider == null) {
- webServiceDescriptionItemProvider = new WebServiceDescriptionItemProvider(this);
- }
-
- return webServiceDescriptionItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.PortComponent}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected PortComponentItemProvider portComponentItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.PortComponent}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createPortComponentAdapter() {
- if (portComponentItemProvider == null) {
- portComponentItemProvider = new PortComponentItemProvider(this);
- }
-
- return portComponentItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WSDLPort}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected WSDLPortItemProvider wsdlPortItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.WSDLPort}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createWSDLPortAdapter() {
- if (wsdlPortItemProvider == null) {
- wsdlPortItemProvider = new WSDLPortItemProvider(this);
- }
-
- return wsdlPortItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServiceImplBean}instances. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ServiceImplBeanItemProvider serviceImplBeanItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServiceImplBean}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServiceImplBeanAdapter() {
- if (serviceImplBeanItemProvider == null) {
- serviceImplBeanItemProvider = new ServiceImplBeanItemProvider(this);
- }
-
- return serviceImplBeanItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServletLink}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected ServletLinkItemProvider servletLinkItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.ServletLink}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createServletLinkAdapter() {
- if (servletLinkItemProvider == null) {
- servletLinkItemProvider = new ServletLinkItemProvider(this);
- }
-
- return servletLinkItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.EJBLink}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected EJBLinkItemProvider ejbLinkItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.EJBLink}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createEJBLinkAdapter() {
- if (ejbLinkItemProvider == null) {
- ejbLinkItemProvider = new EJBLinkItemProvider(this);
- }
-
- return ejbLinkItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.Handler}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected HandlerItemProvider handlerItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.Handler}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createHandlerAdapter() {
- if (handlerItemProvider == null) {
- handlerItemProvider = new HandlerItemProvider(this);
- }
-
- return handlerItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.BeanLink}instances. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected BeanLinkItemProvider beanLinkItemProvider;
-
- /**
- * This creates an adapter for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.BeanLink}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter createBeanLinkAdapter() {
- if (beanLinkItemProvider == null) {
- beanLinkItemProvider = new BeanLinkItemProvider(this);
- }
-
- return beanLinkItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/wsdd/provider/HandlerItemProvider.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/wsdd/provider/HandlerItemProvider.java
deleted file mode 100644
index da2e3eda4..000000000
--- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/wsdd/provider/HandlerItemProvider.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.wsdd.provider;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.jst.j2ee.common.internal.provider.CompatibilityDescriptionGroupItemProvider;
-import org.eclipse.jst.j2ee.internal.webservice.adapter.AdapterViewerItem;
-import org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.Handler;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-/*
- * This class should be merged with HandlerItemProvider in org.eclipse.jst.j2ee.internal.internal.internal.webservice.provider
- * package and all references to this class need to be replaced with HandlerItemProvider in
- * org.eclipse.jst.j2ee.internal.internal.internal.webservice.provider package.
- */
-
-/**
- * This is the item provider adpater for a {@link org.eclipse.jst.j2ee.internal.internal.webservice.wsdd.Handler}object.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
-public class HandlerItemProvider extends CompatibilityDescriptionGroupItemProvider {
- /**
- * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public HandlerItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- @Override
- public List getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addHandlerNamePropertyDescriptor(object);
- addHandlerClassPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * pgm protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (new
- * ItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- * getString("_UI_Handler_id_feature"), getString("_UI_PropertyDescriptor_description",
- * "_UI_Handler_id_feature", "_UI_Handler_type"), WsddPackage.eINSTANCE.getHandler_Id(), true,
- * ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
- */
-
- /**
- * This adds a property descriptor for the Handler Name feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addHandlerNamePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_Handler_handlerName_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Handler_handlerName_feature", "_UI_Handler_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getHandler_HandlerName(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This adds a property descriptor for the Handler Class feature. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected void addHandlerClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_Handler_handlerClass_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Handler_handlerClass_feature", "_UI_Handler_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- WsddPackage.eINSTANCE.getHandler_HandlerClass(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
- }
-
- /**
- * This specifies how to implement {@link #getChildren}and
- * {@link org.eclipse.emf.edit.command.AddCommand}and
- * {@link org.eclipse.emf.edit.command.RemoveCommand}support in {@link #createCommand}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Collection getChildrenReferences(Object object) {
- if (childrenReferences == null) {
- super.getChildrenReferences(object);
- childrenReferences.add(WsddPackage.eINSTANCE.getHandler_InitParams());
- childrenReferences.add(WsddPackage.eINSTANCE.getHandler_SoapHeaders());
- childrenReferences.add(WsddPackage.eINSTANCE.getHandler_SoapRoles());
- //childrenReferences.add(WsddPackage.eINSTANCE.getHandler_HandlerClass());
- }
- return childrenReferences;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EReference getChildReference(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildReference(object, child);
- }
-
-
- /**
- * This returns Handler.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- /*
- * public Object getImage(Object object) { return
- * getResourceLocator().getImage("full/obj16/Handler"); }
- */
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- */
- /*
- * public String getText(Object object) { String label = ((Handler)object).getDisplayName();
- * return label == null || label.length() == 0 ? getString("_UI_Handler_type") :
- * getString("_UI_Handler_type") + " " + label; }
- */
- /**
- * This returns Handler.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @non-generated
- */
- @Override
- public Object getImage(Object object) {
- return getResourceLocator().getImage("icons/obj16/handler.gif"); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @non-generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Handler) object).getHandlerName();
- return label == null || label.length() == 0 ? getString("%_UI_Handler_type") : label; //$NON-NLS-1$
- }
-
- /**
- * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- switch (notification.getFeatureID(Handler.class)) {
- case WsddPackage.HANDLER__HANDLER_NAME :
- case WsddPackage.HANDLER__HANDLER_CLASS :
- case WsddPackage.HANDLER__INIT_PARAMS :
- case WsddPackage.HANDLER__SOAP_HEADERS :
- case WsddPackage.HANDLER__SOAP_ROLES : {
- fireNotifyChanged(notification);
- return;
- }
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
- * describing all of the children that can be created under this object. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getHandler_InitParams(), WscommonFactory.eINSTANCE.createInitParam()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getHandler_SoapHeaders(), WscommonFactory.eINSTANCE.createSOAPHeader()));
-
- newChildDescriptors.add(createChildParameter(WsddPackage.eINSTANCE.getHandler_SoapRoles(), WscommonFactory.eINSTANCE.createSOAPRole()));
- }
-
- /**
- * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return WebServicePlugin.getInstance();
- }
-
- /**
- * This implements
- * {@link ITreeItemContentProvider#getChildren ITreeItemContentProvider.getChildren}by calling
- * {@link #getChildrenReferences getChildrenReferences}and using those to collect the children.
- */
- @Override
- public Collection getChildren(Object object) {
- if (object instanceof EList)
- return getChildrenFromEList((EList) object);
- else if (object instanceof AdapterViewerItem)
- return getChildrenFromAdapterViewerItem((AdapterViewerItem) object);
- else
- return super.getChildren(object);
- }
-
- protected Collection getChildrenFromEList(EList eList) {
- Collection result = new ArrayList();
- for (Iterator it = eList.iterator(); it.hasNext();)
- result.addAll(super.getChildren(it.next()));
- return result;
- }
-
- protected Collection getChildrenFromAdapterViewerItem(AdapterViewerItem adapterViewerItem) {
- Collection result = new ArrayList();
- EList eObjectList = adapterViewerItem.getEObjectList();
- EStructuralFeature feature = adapterViewerItem.getEStructuralFeature();
- for (Iterator it = eObjectList.iterator(); it.hasNext();) {
- EObject eObject = (EObject) it.next();
- Object object = eObject.eGet(feature);
- if (object != null) {
- if (object instanceof List)
- result.addAll((List) object);
- else
- result.add(object);
- }
- }
- return result;
- }
-}

Back to the top