Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[linuxtools-dev] TMF question: ITmfEventsFilterProvider

Hi,

I've a question about traces and filtering: What's the best way to obtain the ITmfEventsFilterProvider of an experiment ?

The TmfTraceOpenedSignal provides access to a ITmfEventsFilterProvider.
Is there an equivalent for a TmfExperiement ?


For now, I retrieve the ITmfEventsFilterProvider with the following code, but it seems a bit crappy:

view = (TmfEventsView) getViewSite().getPage().showView(TmfEventsView.ID, null,
                        IWorkbenchPage.VIEW_CREATE);
                Object o = view.getAdapter(IGotoMarker.class);
                if (o instanceof ITmfEventsFilterProvider) {
                    p = ((ITmfEventsFilterProvider) o);
                }

Xavier


Back to the top