Class TypeImportSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart

public class TypeImportSection extends ImportSection
The Class TypeImportSection.
  • Constructor Details

    • TypeImportSection

      public TypeImportSection(MultiPageEditor editor, org.eclipse.swt.widgets.Composite parent)
      Instantiates a new type import section.
      Parameters:
      editor - the editor
      parent - the parent
  • Method Details

    • isAppropriate

      protected boolean isAppropriate()
      Description copied from class: ImportSection
      Checks if is appropriate.
      Specified by:
      isAppropriate in class ImportSection
      Returns:
      true, if is appropriate
    • getDescriptionFromImport

      protected String getDescriptionFromImport(String source) throws org.apache.uima.util.InvalidXMLException, IOException
      Description copied from class: ImportSection
      Gets the description from import.
      Specified by:
      getDescriptionFromImport in class ImportSection
      Parameters:
      source - the source
      Returns:
      the description from import
      Throws:
      org.apache.uima.util.InvalidXMLException - the invalid XML exception
      IOException - Signals that an I/O exception has occurred.
    • getModelImportArray

      protected org.apache.uima.resource.metadata.Import[] getModelImportArray()
      Description copied from class: ImportSection
      Gets the model import array.
      Specified by:
      getModelImportArray in class ImportSection
      Returns:
      the model import array
    • setModelImportArray

      protected void setModelImportArray(org.apache.uima.resource.metadata.Import[] imports)
      Description copied from class: ImportSection
      Sets the model import array.
      Specified by:
      setModelImportArray in class ImportSection
      Parameters:
      imports - the new model import array
    • clearModelBaseValue

      protected void clearModelBaseValue()
      Description copied from class: ImportSection
      Clear model base value.
      Specified by:
      clearModelBaseValue in class ImportSection
    • isValidImport

      protected boolean isValidImport(String title, String msg)
      Description copied from class: ImportSection
      Checks if is valid import.
      Specified by:
      isValidImport in class ImportSection
      Parameters:
      title - the title
      msg - the message
      Returns:
      true, if is valid import
    • finishImportChangeAction

      protected void finishImportChangeAction()
      At this point, the basic type system description is updated. and validated. Validation has updated the merged type system description, and updated the CAS.
      Specified by:
      finishImportChangeAction in class ImportSection