blob: f49bbfd25945583ed2310a00be4bc232af8823b3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 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.ui.internal.navigator.workingsets;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.model.WorkbenchLabelProvider;
/**
* Provides a text label and icon for Working Sets.
*
*/
public class WorkingSetsLabelProvider implements ILabelProvider {
private WorkbenchLabelProvider labelProvider = new WorkbenchLabelProvider();
public Image getImage(Object element) {
if (element instanceof IWorkingSet)
return labelProvider.getImage(element);
return null;
}
public String getText(Object element) {
if (element instanceof IWorkingSet)
return ((IWorkingSet) element).getLabel();
return null;
}
public void addListener(ILabelProviderListener listener) {
// TODO Auto-generated method stub
}
public void dispose() {
// TODO Auto-generated method stub
}
public boolean isLabelProperty(Object element, String property) {
// TODO Auto-generated method stub
return false;
}
public void removeListener(ILabelProviderListener listener) {
// TODO Auto-generated method stub
}
}