|
Re: Error marking [message #326212 is a reply to message #326210] |
Tue, 11 March 2008 19:53 |
Eclipse User |
|
|
|
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 #326247 is a reply to message #326246] |
Wed, 12 March 2008 23:17 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03040 seconds