After a the discussion here I think the Cas Editor should distinguish
between
session preferences per type system and persistent preferences per type
system
more less as it is implemented already right now.
The eclipse plugin which integrates the Cas Editor plugin can decide
where to place
these two kind of preference stores. The persistent preferences could be
stored on
a server, and shared by users, where the session preferences are
typically only interesting
for one user.
The Cas Editor Ide Plugin stores the persistent preferences on disk, and I
believe we should extend this and also save the session data somewhere
in the
eclipse project, eclipse actually also does this and remembers which editors
have been opened at the end of a session. And then uses this informatin
to re-open
all editors when it is started again.
I will move the settings which annotations are shown to the session
preferences and then modify the ide plugin to save these to the project.
Jörn
On 10/10/11 11:23 AM, Jörn Kottmann wrote:
Hi all,
the Cas Editors Annotation Editor uses a list of shown annotation types
to decide which annotation are displayed and which not. This list
can either be modified in the context menu of the editor or in a separate
view.
I got a little confused about the fact where I should store this
information.
The Cas Editor historically has "two" places to store such settings,
one is a
persistent store per type system (that used to be in the DotCorpus
file) and
an in memory per type system session store (that is the
EditorAnnotationStatus object).
Currently the displayed annotation types are stored in the persistent
store, but I know
believe that the session store would be a better place to store it.
Because these are settings
which usually changed many times during a Cas Editor session and might
not be important
for the user to be saved to a persistent store. Saving data which
frequently changes in the
persistent store makes it more difficult for project teams to exchange
it e.g. via subversion,
because it just changes all the time for everyone.
Therefore I would like to move the displayed annotation types to the
session store,
any opinions about that? Currently the annotation editor stores there
the "mode"
and last opened "view" information.
To work further towards a more common Cas Editor API I am planning to
use the eclipse
preference store to replace the dot corpus file, and the session
settings store.
This way also Cas Editor plugins are able to store settings in these
two type system
bound scopes.
Jörn