getting the full path of the class currently opend in eclipse editor [message #213459] |
Sun, 03 June 2007 06:12 |
Eclipse User |
|
|
|
Originally posted by: f.katout.keysoft.com.jo
hi all
am trying to develop a plug in for eclipse
and i need to gain access to the file in editor
in order to manipulate the code in it...
how can i get the full path of the class opened in the editor and/or
if there is another way to manipulate the text in the editor????
since am relay fresh in eclipse a code would be great
thanks in advance :)
|
|
|
Re: getting the full path of the class currently opend in eclipse editor [message #213483 is a reply to message #213459] |
Sun, 03 June 2007 12:19 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
You can call getEditorInput on the editor. It might be an
IURIEditorInput or an IFileEditorInput, so you get good information from
it, you'll likely need to cast to a more derived interface and access
the URI or IFile from that.
cutout wrote:
> hi all
> am trying to develop a plug in for eclipse and i need to gain access
> to the file in editor in order to manipulate the code in it...
> how can i get the full path of the class opened in the editor and/or
> if there is another way to manipulate the text in the editor????
>
> since am relay fresh in eclipse a code would be great
>
> thanks in advance :)
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03040 seconds