blob: 16bcdcac223620d16b4e904906985b7536814c68 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 Tasktop Technologies 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:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.ui;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
/**
* @author Shawn Minto
*/
public class PersonProposalLabelProvider extends LabelProvider {
@Override
public Image getImage(Object element) {
if (element instanceof PersonContentProposal) {
return ((PersonContentProposal) element).getImage();
}
return null;
}
@Override
public String getText(Object element) {
if (element instanceof PersonContentProposal) {
return ((PersonContentProposal) element).getLabel();
}
return super.getText(element);
}
}