blob: 984c012b85bf2d42a206ef79191c786e53b4a1df [file] [log] [blame]
/**********************************************************************
* 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 Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
 *
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
package org.eclipse.wst.server.ui.internal.viewers;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.ui.internal.ImageResource;
import org.eclipse.swt.graphics.Image;
/**
* Server tree label provider.
*/
public class ServerTreeLabelProvider extends AbstractTreeLabelProvider {
/**
* ServerTreeLabelProvider constructor comment.
*/
public ServerTreeLabelProvider() {
super();
}
/**
*
*/
public Image getImageImpl(Object element) {
IServer server = (IServer) element;
return ImageResource.getImage(server.getServerType().getId());
}
/**
*
*/
public String getTextImpl(Object element) {
IServer server = (IServer) element;
return server.getName();
}
}