Markers in editor. [message #330234] |
Tue, 22 July 2008 12:30  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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"
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02948 seconds