1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.tmf
.ui
.project
.wizards
.importtrace
;
17 import org
.eclipse
.jface
.viewers
.LabelProvider
;
20 * Trace label provider for the candidate tree
22 * @author Matthew Khouzam
25 class ImportTraceLabelProvider
extends LabelProvider
{
28 public String
getText(Object element
) {
29 if (element
instanceof String
) {
30 return (String
) element
;
32 if (element
instanceof FileAndName
) {
33 final File file
= ((FileAndName
) element
).getFile();
34 if (file
!= null) { // should never not happen since file is final
35 // and always set automatically
36 return file
.getName();
This page took 0.044686 seconds and 5 git commands to generate.