Am 10.10.2011 16:02, schrieb Jörn Kottmann:
On 10/10/11 3:43 PM, Peter Klügl wrote:

Nope, the settings are only type-sensitive. The file looks like:

<styleMap>
<rule>
<pattern>de.uniwue.tm.citie.Author</pattern>
<label>de.uniwue.tm.citie.Author</label>
<style>color:red;background:yellow;checked:false;hidden:false;</style>
</rule>

Looks like you save the "hidden" flag in this styling file, do you serialize the styling file every time
a user changes the hidden setting for an annotation?



No, that are just the inital settings, changes are just made in the GUI and aren't stored. The "hidden" flag (as far as I remember) isn't even implemented in the CEV plugin.


Well, this is just a "default" setting which Text Marker can create, right?

Yes, the predefined colors for some types.
The Cas Editor offers a util class you could use to come up with different default colors, this code is actually based on code we used over at one of our swing UIMA UI tools (forgot which one).

How do you decide which type system xml file to use in Text Marker when a CAS file is opened?


The CEV plugin has an extension point for search strategies with priorities like a dialog to select the type system. The most common strategy is to take the type system of the script that was launched last if it is in the same project as the CAS file. I'd really like to add this functionality to the CAS Editor for TextMarker projects when it replaces the CEV plugin.

You would need to implement your own CasDocumentProvider, there you can reuse your existing code to load a CAS, to find and load a type system, and to store preferences per type system preferences. There you could also place migration code, to initialize the new Cas Editor settings from
an existing map file.


Ok, I take a closer look at it when I start the CEV migration, but that won't happen soon.

Do you also have settings in Text Marker which need to be stored per session and per type system?

There aren't really many settings for the visualization right now and that's also one reason to switch to the better code base of the CAS Editor.

Peter

--
---------------------------------------------------------------------
Dipl.-Inf. Peter Klügl
Universität Würzburg        Tel.: +49-(0)931-31-86741
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: [email protected]
     http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------

Reply via email to