Hi TMF advances
Thank you team for the powerful framework, I have a question bellow
In TmfTraceElement.java
I saw createExecutableExtension() in instantiateTrace() to get an instance
from the extension points like bellow
IConfigurationElement ce =
sfTraceTypeAttributes.get(fTraceTypeId);
.......
ITmfTrace trace = (ITmfTrace)
ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);
......
return trace;
I wonder why not just use TmfTraceType.getInstance() to do it ?
Since the init() in TmfTraceType constructor
call populateCategoriesAndTraceTypes()
The instance of createExecutableExtension is created
Could it be replaced with
TraceTypeHelper tth =
TmfTraceType.getInstance().getTraceType(fTraceTypeId);
ITmfTrace trace = tth.getTrace();
return trace;
Or I misunderstand it ?
Please kindly to reply
Ran-How
_______________________________________________
linuxtools-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev