Try this if ( selection instanceof IStructuredSelection ) { Iterator iterator = ((IStructuredSelection)selection).iterator(); }
You can get a similar support by searching the Eclipse help and entering 'ISelection' as the search keyword Thank you, Valentina Popescu IBM Toronto Labs Phone: (905)413-2412 (tie-line 969) Fax: (905) 413-4850 "Shovik Banerjee" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 05/21/2007 07:13 AM Please respond to TPTP Platform Project developer discussions <[EMAIL PROTECTED]> To [EMAIL PROTECTED], "TPTP Tracing and Profiling Tools Project developer discussions" <tptp-tracing-profiling-tools-dev@eclipse.org> cc Subject [tptp-platform-dev] queries. I need some help regarding CBECommonBaseEvents: I have obtained a reference to the log viewer, say viewer viewer.getLogPage().getView().getViewer().getSelection(); If the selection is not empty the object has to be either a CBECommonBaseEvent or a DefaultEvent. The return type is ISelection.How do i read the contents after this? Thanks, Shovik. _______________________________________________ tptp-platform-dev mailing list [EMAIL PROTECTED] https://dev.eclipse.org/mailman/listinfo/tptp-platform-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