Skip to main content



      Home
Home » Newcomers » Newcomers » From editor to resource...
From editor to resource... [message #148900] Sun, 16 April 2006 17:48 Go to next message
Eclipse UserFriend
Originally posted by: badaspirin.gmail.com

I'm trying to add textmarkers to a resource based on where a target string
is found within a document. However, i'm not sure how to go from having a
IDocument to the IResource that I need in order to add the marker. What
calls do I need to get where I'm going?

Thanks,
Badaspirin
Re: From editor to resource... [message #149000 is a reply to message #148900] Mon, 17 April 2006 15:11 Go to previous message
Eclipse UserFriend
Originally posted by: badaspirin.gmail.com

((FileEditorInput) editor.getEditorInput().getPersistable()).getFile()

got the IFile that I needed to add a marker, if anyone is interested.

-Badaspirin
Previous Topic:A workspace crash was detected. The previous session did not exit normally.
Next Topic:.svn file doesn't exist
Goto Forum:
  


Current Time: Sun May 11 06:05:48 EDT 2025

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

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

Back to the top