1 /*******************************************************************************
2 * Copyright (c) 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 * Alexandre Montplaisir - Initial API and implementation
11 ******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.tmf
.ui
.viewers
.events
.columns
;
15 import org
.eclipse
.jdt
.annotation
.NonNull
;
16 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.Messages
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.events
.columns
.TmfEventTableColumn
;
21 * Column for the event reference
23 * TODO Remove me, replace with trace-type-specific columns
25 public final class TmfReferenceColumn
extends TmfEventTableColumn
{
27 @SuppressWarnings("null")
28 private static final @NonNull String HEADER
= Messages
.TmfEventsTable_ReferenceColumnHeader
;
33 public TmfReferenceColumn() {
38 public String
getItemString(ITmfEvent event
) {
39 String ref
= event
.getReference();
40 return (ref
== null ? EMPTY_STRING
: ref
);
44 public String
getFilterFieldId() {
45 return ITmfEvent
.EVENT_FIELD_REFERENCE
;