TMF: Call postDrawEvent also for transparent events in time graph control
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / internal / tmf / ui / viewers / events / columns / TmfContentsColumn.java
CommitLineData
baafe54c
AM
1/*******************************************************************************
2 * Copyright (c) 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 * Alexandre Montplaisir - Initial API and implementation
11 ******************************************************************************/
12
2bdf0193 13package org.eclipse.tracecompass.internal.tmf.ui.viewers.events.columns;
baafe54c
AM
14
15import org.eclipse.jdt.annotation.NonNull;
2bdf0193
AM
16import org.eclipse.tracecompass.internal.tmf.ui.Messages;
17import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
18import org.eclipse.tracecompass.tmf.ui.viewers.events.columns.TmfEventTableColumn;
baafe54c
AM
19
20/**
21 * Column for the event contents (fields)
22 *
23 * @author Alexandre Montplaisir
24 */
25public final class TmfContentsColumn extends TmfEventTableColumn {
26
27 @SuppressWarnings("null")
28 private static final @NonNull String HEADER = Messages.TmfEventsTable_ContentColumnHeader;
29
30 /**
31 * Constructor
32 */
33 public TmfContentsColumn() {
34 super(HEADER);
35 }
36
37 @Override
38 public String getItemString(ITmfEvent event) {
39 String ret = event.getContent().toString();
40 return (ret == null ? EMPTY_STRING : ret);
41 }
42
43 @Override
44 public String getFilterFieldId() {
45 return ITmfEvent.EVENT_FIELD_CONTENT;
46 }
47}
This page took 0.035436 seconds and 5 git commands to generate.