Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 41166a3a67378eddce9b505665e41757073d4f64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*******************************************************************************
 * Copyright (c) 2011, 2015 Wind River Systems, Inc. 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:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.tcf.filesystem.ui.internal.columns;

import org.eclipse.jface.viewers.DecoratingLabelProvider;
import org.eclipse.jface.viewers.DecorationContext;
import org.eclipse.jface.viewers.IDecoration;
import org.eclipse.ui.PlatformUI;

/**
 * The label provider for the tree column "name".
 */
public class DecoratingFSTreeElementLabelProvider extends DecoratingLabelProvider {

	public DecoratingFSTreeElementLabelProvider() {
		super(new FSTreeElementLabelProvider(), PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator());
		DecorationContext context = new DecorationContext();
		context.putProperty(IDecoration.ENABLE_REPLACE, Boolean.TRUE);
		setDecorationContext(context);
	}
}

Back to the top