Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsValidation after switching editors
https://www.eclipse.org/forums/index.php/mv/msg/58053/183907/#msg_183907
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]]>2006-12-07T21:03:44-00:00Re: Validation after switching editors
https://www.eclipse.org/forums/index.php/mv/msg/58053/183922/#msg_183922
> 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.]]>Craig Salter2006-12-07T22:39:24-00:00