/******************************************************************************* * Copyright (c) 2007, 2014 Borland Software 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: * Borland Software Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.m2m.internal.qvt.oml.common.ui.controls; import org.eclipse.jface.viewers.LabelProvider; import org.eclipse.m2m.internal.qvt.oml.common.project.DeployedTransformation; import org.eclipse.m2m.internal.qvt.oml.common.ui.CommonPluginImages; import org.eclipse.swt.graphics.Image; public class QvtDeployedTransformationLabelProvider extends LabelProvider { @Override public Image getImage(Object element) { if(element instanceof DeployedTransformation) { return CommonPluginImages.getInstance().getImage(CommonPluginImages.COMPILED_TRANSFORMATION); } return super.getImage(element); } }