Eclipse plgin development
hi am trying to develop a plug in on eclipse
and i want to get the path for the class(project)
that eclipse editor(on focus) is currently opining ...?!!!
is there anyway to do this ?
actually i believe there is cause many plugins
on eclipse uses that but how?
thanks in advance :)
[325 byte] By [
cutouta] at [2007-11-27 6:00:16]

Have a look at the javadocs for org.eclipse.core.resources.ResourcesPlugin and org.eclipse.core.resources.IWorkspace. You can register listeners somewhere in there that will be notified of what is currently in the editor. I can't remember exactly how to do it, but that's the area you're interested in. What's actually in the editor pane is represented by an instance of ICompilationUnit, so look out for that too
In future, you're far far better off going to the newsgroups at eclipse.org for this. Hardly anyone on here knows anything about SWT, Jface or Eclipse plugins in general. You could also do a lot worse than pick up the following two books - loads of useful information in them
[url=http://www.amazon.co.uk/Eclipse-Building-Commercial-Quality-Plug-Ins-Addison-Wesley/dp/032142672X/ref=pd_bbs_2/203-1708115-9526359?ie=UTF8&s=books&qid=1180605935&sr=8-2]Building commercial quality plugins[/url]
[url=http://www.amazon.co.uk/Eclipse-Rich-Client-Platform-Addison-Wesley/dp/0321334612/ref=pd_bbs_1/203-1708115-9526359?ie=UTF8&s=books&qid=1180605935&sr=8-1]Eclipse Rich Client Platform[/url]