Class TmfEventTableColumn
java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.events.columns.TmfEventTableColumn
A column in the
TmfEventsTable
. In
addition to ones provided by default, trace types can extend this class to
create additional columns specific to their events.
Those additional columns can then be passed to the constructor
org.eclipse.tracecompass.tmf.ui.viewers.events.TmfEventsTable#TmfEventsTable(org.eclipse.swt.widgets.Composite, int, java.util.Collection)
- Author:
- Alexandre Montplaisir
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDuplicate
(ITmfEventAspect<?> duplicate) Add another Aspect with the same nameboolean
Get the event aspect assigned to this columnGet this column's header name, a.k.a.@Nullable String
Get the tooltip text for the column headergetItemString
(ITmfEvent event) Get the string that should be displayed in this column's cell for a given trace event.int
hashCode()
-
Constructor Details
-
TmfEventTableColumn
Constructor- Parameters:
aspect
- TheITmfEventAspect
to be used to populate this column.
-
-
Method Details
-
addDuplicate
Add another Aspect with the same name- Parameters:
duplicate
- the aspect with the same name- Since:
- 5.0
-
getHeaderName
Get this column's header name, a.k.a. title- Returns:
- The column's title
-
getHeaderTooltip
Get the tooltip text for the column header- Returns:
- The header's tooltip
-
getItemString
Get the string that should be displayed in this column's cell for a given trace event. Basically, this defines "what to print in this column for this event".- Parameters:
event
- The trace event whose element we want to display- Returns:
- The string to display in the column for this event
-
getEventAspect
Get the event aspect assigned to this column- Returns:
- The event aspect
-
hashCode
public int hashCode() -
equals
-