You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Kai Schlamp <sc...@gmx.de> on 2009/06/24 22:15:54 UTC

How to start the CAS Editor?

Ok, Jörn ... you made me curious about the CAS Editor.
I fetched it from SVN, but don't know how to proceed.
It doesn't have a MANIFEST, so I can't easily create a plugin from it.
And when I try to start "UIMA Cas Editor.launch" ... well, it's not really startable.
What do I have to do to see the shiny thing in action? ;-)

Regards,
Kai


Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
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

RE: How to start the CAS Editor?

Posted by "Chavan, Girish" <ch...@upmc.edu>.
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.

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.

My ideal solution is to be able to launch the AnnotationEditor with an AnnotationEditorInput that exposes a CAS object and its associated Type system that I want to edit/display. The AnnotationEditor should have setters/getters for the DocumentProvider and AnnotationPainter. That way I can have control over how the annotations are displayed (AnnotationStyles).

I am planning to cannibalize the AnnotationEditor code if all else fails but asking the community first, id prefer to have a cleaner use of the cas editor plugin in my project. 

Thoughts? Comments? Suggestions? Ideas?

Thanks,
Girish




-----Original Message-----
From: Jörn Kottmann [mailto:kottmann@gmail.com] 
Sent: Wednesday, June 24, 2009 4:41 PM
To: uima-user@incubator.apache.org
Subject: Re: How to start the CAS Editor?

Kai Schlamp wrote:
> Ok, Jörn ... you made me curious about the CAS Editor.
> I fetched it from SVN, but don't know how to proceed.
> It doesn't have a MANIFEST, so I can't easily create a plugin from it.
> And when I try to start "UIMA Cas Editor.launch" ... well, it's not 
> really startable.
> What do I have to do to see the shiny thing in action? ;-)
The way our uimaj-ep-runtime plugin is set up right now makes it
difficult to run the Cas Editor in eclipse.

What I have done is:

1. Checkout the uimaj-ep-runtime plugin and make sure not to run mvn 
eclipse:eclipse
on it.

2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance

3. Now run mvn package in uimaj-ep-cas-editor and refresh the project
(that should generate the MANIFEST.MF file from the pom.xml)

4. Go to the launch configuration and make sure it has all necessary
plugins, that can be done with Plug ins -> Add required plug ins and
after that click on Validate Plug ins to make sure its correct.

All in all its a bit complicated.

You can also just take the jar file which you get after mvn package
and put it together with the runtime jar file in a fresh eclipse install.
Then it should work directly. To see what you can do with the Cas Editor
have a look at the documentation which is shipped with the Cas Editor 2.2.2.

What do you plan to do with it ? I refactored it today a bit to make 
extending
it easier.

I think there are basically three ways of extending the Cas Editor:
- Add new views which show an aspect of the CAS
- Adding new editors
- Embedding it deeply in a RCP application

Though if you are planning to do the later two you are likely to run in 
a few issue,
but I am happy to help with that.

Jörn

Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Kai Schlamp wrote:
>> You will need to build the rest of UIMA first (with Maven).  The
>> CAS Editor needs a current version of UIMA APIs from trunk, that's
>> the version 2.3.0 etc.  Since we haven't released that version yet,
>> it's not in the maven repos.  However, it will get installed in
>> your local repo when you build it.  Please follow the instructions
>> on the website for building UIMA from source.
>
> Thanks Thilo for the information. Is there an official release plan 
> for 2.3 (didn't find it on the UIMA site)?
> Will the CAS Editor be an official part of it?
>
Yes the Cas Editor graduated from the sandbox and will be part of the 
UIMA framework distrubution.

Jörn

Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Kai Schlamp wrote:
> Kai Schlamp wrote:
>>> You will need to build the rest of UIMA first (with Maven).  The
>>> CAS Editor needs a current version of UIMA APIs from trunk, that's
>>> the version 2.3.0 etc.  Since we haven't released that version yet,
>>> it's not in the maven repos.  However, it will get installed in
>>> your local repo when you build it.  Please follow the instructions
>>> on the website for building UIMA from source.
>>
>> Thanks Thilo for the information. Is there an official release plan 
>> for 2.3 (didn't find it on the UIMA site)?
>> Will the CAS Editor be an official part of it?
>
> Ah, I just found out ... there is a binary available for 2.2.2. I 
> wasn't aware of that either.
> I will take a look at that first.
The 2.2.2 version is packaged as RCP application, the 2.3.0 version will 
be released as an eclipse plugin,
because then it can be used within eclipse or RCP applications.
The current version also has a few new features and some important bug 
fixes.

Jörn

Re: How to start the CAS Editor?

Posted by Thilo Goetz <tw...@gmx.de>.
Kai Schlamp wrote:
> Kai Schlamp wrote:
>>> You will need to build the rest of UIMA first (with Maven).  The
>>> CAS Editor needs a current version of UIMA APIs from trunk, that's
>>> the version 2.3.0 etc.  Since we haven't released that version yet,
>>> it's not in the maven repos.  However, it will get installed in
>>> your local repo when you build it.  Please follow the instructions
>>> on the website for building UIMA from source.
>>
>> Thanks Thilo for the information. Is there an official release plan
>> for 2.3 (didn't find it on the UIMA site)?

There's no official release plan yet, but I'm trying to
find more time for UIMA and we're shooting for a release
this summer.

--Thilo

>> Will the CAS Editor be an official part of it?
> 
> Ah, I just found out ... there is a binary available for 2.2.2. I wasn't
> aware of that either.
> I will take a look at that first.
> 
> Thanks,
> Kai


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Kai Schlamp wrote:
>> You will need to build the rest of UIMA first (with Maven).  The
>> CAS Editor needs a current version of UIMA APIs from trunk, that's
>> the version 2.3.0 etc.  Since we haven't released that version yet,
>> it's not in the maven repos.  However, it will get installed in
>> your local repo when you build it.  Please follow the instructions
>> on the website for building UIMA from source.
> 
> Thanks Thilo for the information. Is there an official release plan for 
> 2.3 (didn't find it on the UIMA site)?
> Will the CAS Editor be an official part of it?

Ah, I just found out ... there is a binary available for 2.2.2. I wasn't aware of that either.
I will take a look at that first.

Thanks,
Kai


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
> You will need to build the rest of UIMA first (with Maven).  The
> CAS Editor needs a current version of UIMA APIs from trunk, that's
> the version 2.3.0 etc.  Since we haven't released that version yet,
> it's not in the maven repos.  However, it will get installed in
> your local repo when you build it.  Please follow the instructions
> on the website for building UIMA from source.

Thanks Thilo for the information. Is there an official release plan for 2.3 (didn't find it on the 
UIMA site)?
Will the CAS Editor be an official part of it?

Regards
Kai


Re: How to start the CAS Editor?

Posted by Thilo Goetz <tw...@gmx.de>.
Kai Schlamp wrote:
> Kai Schlamp wrote:
>>> 2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance
>>
>> Ok, but how? uimaj-ep-runtime also doesn't have a MANIFEST, and so
>> can't be exported as a plugin.
>> Do I have to build that first, too?
>> I didn't use Maven before, but now installed a Maven Eclipse Plugin
>> (m2eclipse).
>> Do I have to compile uimaj-ep-runtime with Maven.
> 
> I now tried to run Maven assembly:assembly from within Eclipse with the
> help of that Maven plugin.
> I get the below error, but I am not even sure if I am using Maven
> correctly.
> 
> The error message (I assume it has to do with the
> http://repo1.maven.org/maven2 part ... seems nonsense to me):
> 
> [ERROR]
> 
> Failed to resolve parent-POM from repository.
> 
> Parent POM Information:
> 
> Group-Id: org.apache.uima
> Artifact-Id: uimaj-eclipse-plugins
> Version: 2.3.0.incubating-SNAPSHOT

You will need to build the rest of UIMA first (with Maven).  The
CAS Editor needs a current version of UIMA APIs from trunk, that's
the version 2.3.0 etc.  Since we haven't released that version yet,
it's not in the maven repos.  However, it will get installed in
your local repo when you build it.  Please follow the instructions
on the website for building UIMA from source.

--Thilo

> 
> Local Repository: /home/kai/.m2/repository
> 
> Remote Repositories:
> central -> http://repo1.maven.org/maven2
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.uima:uimaj-eclipse-plugins:pom:2.3.0.incubating-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> 
> 
> Project Id: [inherited]:uimaj-ep-runtime:bundle:[inherited]
> From file:
> /home/kai/projects/pubcurator/workspaces/caseditor/uimaj-ep-runtime/pom.xml
> 
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run with the -e flag
> [INFO]
> ------------------------------------------------------------------------
> [INFO]  + Ignoring build failures
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Jun 25 22:31:36 CEST 2009
> [INFO] Final Memory: 1M/58M
> [INFO]
> ------------------------------------------------------------------------


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Tong Fin wrote:
> I don't get your points why you need to build uimaj-ep-runtime plugin with
> maven since it is available and is READY to use as Eclipse plugin.
> 
> Normally, users install these UIMA plug-ins in the same way as they install
> other Eclipse plug-ins and they can write any Eclipse plug-in that uses UIMA
> classes..
> 
> Please let us know if there is any issue that you cannot do in this way and
> you have to build them with maven.

Hy Tong.

I wasn't aware of that it is part of the normal Eclipse plugin (which I already have installed).
I just followed that step to step guide of Jörn. And that said: Checkout the uimaj-ep-runtime 
plugin, Add the uimaj-ep-runtime plugin. So I thought both would be the same.
But as I understand Thilo now, the whole UIMA 2.3 must be build from scratch to take a look at the 
CAS Editor.
I will look for the instructions on the UIMA site.

Regards,
Kai


RE: Re: How to start the CAS Editor?

Posted by "Chavan, Girish" <ch...@upmc.edu>.
You are quite correct. Looking forward to seeing your beta application. 

-Girish

-----Original Message-----
From: news [mailto:news@ger.gmane.org] On Behalf Of Kai Schlamp
Sent: Friday, June 26, 2009 2:51 PM
To: uima-user@incubator.apache.org
Subject: Re: How to start the CAS Editor?

Chavan, Girish wrote:
> Wow that sounds pretty much close to what we are trying to do. I'll
take a look at you beta once it is released and maybe we can find some
synergies.
> 
> Our project (ODIE) has a demo. Version out here:
http://bioontology.org/tools/ODIE.html

Yes, thanks ... I have already watched it. Our apps have some points in
common, but in my opinion 
also differ in some essential points. Your project seems more ontology
centric and more for 
ontology/nlp specialists. Our target audience is more the MD or doctoral
student that wants to 
validate some huge amount of publications for one or more specific
questions without the help of a 
bioinformatician.
Or how would you describe yourself your target audience?



Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Chavan, Girish wrote:
> Wow that sounds pretty much close to what we are trying to do. I'll take a look at you beta once it is released and maybe we can find some synergies.
> 
> Our project (ODIE) has a demo. Version out here: http://bioontology.org/tools/ODIE.html

Yes, thanks ... I have already watched it. Our apps have some points in common, but in my opinion 
also differ in some essential points. Your project seems more ontology centric and more for 
ontology/nlp specialists. Our target audience is more the MD or doctoral student that wants to 
validate some huge amount of publications for one or more specific questions without the help of a 
bioinformatician.
Or how would you describe yourself your target audience?



RE: Re: How to start the CAS Editor?

Posted by "Chavan, Girish" <ch...@upmc.edu>.
Wow that sounds pretty much close to what we are trying to do. I'll take a look at you beta once it is released and maybe we can find some synergies.

Our project (ODIE) has a demo. Version out here: http://bioontology.org/tools/ODIE.html

-Girish

_______________
Girish Chavan, MSIS
Department of Biomedical Informatics (DBMI)
University of Pittsburgh
UPMC Cancer Pavilion, 302D
5150 Centre Avenue
Pittsburgh, PA  15232
Office: 412-623-4084
Email: chavang@upmc.edu



-----Original Message-----
From: news [mailto:news@ger.gmane.org] On Behalf Of Kai Schlamp
Sent: Friday, June 26, 2009 5:17 AM
To: uima-user@incubator.apache.org
Subject: Re: How to start the CAS Editor?

> Would love to hear about your project and what do you want to do with 
> the Cas Editor.

It's a biomedical text analysis platform. It is extensible by third partys with their analyzers and 
document importers. We use an own type system as everything is very graph centric.
At the moment we only present those annotations that are included in our type system. But it would 
be nice to have a feature to show all annotations of all analysis engines that were used.
But the problem with a simple integration of CAS Editor would be that our application only exists of 
views (no editors at all ... an no editors welcome ;-)). But we could perhaps integrate some of the 
code. Not sure about that yet as we have other priorities. E.g. releasing a first beta version in 
the upcoming weeks.


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
> If I remember it correctly the tool you are working on is also Open 
> Source right ? Then I can have a look at
> it after your beta release.

Yes of course. It will be available at https://sourceforge.net/projects/pubcurator/ (not much there 
yet).
I will leave a message here when the beta version gets released.



Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Kai Schlamp wrote:
> Jörn Kottmann wrote:
>> Kai Schlamp wrote:
>>>> Would love to hear about your project and what do you want to do 
>>>> with the Cas Editor.
>>>
>>> It's a biomedical text analysis platform. It is extensible by third 
>>> partys with their analyzers and document importers. We use an own 
>>> type system as everything is very graph centric.
>>> At the moment we only present those annotations that are included in 
>>> our type system. But it would be nice to have a feature to show all 
>>> annotations of all analysis engines that were used.
>>> But the problem with a simple integration of CAS Editor would be 
>>> that our application only exists of views (no editors at all ... an 
>>> no editors welcome ;-)). But we could perhaps integrate some of the 
>>> code. Not sure about that yet as we have other priorities. E.g. 
>>> releasing a first beta version in the upcoming weeks.
>> The difference between an editor and a view in eclipse is that an 
>> editor can have
>> multiple instances, a view can only have one instance. Usually if you 
>> have an application
>> which is working with some kind of document which can be opened you 
>> also want be
>> able to open multiple documents at once.
>>
>> The Cas Editor assumes that you open the CAS in an editor. If you 
>> don't do that you cannot
>> reuse anything.
>>
>> Though I do not understand why you don't want to use editors.
>
> Ah, that's an ongoing discussion of RCP developers. There are cases 
> where editors simply doesn't make sense.
> And when you look at some of the already available RCP apps
> (some larget projects are listed at 
> http://eclipse.org/community/rcp.php), there are many without editors.
> If you simply don't edit anything (e.g. a text document) ... why have 
> an editor then?
> In our app there is no load, edit, save cycle.
> So you see, it depends on the type of application. And this wasn't 
> anything against CAS Editor. It surely needs
> editors ... the name already points this out :-)
I am just curious because, I considered the case where you have an (cas) 
editor as the only one.

So I would also be interested to learn if there is a possibility to have 
the Cas Editor views in a away
that they could be used without an editor.

If I remember it correctly the tool you are working on is also Open 
Source right ? Then I can have a look at
it after your beta release.

Jörn

Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Jörn Kottmann wrote:
> Kai Schlamp wrote:
>>> Would love to hear about your project and what do you want to do with 
>>> the Cas Editor.
>>
>> It's a biomedical text analysis platform. It is extensible by third 
>> partys with their analyzers and document importers. We use an own type 
>> system as everything is very graph centric.
>> At the moment we only present those annotations that are included in 
>> our type system. But it would be nice to have a feature to show all 
>> annotations of all analysis engines that were used.
>> But the problem with a simple integration of CAS Editor would be that 
>> our application only exists of views (no editors at all ... an no 
>> editors welcome ;-)). But we could perhaps integrate some of the code. 
>> Not sure about that yet as we have other priorities. E.g. releasing a 
>> first beta version in the upcoming weeks.
> The difference between an editor and a view in eclipse is that an editor 
> can have
> multiple instances, a view can only have one instance. Usually if you 
> have an application
> which is working with some kind of document which can be opened you also 
> want be
> able to open multiple documents at once.
> 
> The Cas Editor assumes that you open the CAS in an editor. If you don't 
> do that you cannot
> reuse anything.
> 
> Though I do not understand why you don't want to use editors.

Ah, that's an ongoing discussion of RCP developers. There are cases where editors simply doesn't 
make sense.
And when you look at some of the already available RCP apps
(some larget projects are listed at http://eclipse.org/community/rcp.php), there are many without 
editors.
If you simply don't edit anything (e.g. a text document) ... why have an editor then?
In our app there is no load, edit, save cycle.
So you see, it depends on the type of application. And this wasn't anything against CAS Editor. It 
surely needs
editors ... the name already points this out :-)









> 
> Jörn
> 
> 


Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Kai Schlamp wrote:
>> Would love to hear about your project and what do you want to do with 
>> the Cas Editor.
>
> It's a biomedical text analysis platform. It is extensible by third 
> partys with their analyzers and document importers. We use an own type 
> system as everything is very graph centric.
> At the moment we only present those annotations that are included in 
> our type system. But it would be nice to have a feature to show all 
> annotations of all analysis engines that were used.
> But the problem with a simple integration of CAS Editor would be that 
> our application only exists of views (no editors at all ... an no 
> editors welcome ;-)). But we could perhaps integrate some of the code. 
> Not sure about that yet as we have other priorities. E.g. releasing a 
> first beta version in the upcoming weeks.
The difference between an editor and a view in eclipse is that an editor 
can have
multiple instances, a view can only have one instance. Usually if you 
have an application
which is working with some kind of document which can be opened you also 
want be
able to open multiple documents at once.

The Cas Editor assumes that you open the CAS in an editor. If you don't 
do that you cannot
reuse anything.

Though I do not understand why you don't want to use editors.

Jörn


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
> Would love to hear about your project and what do you want to do with 
> the Cas Editor.

It's a biomedical text analysis platform. It is extensible by third partys with their analyzers and 
document importers. We use an own type system as everything is very graph centric.
At the moment we only present those annotations that are included in our type system. But it would 
be nice to have a feature to show all annotations of all analysis engines that were used.
But the problem with a simple integration of CAS Editor would be that our application only exists of 
views (no editors at all ... an no editors welcome ;-)). But we could perhaps integrate some of the 
code. Not sure about that yet as we have other priorities. E.g. releasing a first beta version in 
the upcoming weeks.


Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
> Thanks, Jörn. I wasn't aware that there is a binary of CAS Editor 
> available for 2.2.2. I'll have a look at this first. It maybe doesn't 
> have all the features of 2.3, but gives me an impression of how I 
> could use it for my project.
Would love to hear about your project and what do you want to do with 
the Cas Editor.

Jörn

Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Jörn Kottmann wrote:
> Tong Fin wrote:
>>
>>
>> I don't get your points why you need to build uimaj-ep-runtime plugin 
>> with
>> maven since it is available and is READY to use as Eclipse plugin.
>>
>> Normally, users install these UIMA plug-ins in the same way as they 
>> install
>> other Eclipse plug-ins and they can write any Eclipse plug-in that 
>> uses UIMA
>> classes..
>>
>> Please let us know if there is any issue that you cannot do in this 
>> way and
>> you have to build them with maven.
>>   
> Only the 2.2.2 eclipse plugin is available pre-built.
> If you checkout all the projects like its described on
> our website, then you need to remove the java/pde natures
> from the uimaj-ep-runtime project and install it manually
> to the eclipse instance, which is annoying.
> 
> Or do you know how to use the uimaj-ep-runtime project
> directly to start the other plugins from within eclipse ?
> 
> If the plugin does not get installed I always get lots of compiler errors.

Thanks, Jörn. I wasn't aware that there is a binary of CAS Editor available for 2.2.2. I'll have a 
look at this first. It maybe doesn't have all the features of 2.3, but gives me an impression of how 
I could use it for my project.

Regards,
Kai


Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Tong Fin wrote:
>
>
> I don't get your points why you need to build uimaj-ep-runtime plugin with
> maven since it is available and is READY to use as Eclipse plugin.
>
> Normally, users install these UIMA plug-ins in the same way as they install
> other Eclipse plug-ins and they can write any Eclipse plug-in that uses UIMA
> classes..
>
> Please let us know if there is any issue that you cannot do in this way and
> you have to build them with maven.
>   
Only the 2.2.2 eclipse plugin is available pre-built.
If you checkout all the projects like its described on
our website, then you need to remove the java/pde natures
from the uimaj-ep-runtime project and install it manually
to the eclipse instance, which is annoying.

Or do you know how to use the uimaj-ep-runtime project
directly to start the other plugins from within eclipse ?

If the plugin does not get installed I always get lots of compiler errors.

Jörn

Re: How to start the CAS Editor?

Posted by Tong Fin <to...@gmail.com>.
Kai,

2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance
>>>
>>
>> Ok, but how? uimaj-ep-runtime also doesn't have a MANIFEST, and so can't
>> be exported as a plugin.
>> Do I have to build that first, too?
>> I didn't use Maven before, but now installed a Maven Eclipse Plugin
>> (m2eclipse).
>> Do I have to compile uimaj-ep-runtime with Maven.
>>
>
> I now tried to run Maven assembly:assembly from within Eclipse with the
> help of that Maven plugin.
>

I don't get your points why you need to build uimaj-ep-runtime plugin with
maven since it is available and is READY to use as Eclipse plugin.

Normally, users install these UIMA plug-ins in the same way as they install
other Eclipse plug-ins and they can write any Eclipse plug-in that uses UIMA
classes..

Please let us know if there is any issue that you cannot do in this way and
you have to build them with maven.

-- Tong

Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
Kai Schlamp wrote:
>> 2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance
> 
> Ok, but how? uimaj-ep-runtime also doesn't have a MANIFEST, and so can't 
> be exported as a plugin.
> Do I have to build that first, too?
> I didn't use Maven before, but now installed a Maven Eclipse Plugin 
> (m2eclipse).
> Do I have to compile uimaj-ep-runtime with Maven.

I now tried to run Maven assembly:assembly from within Eclipse with the help of that Maven plugin.
I get the below error, but I am not even sure if I am using Maven correctly.

The error message (I assume it has to do with the http://repo1.maven.org/maven2 part ... seems 
nonsense to me):

[ERROR]

Failed to resolve parent-POM from repository.

Parent POM Information:

Group-Id: org.apache.uima
Artifact-Id: uimaj-eclipse-plugins
Version: 2.3.0.incubating-SNAPSHOT

Local Repository: /home/kai/.m2/repository

Remote Repositories:
central -> http://repo1.maven.org/maven2

Reason: Unable to download the artifact from any repository

   org.apache.uima:uimaj-eclipse-plugins:pom:2.3.0.incubating-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2)



Project Id: [inherited]:uimaj-ep-runtime:bundle:[inherited]
 From file: /home/kai/projects/pubcurator/workspaces/caseditor/uimaj-ep-runtime/pom.xml



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO]  + Ignoring build failures
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jun 25 22:31:36 CEST 2009
[INFO] Final Memory: 1M/58M
[INFO] ------------------------------------------------------------------------


Re: How to start the CAS Editor?

Posted by Kai Schlamp <sc...@gmx.de>.
> 2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance

Ok, but how? uimaj-ep-runtime also doesn't have a MANIFEST, and so can't be exported as a plugin.
Do I have to build that first, too?
I didn't use Maven before, but now installed a Maven Eclipse Plugin (m2eclipse).
Do I have to compile uimaj-ep-runtime with Maven.

> All in all its a bit complicated.

A bit ;-)

> - Embedding it deeply in a RCP application

That sounds good.

> Though if you are planning to do the later two you are likely to run in 
> a few issue

I already ran into one ... the installation ;-)

> but I am happy to help with that.

But that sounds like a solution ;-)


Re: How to start the CAS Editor?

Posted by Jörn Kottmann <ko...@gmail.com>.
Kai Schlamp wrote:
> Ok, Jörn ... you made me curious about the CAS Editor.
> I fetched it from SVN, but don't know how to proceed.
> It doesn't have a MANIFEST, so I can't easily create a plugin from it.
> And when I try to start "UIMA Cas Editor.launch" ... well, it's not 
> really startable.
> What do I have to do to see the shiny thing in action? ;-)
The way our uimaj-ep-runtime plugin is set up right now makes it
difficult to run the Cas Editor in eclipse.

What I have done is:

1. Checkout the uimaj-ep-runtime plugin and make sure not to run mvn 
eclipse:eclipse
on it.

2. Add the uimaj-ep-runtime plugin as plugin to your eclipse instance

3. Now run mvn package in uimaj-ep-cas-editor and refresh the project
(that should generate the MANIFEST.MF file from the pom.xml)

4. Go to the launch configuration and make sure it has all necessary
plugins, that can be done with Plug ins -> Add required plug ins and
after that click on Validate Plug ins to make sure its correct.

All in all its a bit complicated.

You can also just take the jar file which you get after mvn package
and put it together with the runtime jar file in a fresh eclipse install.
Then it should work directly. To see what you can do with the Cas Editor
have a look at the documentation which is shipped with the Cas Editor 2.2.2.

What do you plan to do with it ? I refactored it today a bit to make 
extending
it easier.

I think there are basically three ways of extending the Cas Editor:
- Add new views which show an aspect of the CAS
- Adding new editors
- Embedding it deeply in a RCP application

Though if you are planning to do the later two you are likely to run in 
a few issue,
but I am happy to help with that.

Jörn