Contribute CNF based TMF project handling
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / project / model / TraceFolderLabelProvider.java
1 /*******************************************************************************
2 * Copyright (c) 2010, 2011 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 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.project.model;
14
15 import org.eclipse.jface.viewers.ITableLabelProvider;
16 import org.eclipse.jface.viewers.LabelProvider;
17 import org.eclipse.swt.graphics.Image;
18
19 /**
20 * <b><u>TraceFolderLabelProvider</u></b>
21 * <p>
22 */
23 public class TraceFolderLabelProvider extends LabelProvider implements ITableLabelProvider {
24
25 @Override
26 public Image getColumnImage(Object element, int columnIndex) {
27 return null;
28 }
29
30 @Override
31 public String getColumnText(Object element, int columnIndex) {
32 if (element instanceof TmfTraceElement) {
33 TmfTraceElement entry = (TmfTraceElement) element;
34 switch (columnIndex) {
35 case 0:
36 return entry.getName();
37 default:
38 return null;
39 }
40 }
41 return null;
42 }
43
44 }
This page took 0.030536 seconds and 5 git commands to generate.