Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Getting text of current file within a plugin.
Getting text of current file within a plugin. [message #553949] Thu, 19 August 2010 13:55
Marcelo  is currently offline Marcelo Friend
Messages: 1
Registered: August 2010
Junior Member
Hello people, sorry if this is not the place for this question. Feel free to delete the post if it's not.

I'm trying to create a plugin for Eclipse that will get the file currently active (an XML file), perform different modifications on it, and then update the text in Eclipse with the new version... Or that's the idea.

Since I'm completely new to this thing, I've followed the tutorial on Eclipse and now I have a working plugin that just outputs "hello world".

What I don't know is how could I get the text in the current file, parse it as an XML, modify it, and update the text.

But doing a step at a time, right now I just need to know how to get the d*mn file. Smile

Thanks for the time.
Previous Topic:Build error does not annotate file, package, or project with error
Next Topic:web.xml error (content must match...)
Goto Forum:
  


Current Time: Wed Apr 24 19:52:32 GMT 2024

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

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

Back to the top