diff options
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java')
-rw-r--r-- | bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java deleted file mode 100644 index dd60eef0e..000000000 --- a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 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.wst.wsdl.ui.internal.label.providers; - -import java.util.HashMap; - -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.swt.graphics.Image; -import org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin; -import org.w3c.dom.Node; - - -public class SOAPLabelProvider extends LabelProvider -{ - protected final static String ADDRESS = "address"; //$NON-NLS-1$ - protected final static String BODY = "body"; //$NON-NLS-1$ - protected final static String BINDING = "binding"; //$NON-NLS-1$ - protected final static String FAULT = "fault"; //$NON-NLS-1$ - protected final static String HEADER = "header"; //$NON-NLS-1$ - protected final static String HEADER_FAULT = "headerfault"; //$NON-NLS-1$ - protected final static String OPERATION = "operation"; //$NON-NLS-1$ - - protected HashMap map = new HashMap(); - - public SOAPLabelProvider() - { - map.put(ADDRESS, "icons/soapaddress_obj.gif"); //$NON-NLS-1$ - map.put(BINDING, "icons/soapbinding_obj.gif"); //$NON-NLS-1$ - map.put(BODY, "icons/soapbody_obj.gif"); //$NON-NLS-1$ - map.put(FAULT, "icons/soapfault_obj.gif"); //$NON-NLS-1$ - map.put(HEADER, "icons/soapheader_obj.gif"); //$NON-NLS-1$ - map.put(HEADER_FAULT, "icons/soapheaderfault_obj.gif"); //$NON-NLS-1$ - map.put(OPERATION, "icons/soapoperation_obj.gif"); //$NON-NLS-1$ - } - - public Image getImage(Object object) - { - Node node = (Node)object; - String imageName = (String)map.get(node.getLocalName()); - return imageName != null ? WSDLEditorPlugin.getInstance().getImage(imageName) : null; - } - - public String getText(Object object) - { - Node node = (Node)object; - return node.getNodeName(); - } -}
\ No newline at end of file |