diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/parameters/AddInputParameterCommand.java')
-rw-r--r-- | bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/parameters/AddInputParameterCommand.java | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/parameters/AddInputParameterCommand.java b/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/parameters/AddInputParameterCommand.java deleted file mode 100644 index 3073f1cf6..000000000 --- a/bundles/org.eclipse.wst.wsdl.ui/src/org/eclipse/wst/wsdl/ui/internal/parameters/AddInputParameterCommand.java +++ /dev/null @@ -1,72 +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 Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - */ -package org.eclipse.wst.wsdl.ui.internal.parameters; - -import org.eclipse.wst.wsdl.Input; -import org.eclipse.wst.wsdl.Operation; -import org.eclipse.wst.wsdl.Part; -import org.eclipse.wst.wsdl.ui.internal.commands.AddInputCommand; - -public class AddInputParameterCommand extends AddBaseParameterCommand { - public AddInputParameterCommand(Operation operation, int style) { - super(operation, style); - } - - /* - * - */ - public void run() { - Part part = null; - if (operation.getEInput() != null) { - part = createWSDLComponents(operation.getEInput()); - } - else { - AddInputCommand command = new AddInputCommand(operation, null); - command.run(); - Input input = (Input) command.getWSDLElement(); - part = createWSDLComponents(input); - } - - // Create necessary XSD Objects starting with the Part reference - newXSDElement = createXSDObjects(part); - } - - protected String getAnonymousXSDElementBaseName() { - if (newAnonymousXSDElementName == null) { - newAnonymousXSDElementName = operation.getName() + "Request"; - } - - return newAnonymousXSDElementName; - } - - protected String getNewXSDElementBaseName() { - if (newXSDElementName == null) { - newXSDElementName = "input"; - } - - return newXSDElementName; - } - - protected String getWSDLMessageName() { - if (newWSDLMessageName == null) { - if (operation.getEInput() != null) { - newWSDLMessageName= WNameHelperUtil.getMessageName(operation.getEInput()); - } - } - - return newWSDLMessageName; - } - - protected String getWSDLPartName() { - if (newWSDLPartName == null) { - newWSDLPartName = WNameHelperUtil.getPartName(operation.getEInput()); - } - - return newWSDLPartName; - } -} |