Returns the "annotation" instances associated with a TextSource if the
TextSource does not have a corresponding "text source" instance in the
knowledgebase, then null is returned.
Every implementation of TextSource corresponds to a subclass of
"knowtator text source" which is a class defined knowtator.pprj (which is
the project that must be included in order to run Knowtator.)
This method returns all class mentions or instance mentions related to
the passed in mention via slot mentions whose mentioned slot is the
passed in slot.
Returns a list Span objects corresponding to the span strings selected in
the span widget If there are no spans selected, then the first span
listed in the span widget is returned.
This string is used to give a hash key for the AnnotationUtil that will
be passed to the knowledge base as client information that other objects
can access.
This code was copied directly from the Protege source code from
edu.stanford.smi.protege.util.ModalDialog I copied the code so that I could
modify it so that I could move the location of the where the dialog appears.
The "next" annotation is defined as the annotation (if it exists) that is
of the same type as the currently selected annotation that is 'next'
according to the sort order defined by the currently selected comparator.
The "previous" annotation is defined as the annotation (if it exists)
that is of the same type as the currently selected annotation that is
'next' according to the sort order defined by the currently selected
comparator.
This class is a simple extension of the ContainsWidget that simply overrides
the setValues method so that the slot mentions of a class mention or instance
mention will always be in a predictable order - rather than a random order(!)
The order of the slots is currently alphabetical by the slot name.
This method assumes that the both lists of spans are sorted the same way
and that a span in one list at the same index as a span in the other list
should be the same.