/****************************************************************************** * Copyright (c) 2011-2013, Linagora * * 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: * Linagora - initial API and implementation *******************************************************************************/ package com.ebmwebsourcing.petals.common.internal.provisional.emf; import org.eclipse.emf.common.util.Enumerator; import org.eclipse.jface.viewers.IBaseLabelProvider; import org.eclipse.jface.viewers.LabelProvider; /** * @author Micka�l Istria - Petals Link */ public class EEnumNameLabelProvider extends LabelProvider implements IBaseLabelProvider { /* * (non-Javadoc) * @see org.eclipse.jface.viewers.LabelProvider * #getText(java.lang.Object) */ @Override public String getText(Object e) { if (e instanceof Enumerator) return ((Enumerator)e).getLiteral(); else return super.getText(e); } }