Validation after switching editors [message #183907] |
Thu, 07 December 2006 16:03  |
Eclipse User |
|
|
|
Originally posted by: gokuiuc.yahoo.com
Hello,
I want to ask how I could update the validation for an open HTML editor, if
I switch to another editor and then switch back to the HTML editor again. I
know that the HTML editor validation works "as I type", but in this
situation, I want the validation to be done also when I switch back to the
HTML editor. The reason is that I have some attributes that depend on the
other editor. Any suggestions?
Thanks,
Gokhan
|
|
|
Re: Validation after switching editors [message #183922 is a reply to message #183907] |
Thu, 07 December 2006 17:39  |
Eclipse User |
|
|
|
Gokhan wrote:
> Hello,
> I want to ask how I could update the validation for an open HTML editor, if
> I switch to another editor and then switch back to the HTML editor again. I
> know that the HTML editor validation works "as I type", but in this
> situation, I want the validation to be done also when I switch back to the
> HTML editor. The reason is that I have some attributes that depend on the
> other editor. Any suggestions?
> Thanks,
> Gokhan
Tricky problem. One way to do this would be to give the 'as you type
validator' a kick when the editor gains focus (though you'd need to open a
bug to get the SSE framwork to support this). We'd have to think a bit
about performance implications though. Ideally we'd have a deluxe solution
where we'd keep a depenency tree that would become dirty when a depenant
file has changed. Then when an editor gains focus it would check it
dependency tree to see if a revalidate is required.
|
|
|
Powered by
FUDForum. Page generated in 0.15760 seconds