Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Markers in editor.
Markers in editor. [message #330234] Tue, 22 July 2008 12:30 Go to next message
Eclipse UserFriend
Originally posted by: parulseth.gmail.com

Hi all

I have an XMLEditor which shows errors on the editor ruler, but the
problem is these are shown only on saving the editor.

Likewise the changes in my xml file are detected by my outline view on
saving only.

Is it possible to show errors and changes in outline view before saving???

Well I know it definately is because both ant and java editor do it this
way...but how???????

One more thing editors in eclipse get an "*" mark if the file is changed
in a different editor and vice versa, but my xml editor doesn't have this
feature. How to implement this?????

Kindly help me on this!!!

Thanks & Regards
Parul Seth
Impetus Infotech India Pvt. Ltd.

"Do your duty at your best, leave unto thy God the rest"
Re: Markers in editor. [message #330677 is a reply to message #330234] Fri, 08 August 2008 10:32 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Parul Seth wrote:
> Hi all
>
> I have an XMLEditor which shows errors on the editor ruler, but the
> problem is these are shown only on saving the editor.
>
> Likewise the changes in my xml file are detected by my outline view on
> saving only.
>
> Is it possible to show errors and changes in outline view before
> saving???
Yes, but in that case the aren't (I)Markers but annotations which you
have to add to the editor's annotation model. Take a look at the
following tutorial for more details:
http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006 /texteditorrecipes.pdf
>
> Well I know it definately is because both ant and java editor do it
> this way...but how???????
>
> One more thing editors in eclipse get an "*" mark if the file is
> changed in a different editor and vice versa, but my xml editor
> doesn't have this feature. How to implement this?????
You should get this out of the box if you use the existing
infrastructure (again, see tutorial).

Dani
>
> Kindly help me on this!!!
>
> Thanks & Regards
> Parul Seth
> Impetus Infotech India Pvt. Ltd.
>
> "Do your duty at your best, leave unto thy God the rest"
>
>
Previous Topic:Eclipse popup error
Next Topic:CVS commit / add
Goto Forum:
  


Current Time: Thu Sep 26 23:57:46 GMT 2024

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

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

Back to the top