Hi,

I would suggest start looking at the methods in the class 
org.eclipse.hyades.trace.views.internal.FilteringUtil located in 
org.eclipse.hyades.trace.views, there is in particular a method called  
getFilteredMethods (SimpleSearchQuery filter, EObject[] source)
that you may find useful.
You basically need to create a SimpleSearchQuery in which you specify your 
query criteria based on which type (read Trace model feature) you want to 
be returned and pass it together with an array of sources to one of those 
methods.
A helper method for creating queries is 
org.eclipse.hyades.ui.internal.filters.ModelUtils located in 
org.eclipse.tptp.platform.common.ui.
Please let us know if you need a simple example, I don't have currently at 
hand a simple snippet of code but I can prepare one if you think it's 
useful.

Kind regards,

Alexandru Nan - Software Developer
phone:  905-413-6029
e-mail: [EMAIL PROTECTED]
IBM Lab,
8200 Warden Ave. 
Markham, Ontario, Canada
L6G 1C7




"Neil Dunn" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
03/15/2007 08:11 PM
Please respond to
TPTP Tracing and Profiling Tools Project developer discussions 
<tptp-tracing-profiling-tools-dev@eclipse.org>


To
"TPTP Tracing and Profiling Tools Project developer discussions" 
<tptp-tracing-profiling-tools-dev@eclipse.org>
cc

Subject
[tptp-tracing-profiling-tools-dev] Can I query a trace EMF model?






Hi guys,

Sorry for the slightly simple question:

* Can I query a trace EMF model.

For example given a high level trace object like TRCAgent can I for
example get at the TRCMethod matching a certain method?

Sorry if this is incredibly simple but most of the EMF model is
uncommented and the horrible autogenerated Javadoc makes my eyes glaze
over :-)

Thanks in advance,

Neil
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to