Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » getting the full path of the class currently opend in eclipse editor
getting the full path of the class currently opend in eclipse editor [message #213459] Sun, 03 June 2007 06:12 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 :)
>
Re: getting the full path of the class currently opend in eclipse editor [message #213581 is a reply to message #213483] Mon, 04 June 2007 05:06 Go to previous message
Eclipse UserFriend
Originally posted by: f.katout.keysoft.com.jo

hi man thanks for being kind
but can u pass some code
i not relay sure that i can
manage it with out example
thanks again
Previous Topic:"Select tag" dialogue focus issues
Next Topic:Ant Terminated Problem
Goto Forum:
  


Current Time: Fri Apr 19 00:34:14 GMT 2024

Powered by FUDForum. Page generated in 0.03040 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top