blob: 523ece0a4b240b7657db734579dbe79992f45a48 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2009 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.tests.navigator.extension;
import org.eclipse.jface.viewers.StyledString;
import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider;
public abstract class TestStyledLabelProvider extends TestLabelProvider implements
IStyledLabelProvider {
@Override
public StyledString getStyledText(Object element) {
if (_blank || _null)
return new StyledString("");
return new StyledString(getText(element));
}
}