Class DefaultCasDocumentProvider

java.lang.Object
org.apache.uima.caseditor.editor.CasDocumentProvider
org.apache.uima.caseditor.ide.DefaultCasDocumentProvider

public class DefaultCasDocumentProvider extends CasDocumentProvider
  • Constructor Details

    • DefaultCasDocumentProvider

      public DefaultCasDocumentProvider()
  • Method Details

    • createDocument

      protected ICasDocument createDocument(Object element) throws org.eclipse.core.runtime.CoreException
      Description copied from class: CasDocumentProvider
      Creates the a new AnnotationDocument from the given IEditorInput element. For all other elements null is returned.
      Specified by:
      createDocument in class CasDocumentProvider
      Parameters:
      element - the element
      Returns:
      the i cas document
      Throws:
      org.eclipse.core.runtime.CoreException - the core exception
    • doSaveDocument

      protected void doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor, Object element, ICasDocument document, boolean overwrite) throws org.eclipse.core.runtime.CoreException
      Description copied from class: CasDocumentProvider
      Do save document.
      Specified by:
      doSaveDocument in class CasDocumentProvider
      Parameters:
      monitor - the monitor
      element - the element
      document - the document
      overwrite - the overwrite
      Throws:
      org.eclipse.core.runtime.CoreException - the core exception
    • saveTypeSystemPreferenceStore

      public void saveTypeSystemPreferenceStore(Object element)
      Description copied from class: CasDocumentProvider
      Save type system preference store.
      Specified by:
      saveTypeSystemPreferenceStore in class CasDocumentProvider
      Parameters:
      element - the element
    • getTypeSystemPreferenceStore

      public org.eclipse.jface.preference.IPreferenceStore getTypeSystemPreferenceStore(Object element)
      Description copied from class: CasDocumentProvider
      Retrieves the persistent per type system preference store. This store is usually saved in relation to the type system, e.g. an ide plugin could save a preference file next to the type system file.
      Specified by:
      getTypeSystemPreferenceStore in class CasDocumentProvider
      Parameters:
      element - the element
      Returns:
      the preference store or null if it cannot be retrieved, e.g no document was created for the input.
    • getSessionPreferenceStore

      public org.eclipse.jface.preference.IPreferenceStore getSessionPreferenceStore(Object element)
      Description copied from class: CasDocumentProvider
      Retrieves the session preference store. This preference store is used to store session data which should be used to initialize a freshly opened editor.
      Specified by:
      getSessionPreferenceStore in class CasDocumentProvider
      Parameters:
      element - the element
      Returns:
      the session preference store
    • createTypeSystemSelectorForm

      public org.eclipse.swt.widgets.Composite createTypeSystemSelectorForm(ICasEditor editor, org.eclipse.swt.widgets.Composite parent, org.eclipse.core.runtime.IStatus status)
      Description copied from class: CasDocumentProvider
      Creates the type system selector form.
      Specified by:
      createTypeSystemSelectorForm in class CasDocumentProvider
      Parameters:
      editor - the editor
      parent - the parent
      status - the status
      Returns:
      the composite
    • createElementInfo

      protected CasDocumentProvider.ElementInfo createElementInfo(Object element)
      Description copied from class: CasDocumentProvider
      Creates the element info.
      Overrides:
      createElementInfo in class CasDocumentProvider
      Parameters:
      element - the element
      Returns:
      the element info
    • disposeElementInfo

      protected void disposeElementInfo(Object element, CasDocumentProvider.ElementInfo info)
      Description copied from class: CasDocumentProvider
      Dispose element info.
      Overrides:
      disposeElementInfo in class CasDocumentProvider
      Parameters:
      element - the element
      info - the info