Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Error marking
Error marking [message #326210] Tue, 11 March 2008 19:30 Go to next message
junaid ahmed is currently offline junaid ahmedFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,
I have developed an editor.If a user types something which is not valid I
want to mark that as an error.How do I do this? I have checked the code
for the XML editor and it is using a SAX Parser.Do I have to design my own
parser or can I use an existing one.
Thanks
Junaid.
Re: Error marking [message #326212 is a reply to message #326210] Tue, 11 March 2008 19:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Junaid,

You'll want to learn about IMarkers. You can use whatever mechanism
you want for finding locations within your source files. If it's XML,
likely you'll want to use SAX's locator mechanism.


Junaid wrote:
> Hi,
> I have developed an editor.If a user types something which is not
> valid I want to mark that as an error.How do I do this? I have checked
> the code for the XML editor and it is using a SAX Parser.Do I have to
> design my own parser or can I use an existing one.
> Thanks
> Junaid.
>
Re: Error marking [message #326246 is a reply to message #326212] Wed, 12 March 2008 22:26 Go to previous messageGo to next message
junaid ahmed is currently offline junaid ahmedFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Ed,
Can you give me the url to few examples so that I can learn from them.
Can you tell me how does the java editor marks errors when a semicolon is
missing at the end of a line.
Thanks
Junaid
Re: Error marking [message #326247 is a reply to message #326246] Wed, 12 March 2008 23:17 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Junaid,

See the post a few notes down about "How to add a marker without using
resources"? There's good information in that note chain...

As far as I know, the Java editor uses IMarkers. In order to give you a
URL, I would just do some google searches and stuff like that, so it's
probably just as well you do that yourself...


Junaid wrote:
> Hi Ed,
> Can you give me the url to few examples so that I can learn from them.
> Can you tell me how does the java editor marks errors when a semicolon
> is missing at the end of a line.
> Thanks Junaid
>
Previous Topic:Programatically detect if project needs building
Next Topic:how to position toolbar button in the main toolbar
Goto Forum:
  


Current Time: Fri Jul 19 12:27:46 GMT 2024

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

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

Back to the top