Class TypeGroupedContentProvider
java.lang.Object
org.apache.uima.caseditor.editor.AbstractDocumentListener
org.apache.uima.caseditor.editor.AbstractAnnotationDocumentListener
org.apache.uima.caseditor.editor.outline.TypeGroupedContentProvider
- All Implemented Interfaces:
ICasDocumentListener, org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreeContentProvider
The content provider for the type grouped annotation outline.
TODO: Make it sensitive to show annotations menu from the editor ... Who sends selection events
which are not from the UI thread ?
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotationEditorThe m editor.protected ICasDocumentThe m input document.protected org.eclipse.jface.viewers.TreeViewerThe viewer. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddedAnnotation(Collection<AnnotationFS> annotations) Added annotation.voidchanged()This method is called ifFeatureStructures in the document are changed.voiddispose()not implemented.Object[]getChildren(Object parentElement) Object[]getElements(Object inputElement) booleanhasChildren(Object element) voidinputChanged(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput) Gets called if the viewer input was changed.protected voidremovedAnnotation(Collection<AnnotationFS> annotations) Removed annotation.protected voidupdatedAnnotation(Collection<AnnotationFS> featureStructres) Updates the given annotation in the viewer.voidviewChanged(String oldViewName, String newViewName) This method is called when the currently active view is changed in the document.Methods inherited from class AbstractAnnotationDocumentListener
added, removed, updatedMethods inherited from class AbstractDocumentListener
added, removed, updated
-
Field Details
-
mEditor
The m editor. -
mInputDocument
The m input document. -
viewer
protected org.eclipse.jface.viewers.TreeViewer viewerThe viewer.
-
-
Method Details
-
addedAnnotation
Description copied from class:AbstractAnnotationDocumentListenerAdded annotation.- Specified by:
addedAnnotationin classAbstractAnnotationDocumentListener- Parameters:
annotations- the annotations
-
removedAnnotation
Description copied from class:AbstractAnnotationDocumentListenerRemoved annotation.- Specified by:
removedAnnotationin classAbstractAnnotationDocumentListener- Parameters:
annotations- the annotations
-
getElements
-
getParent
-
hasChildren
-
getChildren
-
viewChanged
Description copied from interface:ICasDocumentListenerThis method is called when the currently active view is changed in the document. A view changed does not indicate a structural change, but usually feature structures must be completely synchronized afterward.- Specified by:
viewChangedin interfaceICasDocumentListener- Overrides:
viewChangedin classAbstractDocumentListener- Parameters:
oldViewName- the old view namenewViewName- the new view name
-
changed
public void changed()Description copied from interface:ICasDocumentListenerThis method is called ifFeatureStructures in the document are changed. Note: The text can not be changed- Specified by:
changedin interfaceICasDocumentListener- Overrides:
changedin classAbstractDocumentListener
-
dispose
public void dispose()not implemented.- Specified by:
disposein interfaceorg.eclipse.jface.viewers.IContentProvider
-
inputChanged
Gets called if the viewer input was changed. In this case, this only happens once if theAnnotationOutlineis initialized.- Specified by:
inputChangedin interfaceorg.eclipse.jface.viewers.IContentProvider- Parameters:
viewer- the vieweroldInput- the old inputnewInput- the new input
-
updatedAnnotation
Updates the given annotation in the viewer.- Specified by:
updatedAnnotationin classAbstractAnnotationDocumentListener- Parameters:
featureStructres- the feature structres
-