|
Re: in a textEditor based editor how do you go about getting the IResouce object so you can set Mark [message #147158 is a reply to message #146674] |
Tue, 21 October 2003 06:30  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
J Myron Smith wrote:
>I am building an editor subclassed from TextEditor (initially created using
>the eclipse wizard to create and editor plugin) . I have searched for 2 days
>trying to figure out how you get the IResouce object so I can set problem
>markers on it.
>
You can get the editor's input using getEditorInput(). You then have to
test whether it is a IFileEditorInput and if so, you get the file using
IFileEditorInput.getFile().
HTH
Dani
>Can someone please tell me how I get access to the IResource
>associated with the file I am editing.
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04016 seconds