Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » in a textEditor based editor how do you go about getting the IResouce object so you can set Markers
in a textEditor based editor how do you go about getting the IResouce object so you can set Markers [message #146674] Mon, 20 October 2003 12:29 Go to next message
Eclipse UserFriend
Originally posted by: jmyron.ioconcepts.com

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. Can someone please tell me how I get access to the IResource
associated with the file I am editing.
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 Go to previous message
Eclipse UserFriend
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.
>
>
>
>
Previous Topic:how to make .classpath and .project to not show up during sync?
Next Topic:Creating an object and view contribution intersection
Goto Forum:
  


Current Time: Thu Mar 13 15:13:12 EDT 2025

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

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

Back to the top