[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: Opening up the resources in the Editor

Hi Sajith,
to open an editor for resource you could use IWorkbenchPage.openEditor(...)
Assuming that text editor was opened for that file, you can cast returned IEditorPart to ITextEditor and call selectAndReveal(int,int)


Take also a look at how do other plug-ins use those APIs. Looking at others code is always so helpful to me :-)

Hope this helps
Jacek



sajith weerakoon wrote:
Hi All,

I am a GSoC student who is working on the Open Metadata Search. http://wiki.eclipse.org/Open_Metadata_Search
I have almost come to the end of my project. But I now need to open up the resources that are searched in the editor. I need some help in getting this task done. Can someone help me?


Regards,
Sajith