Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / project / model / TraceFolderLabelProvider.java
1 /*******************************************************************************
2 * Copyright (c) 2010, 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Add support for folder elements
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.tmf.ui.project.model;
15
16 import org.eclipse.jface.viewers.LabelProvider;
17
18 /**
19 * Label provider implementation for trace folders for viewers that display
20 * the content of a trace folder.
21 * <p>
22 *
23 * @version 1.0
24 * @author Francois Chouinard
25 */
26 public class TraceFolderLabelProvider extends LabelProvider {
27
28 @Override
29 public String getText(Object element) {
30 if (element instanceof TmfTraceElement) {
31 TmfTraceElement entry = (TmfTraceElement) element;
32 return entry.getElementPath();
33 }
34 return null;
35 }
36
37 }
This page took 0.031735 seconds and 5 git commands to generate.