| /******************************************************************************* |
| * Copyright (c) 2001, 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.wst.wsdl.ui.internal.viewers; |
| |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.widgets.Composite; |
| import org.eclipse.swt.widgets.Label; |
| import org.eclipse.swt.widgets.Text; |
| import org.eclipse.ui.IEditorPart; |
| import org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin; |
| |
| public class OperationViewer extends NamedComponentViewer |
| { |
| public OperationViewer(Composite parent, IEditorPart editorPart) |
| { |
| super(parent, editorPart); |
| } |
| |
| protected String getHeadingText() |
| { |
| return WSDLEditorPlugin.getWSDLString("_UI_LABEL_OPERATION"); //$NON-NLS-1$ |
| } |
| |
| protected Composite populatePrimaryDetailsSection(Composite parent) |
| { |
| Composite composite = super.populatePrimaryDetailsSection(parent); |
| |
| Label parameterOrderLabel = flatViewUtility.createLabel(composite, 0, WSDLEditorPlugin.getWSDLString("_UI_LABEL_PARAMETER_ORDER")); //$NON-NLS-1$ |
| Text parameterOrderField = flatViewUtility.createTextField(composite); |
| parameterOrderField.addListener(SWT.Modify, this); |
| |
| //Button button = new Button(composite, SWT.FLAT); |
| //button.setText("..."); |
| |
| return composite; |
| } |
| } |