Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java')
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java90
1 files changed, 0 insertions, 90 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java
deleted file mode 100644
index 3085bfd4a..000000000
--- a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 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.wst.wsdl.ui.internal.commands;
-
-import org.eclipse.wst.wsdl.MessageReference;
-import org.eclipse.wst.wsdl.Operation;
-import org.eclipse.wst.wsdl.Output;
-import org.eclipse.wst.wsdl.Part;
-import org.eclipse.wst.wsdl.ui.internal.util.NameUtil;
-
-public class AddOutputParameterCommand extends AddBaseParameterCommand {
- private Output output;
-
- public AddOutputParameterCommand(Operation operation, int style) {
- super(operation, style);
- }
-
- /*
- *
- */
- public void run() {
- Part part = null;
- if (operation.getEOutput() != null) {
- output = operation.getEOutput();
- part = createWSDLComponents(operation.getEOutput());
- }
- else {
- AddOutputCommand command = new AddOutputCommand(operation, null);
- command.run();
- output = (Output) command.getWSDLElement();
- part = createWSDLComponents(output);
- }
-
- newPart = part;
- // Create necessary XSD Objects starting with the Part reference
- newXSDElement = createXSDObjects(part);
- }
-
- protected String getAnonymousXSDElementBaseName() {
- if (newAnonymousXSDElementName == null) {
- if (this.style == AddBaseParameterCommand.PART_ELEMENT_SEQ_ELEMENT) {
- newAnonymousXSDElementName = operation.getName() + "Response"; //$NON-NLS-1$;
- }
- else {
- newAnonymousXSDElementName = getWSDLPartName();
- }
- }
-
- return newAnonymousXSDElementName;
- }
-
- protected String getNewXSDElementBaseName() {
- if (newXSDElementName == null) {
- newXSDElementName = "out"; //$NON-NLS-1$
-// newXSDElementName = getWSDLPartName();
- }
-
- return newXSDElementName;
- }
-
- protected String getWSDLMessageName() {
- if (newWSDLMessageName == null) {
- if (operation.getEOutput() != null) {
- newWSDLMessageName= NameUtil.getMessageName(operation.getEOutput());
- }
- }
-
- return newWSDLMessageName;
- }
-
- protected String getWSDLPartName() {
- if (newWSDLPartName == null) {
- newWSDLPartName = NameUtil.getPartName(operation.getEOutput());
- }
-
- return newWSDLPartName;
- }
-
- public MessageReference getMessageReference() {
- return output;
- }
-}

Back to the top