Chavan, Girish wrote:
Hi,
I really dug deep into the cas editor code to see if I could use it in my
project. The main component I am interested in is the actual editor
(org.apache.uima.caseditor.editor.AnnotationEditor). However it is too tightly
coupled with the caseditor plugin. Also it is a final class so I cant extend it
so that I can break those couplings.
The Annotation Editor class was not intended to be sub-classed. If there
is a good reason we could change
that.
What is the best way to use the AnnotationEditor in an RCP application without
having to subscribe to the corpus model enforced by the cas editor plugin.
Actually the corpus explorer and the project structure should be
optional. If you don't like it you must provide
the Annotation Editor with the necessary resources a CAS and editor
configuration.
That is the responsibility of the Cas Document Provider. You should
implement your own and
register it as an extension.
If you have any issues or questions you are welcome to ask for help.
Jörn