Re: [linuxtools-dev] TMF question: ITmfEventsFilterProvider

2012-12-03 Thread Patrick Tasse
Hi Xavier, Probably not, because that interface will no longer exist in 2.0, so the change wouldn't show up in any linuxtools release. Patrick On Mon, Dec 3, 2012 at 11:45 AM, Xavier Raynaud wrote: > ** > Ok, thanks. > > Do you think it can be useful to enhance the current getAdapter() method,

Re: [linuxtools-dev] TMF question: ITmfEventsFilterProvider

2012-12-03 Thread Xavier Raynaud
Ok, thanks. Do you think it can be useful to enhance the current getAdapter() method, like this ? /* (non-Javadoc) * @see org.eclipse.ui.part.WorkbenchPart#getAdapter(java.lang.Class) */ @SuppressWarnings("rawtypes") @Override public Object getAdapter(Class adapter) {

Re: [linuxtools-dev] TMF question: ITmfEventsFilterProvider

2012-12-03 Thread Patrick Tasse
Hi Xavier, I didn't think it would be even possible so your code is not crappy but rather ingenious ;) In 2.0 this is being refactored because the listener/provider solution wasn't working well: if your listener was created after the trace was already opened, it would be too late to receive the T

[linuxtools-dev] TMF question: ITmfEventsFilterProvider

2012-12-03 Thread Xavier Raynaud
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