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
_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

Reply via email to