Class ImportSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.apache.uima.taeconfigurator.editors.ui.AbstractSection
org.apache.uima.taeconfigurator.editors.ui.ImportSection
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart
Direct Known Subclasses:
ImportResBindSection, IndexImportSection, TypeImportSection, TypePriorityImportSection

public abstract class ImportSection extends AbstractSection
Imports - used by aggregates types type priorities indexes external resource specifications.
  • Field Details

    • TABLE_HOVER_REQUERY_TIME

      protected static final long TABLE_HOVER_REQUERY_TIME
      The Constant TABLE_HOVER_REQUERY_TIME.
      See Also:
    • lastTableHoverItem

      protected org.eclipse.swt.widgets.TableItem lastTableHoverItem
      The last table hover item.
    • lLastTableHoverMillis

      protected long lLastTableHoverMillis
      The l last table hover millis.
    • sLastTableHoverHelp

      protected String sLastTableHoverHelp
      The s last table hover help.
    • bDisableToolTipHelp

      protected boolean bDisableToolTipHelp
      The b disable tool tip help.
    • addButton

      protected org.eclipse.swt.widgets.Button addButton
      The add button.
  • Constructor Details

    • ImportSection

      public ImportSection(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String title, String description)
      Instantiates a new import section.
      Parameters:
      aEditor - the a editor
      parent - the parent
      title - the title
      description - the description
  • Method Details

    • getModelImportArray

      protected abstract Import[] getModelImportArray()
      Gets the model import array.
      Returns:
      the model import array
    • setModelImportArray

      protected abstract void setModelImportArray(Import[] newImports)
      Sets the model import array.
      Parameters:
      newImports - the new model import array
    • isValidImport

      protected abstract boolean isValidImport(String title, String message)
      Checks if is valid import.
      Parameters:
      title - the title
      message - the message
      Returns:
      true, if is valid import
    • finishImportChangeAction

      protected abstract void finishImportChangeAction()
      Finish import change action.
    • getDescriptionFromImport

      protected abstract String getDescriptionFromImport(String source) throws InvalidXMLException, IOException
      Gets the description from import.
      Parameters:
      source - the source
      Returns:
      the description from import
      Throws:
      InvalidXMLException - the invalid XML exception
      IOException - Signals that an I/O exception has occurred.
    • isAppropriate

      protected abstract boolean isAppropriate()
      Checks if is appropriate.
      Returns:
      true, if is appropriate
    • clearModelBaseValue

      protected abstract void clearModelBaseValue()
      Clear model base value.
    • initialize

      public void initialize(org.eclipse.ui.forms.IManagedForm form)
      Specified by:
      initialize in interface org.eclipse.ui.forms.IFormPart
      Overrides:
      initialize in class AbstractSection
    • refresh

      public void refresh()
      Specified by:
      refresh in interface org.eclipse.ui.forms.IFormPart
      Overrides:
      refresh in class org.eclipse.ui.forms.AbstractFormPart
    • handleEvent

      public void handleEvent(org.eclipse.swt.widgets.Event event)
    • handleRemove

      public void handleRemove()
      Handle remove.
    • addImports

      public boolean addImports(Object[] locations, boolean isByName)
      Called with either byLocation non-null or byName non-null Adds multiple (by location) or one (by name).
      Parameters:
      locations - objects returned from dialog
      isByName - true if imports should be done by name
      Returns:
      false if any import caused an error, true of all OK
    • enable

      public void enable()
      Description copied from class: AbstractSection
      Enable.
      Specified by:
      enable in class AbstractSection
    • exportImportablePart

      protected void exportImportablePart(String xmlStartElement, String partTemplate)
      Export importable part.
      Parameters:
      xmlStartElement - first element exported
      partTemplate - the part template