Class AbstractSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.apache.uima.taeconfigurator.editors.ui.AbstractSection
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart
Direct Known Subclasses:
AbstractImportablePartSection, AbstractSectionParm, AggregateSection, CapabilitySection, ExtnlResBindSection, FlowSection, GeneralSection, ImportSection, IndexSection, MetaDataSection, PrimitiveSection, PriorityListSection, ResourceDependencySection, SofaMapSection

public abstract class AbstractSection extends org.eclipse.ui.forms.SectionPart implements org.eclipse.swt.widgets.Listener, StandardStrings
The Class AbstractSection.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.uima.resource.metadata.Capability[]
    The Constant capabilityArray0.
    static final org.apache.uima.resource.metadata.ConfigurationGroup[]
    The Constant configurationGroup0.
    static final org.apache.uima.resource.metadata.ConfigurationGroup[]
    The Constant configurationGroupArray0.
    static final org.apache.uima.resource.metadata.ConfigurationParameter[]
    The Constant configurationParameter0.
    static final org.apache.uima.resource.metadata.ConfigurationParameter[]
    The Constant configurationParameterArray0.
    The editor.
    static final boolean
    The Constant ENABLED.
    static final boolean
    The Constant EQUAL_WIDTH.
    static final org.apache.uima.resource.metadata.ExternalResourceBinding[]
    The Constant externalResourceBinding0.
    static final org.apache.uima.resource.ExternalResourceDescription[]
    The Constant externalResourceDescription0.
    static final org.apache.uima.resource.metadata.FeatureDescription[]
    The Constant featureDescriptionArray0.
    static final org.apache.uima.resource.metadata.FsIndexDescription[]
    The Constant fsIndexDescription0.
    static final int
    The Constant HEADER_VISIBLE.
    static final int
    The Constant HORIZONTAL_BUTTONS.
    static final String
    The Constant IMPORTABLE_PART_CONTEXT.
    protected int
    The initial form width.
    static final int
    The Constant LINES_VISIBLE.
    static final org.apache.uima.resource.metadata.NameValuePair[]
    The Constant nameValuePairArray0.
    static final int
    The Constant NO_MIN_HEIGHT.
    static final boolean
    The Constant NOT_SELECTED.
    static final int
    The Constant NOTHING_SELECTED.
    static final String
    The Constant PLUGIN_ID.
    static final boolean
    The Constant SELECTED.
    static final org.apache.uima.analysis_engine.metadata.SofaMapping[]
    The Constant sofaMapping0.
    static final String[]
    The Constant stringArray0.
    protected org.eclipse.ui.forms.widgets.FormToolkit
    The toolkit.
    static final org.eclipse.swt.widgets.TreeItem[]
    The Constant treeItemArray0.
    static final org.apache.uima.resource.metadata.TypeDescription[]
    The Constant typeDescription0.
    static final org.apache.uima.resource.metadata.TypePriorityList[]
    The Constant typePriorityList0.
    protected boolean
    The value changed.
    static final int
    The Constant VERTICAL_BUTTONS.
    static final int
    The Constant WIDTH_NOT_SPECIFIED.

    Fields inherited from interface org.apache.uima.taeconfigurator.StandardStrings

    S_, S_ADD, S_DESCRIPTION, S_DOWN, S_DOWN_TIP, S_EDIT, S_EDIT_TIP, S_EXPORT, S_EXPORT_TIP, S_REMOVE, S_REMOVE_TIP, S_UP, S_UP_TIP
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractSection(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String headerText, String description)
    Instantiates a new abstract section.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.uima.resource.metadata.Capability
    Adds the capability set.
    protected void
    addListenerForPastableWidget(org.eclipse.swt.widgets.Widget w)
    Adds the listener for pastable widget.
    static String
    Convert null.
    static void
    copyTableItem(org.eclipse.swt.widgets.TableItem target, org.eclipse.swt.widgets.TableItem source)
    Copy table item.
    static void
    copyTreeItem(org.eclipse.swt.widgets.TreeItem target, org.eclipse.swt.widgets.TreeItem source)
    Copy table tree item.
    org.apache.uima.resource.metadata.Import
    Creates the by name import.
    org.apache.uima.resource.metadata.Import
    createImport(String fileName, boolean isByName)
    Creates the import.
    org.apache.uima.resource.metadata.Import
    Creates the location import.
    abstract void
    Enable.
    void
    enableBorders(org.eclipse.swt.widgets.Composite composite)
    Enable borders.
    protected static void
    enableCtrl(org.eclipse.swt.widgets.Control c, boolean enabled)
    Enable ctrl.
    protected void
    Finish aggregate change action.
    Format name.
    org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData
    Gets the analysis engine meta data.
    Gets the available type names.
    org.apache.uima.resource.metadata.Capability[]
    Gets the capabilities.
    static org.apache.uima.resource.metadata.Capability[]
    getCapabilities(org.apache.uima.resource.ResourceSpecifier rs)
    Gets the capabilities.
    String[][]
    Gets the capability sofa names.
    protected static Set[]
    getCapabilitySofaNames(org.apache.uima.resource.ResourceCreationSpecifier rs, String componentKey)
    Gets the capability sofa names.
    org.apache.uima.resource.metadata.ConfigurationParameterDeclarations
    Gets the configuration parameter declarations.
    Gets the delegate analysis engine specifiers with imports.
    protected String
    getDescriptionForDescriptor(String fileRef, org.apache.uima.resource.ResourceSpecifier rs)
    Gets the description for descriptor.
    org.apache.uima.resource.metadata.ExternalResourceBinding[]
    Gets the external resource bindings.
    org.apache.uima.resource.ExternalResourceDependency[]
    Gets the external resource dependencies.
    org.apache.uima.resource.ExternalResourceDescription[]
    Gets the external resources.
    org.apache.uima.resource.metadata.FeatureDescription
    getFeature(org.apache.uima.resource.metadata.TypeDescription td, String featureName)
    gets a feature description for a type, including supertypes.
    org.apache.uima.analysis_engine.metadata.FlowControllerDeclaration
    Gets the flow controller declaration.
    protected org.apache.uima.resource.metadata.FsIndexCollection
    Gets the fs index collection.
    static org.apache.uima.resource.metadata.FsIndexDescription
    getFsIndexDescriptionFromTableTreeItem(org.eclipse.swt.widgets.TreeItem item)
    Gets the fs index description from table tree item.
    static int
    getIndex(org.eclipse.swt.widgets.TableItem item)
    Gets the index.
    static int
    getIndex(org.eclipse.swt.widgets.TreeItem item)
    Gets the index.
    protected int
    getItemIndex(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem item)
    Gets the item index.
    protected org.apache.uima.resource.metadata.TypeSystemDescription
    Gets the merged type system description.
    org.apache.uima.resource.metadata.ResourceMetaData
    getMetaDataFromDescription(org.apache.uima.resource.ResourceSpecifier o)
    Get the metadata for a local or remote descriptor.
    static String
    Gets the name space.
    org.apache.uima.resource.metadata.OperationalProperties
    Gets the operational properties.
    protected org.eclipse.swt.widgets.TreeItem
    getPreviousSelection(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem nextItem)
    Gets the previous selection.
    org.apache.uima.resource.metadata.ResourceManagerConfiguration
    Gets the resource manager configuration.
    static String
    Gets the short feature name.
    static String
    Gets the short name.
    org.apache.uima.analysis_engine.metadata.SofaMapping[]
    Gets the sofa mappings.
    static org.apache.uima.analysis_engine.metadata.SofaMapping[]
    Gets the sofa mappings.
    org.eclipse.ui.forms.widgets.FormToolkit
    Gets the toolkit.
    static String
    Gets the type from full feature name.
    static org.apache.uima.analysis_engine.TypeOrFeature
    getTypeOrFeature(org.apache.uima.analysis_engine.TypeOrFeature[] a, String name)
    Gets the type or feature.
    protected org.apache.uima.resource.metadata.TypePriorities
    Gets the type priorities.
    protected org.apache.uima.resource.metadata.TypeSystemDescription
    Gets the type system description.
    static String
    Handle default index kind.
    void
    initialize(org.eclipse.ui.forms.IManagedForm form)
     
    boolean
    Checks if is ae descriptor.
    boolean
    Checks if is aggregate.
    static boolean
    Checks if is array or list type.
    boolean
    Checks if is cas consumer descriptor.
    boolean
    Checks if is cas initializer descriptor.
    boolean
    Checks if is collection reader descriptor.
    boolean
    Checks if is ext res and bindings descriptor.
    boolean
    Checks if is flow controller descriptor.
    static boolean
    Checks if is FS array or list type.
    static boolean
    Checks if is indexable range.
    boolean
    Checks if is index descriptor.
    protected boolean
    isJmsDescriptor(org.apache.uima.util.XMLizable inputDescription)
    Checks if is jms descriptor.
    boolean
    Checks if is local processing descriptor.
    boolean
    Checks if is parm group.
    boolean
    Checks if is primitive.
    boolean
    Checks if is type priority descriptor.
    boolean
    Checks if is type system descriptor.
    protected boolean
    Checks if is valid ae.
    protected boolean
    Update the model while checking for validity If invalid - ask if want to continue or not.
    protected void
    markRestOfPageStale(org.eclipse.ui.forms.IManagedForm mform, AbstractSection section)
    Mark rest of page stale.
    void
    markStale(org.eclipse.ui.forms.IFormPart section)
    Mark stale.
    protected void
    markStaleIfDifferent(org.eclipse.ui.forms.IFormPart thisOne, org.eclipse.ui.forms.IFormPart otherOne)
    Mark stale if different.
    static void
    maybeSetSelection(org.eclipse.swt.widgets.Tree tt, int itemIndex)
     
    static String
    Maybe shorten file name.
    protected String
    Multi line fix.
    org.eclipse.swt.widgets.Composite
    new2ColumnComposite(org.eclipse.swt.widgets.Composite parent)
    New 2 column composite.
    org.eclipse.swt.widgets.Composite
    new3ColumnComposite(org.eclipse.swt.widgets.Composite parent)
    New 3 column composite.
    org.eclipse.swt.widgets.Composite
    new4ColumnComposite(org.eclipse.swt.widgets.Composite parent)
    New 4 column composite.
    org.eclipse.swt.widgets.Composite
    newButtonContainer(org.eclipse.swt.widgets.Composite parent)
    New button container.
    org.eclipse.swt.widgets.Composite
    newButtonContainer(org.eclipse.swt.widgets.Composite parent, int style, int widthMin)
    New button container.
    protected org.eclipse.swt.custom.CCombo
    newCComboWithTip(org.eclipse.swt.widgets.Composite parent, String tip)
    New C combo with tip.
    org.eclipse.swt.widgets.Button
    newCheckBox(org.eclipse.swt.widgets.Composite parent, String label, String tip)
    New check box.
    org.eclipse.swt.widgets.Composite
    newComposite(org.eclipse.swt.widgets.Composite parent)
    New composite.
    protected org.eclipse.swt.widgets.Text
    newDescriptionTextBox(org.eclipse.swt.widgets.Composite parent, String tip)
    New description text box.
    protected org.eclipse.swt.custom.CCombo
    newLabeledCComboWithTip(org.eclipse.swt.widgets.Composite parent, String labelKey, String tip)
    New labeled C combo with tip.
    protected org.eclipse.swt.widgets.Text
    newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String label, String tip)
    New labeled text field.
    protected org.eclipse.swt.widgets.Text
    newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String labelKey, String textToolTip, int style)
    New labeled text field.
    org.eclipse.swt.widgets.Label
    newLabelWithData(org.eclipse.swt.widgets.Composite parent, String text)
    New label with data.
    org.eclipse.swt.widgets.Label
    newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip)
    New label with tip.
    org.eclipse.swt.widgets.Label
    newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip, int style)
    New label with tip.
    org.eclipse.swt.widgets.Composite
    newNcolumnComposite(org.eclipse.swt.widgets.Composite parent, int cols)
    New ncolumn composite.
    org.eclipse.swt.widgets.Button
    newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip)
    add pushbutton to container, set enabled, add listener for it.
    org.eclipse.swt.widgets.Button
    newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled)
    Add a push button to a container, add a listener for it too.
    org.eclipse.swt.widgets.Button
    newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled, int style)
    New push button.
    org.eclipse.swt.widgets.Button
    newRadioButton(org.eclipse.swt.widgets.Composite parent, String label, String toolTip, boolean selected)
    New radio button.
    protected org.eclipse.swt.widgets.Table
    newTable(org.eclipse.swt.widgets.Composite parent)
    New table.
    protected org.eclipse.swt.widgets.Table
    newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight)
    New table.
    protected org.eclipse.swt.widgets.Table
    newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight, int flags)
    New table.
    protected org.eclipse.swt.widgets.TableColumn
    newTableColumn(org.eclipse.swt.widgets.Table table)
    New table column.
    protected org.eclipse.swt.widgets.TableColumn
    newTableColumn(org.eclipse.swt.widgets.Table container, int width)
    New table column.
    protected org.eclipse.swt.widgets.TableColumn
    newTableColumn(org.eclipse.swt.widgets.Table container, int width, int alignment, String header)
    New table column.
    protected org.eclipse.swt.widgets.TableColumn
    newTableColumn(org.eclipse.swt.widgets.Table container, String header)
    New table column.
    protected org.eclipse.swt.widgets.Text
    newTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, int style, String tip)
    New text with tip.
    protected org.eclipse.swt.widgets.Text
    newTextWithTip(org.eclipse.swt.widgets.Composite parent, String initialTxt, String tip)
    New text with tip.
    protected org.eclipse.swt.widgets.Tree
    newTree(org.eclipse.swt.widgets.Composite parent)
    New tree.
    protected org.eclipse.swt.widgets.Tree
    newTree(org.eclipse.swt.widgets.Composite parent, int style)
    New tree.
    protected org.eclipse.swt.widgets.TreeColumn
    newTreeColumn(org.eclipse.swt.widgets.Tree p_tree)
    New tree column.
    protected org.eclipse.swt.widgets.TreeColumn
    newTreeColumn(org.eclipse.swt.widgets.Tree container, int width)
    New tree column.
    protected org.eclipse.swt.widgets.TreeColumn
    newTreeColumn(org.eclipse.swt.widgets.Tree container, int width, int alignment, String header)
    New tree column.
    protected org.eclipse.swt.widgets.TreeColumn
    newTreeColumn(org.eclipse.swt.widgets.Tree container, String header)
    New tree column.
    org.eclipse.swt.widgets.Label
    newUnUpdatableTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip)
    New un updatable text with tip.
    void
    packTable(org.eclipse.swt.widgets.Table table)
    Pack table.
    void
    packTree(org.eclipse.swt.widgets.Tree p_tree)
    Pack tree.
    static org.apache.uima.util.XMLizable
    parseDescriptor(org.apache.uima.util.XMLInputSource input)
    Parses the descriptor.
    static org.apache.uima.util.XMLizable
    parseDescriptor(org.apache.uima.util.XMLInputSource input, boolean preserveComments)
    Parses the descriptor.
    protected static String
    Parses the to fit in tool tips.
    protected String
    Produce Unique key for a newly added descriptor file.
    protected org.apache.uima.util.XMLizable
    readImport(org.apache.uima.resource.metadata.Import imp, String fileName, boolean isImportByName)
    Read import.
    protected void
    removeChildren(org.eclipse.swt.widgets.TreeItem item)
    Removes the children.
    protected void
    requestPopUpOverImport(org.apache.uima.resource.metadata.Import importItem, org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event event)
    Request pop up over import.
    protected void
    revertMsg(String msgTitle, String msgTxt, String exceptionMessage)
    Revert msg.
    static boolean
    revertOrContinue(String msg, String msgDetails)
    Revert or continue.
    protected void
    revertTypeSystem(org.apache.uima.resource.metadata.TypeSystemDescription tsd)
    Revert type system.
    protected static void
    setButtonSelection(org.eclipse.swt.widgets.Button c, boolean selected)
    Sets the button selection.
    protected void
    Sets the file dirty.
    void
    setFlowControllerDeclaration(org.apache.uima.analysis_engine.metadata.FlowControllerDeclaration fcd)
    Sets the flow controller declaration.
    void
    setMargins(org.eclipse.swt.widgets.Composite composite, int height, int width)
    Sets the margins.
    static void
    setSelectionOneUp(org.eclipse.swt.widgets.Tree tt, org.eclipse.swt.widgets.TreeItem item)
    Set the selection one above this item, unless it's the top one already.
    static void
    setToolTipText(org.eclipse.swt.widgets.Control w, String text)
    Sets the tool tip text.
    protected PrintWriter
    Setup to print file.
    protected String
    setValueChanged(String newValue, String oldValue)
    Sets the value changed.
    protected boolean
    setValueChangedBoolean(boolean newValue, boolean oldValue)
    Sets the value changed boolean.
    protected Boolean
    Sets the value changed capital boolean.
    protected int
    setValueChangedInt(int newValue, int oldValue)
    Sets the value changed int.
    protected org.apache.uima.resource.metadata.FsIndexKeyDescription[]
    setValueChangedKeys(org.apache.uima.resource.metadata.FsIndexKeyDescription[] newKeys, org.apache.uima.resource.metadata.FsIndexKeyDescription[] oldKeys)
    Sets the value changed keys.
    static void
    Sets the vns host and port.
    static void
    setVnsHostAndPort(String vnsHost, String vnsPort)
    Sets the vns host and port.
    protected void
    Show exception reading imported descriptor.
    static void
    spacer(org.eclipse.swt.widgets.Composite container)
    Spacer.
    *********************************************************************************************** Augment arrays (make new array, add one item to it at end *********************************************************.
    String array remove.
    static void
    swapIndexKeys(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection)
    Swap index keys.
    static void
    swapTableItems(org.eclipse.swt.widgets.TableItem itemBelow, int newSelection)
    Swap table items.
    static void
    swapTreeItems(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection)
    Swap tree items.
    org.apache.uima.analysis_engine.TypeOrFeature[]
    typeOrFeatureArrayAdd(org.apache.uima.analysis_engine.TypeOrFeature[] a, org.apache.uima.analysis_engine.TypeOrFeature item)
    Type or feature array add.
    org.apache.uima.analysis_engine.TypeOrFeature[]
    typeOrFeatureArrayRemove(org.apache.uima.analysis_engine.TypeOrFeature[] a, String s)
    Type or feature array remove.
    org.apache.uima.analysis_engine.TypeOrFeature[]
    typeOrFeatureArrayRemove(org.apache.uima.analysis_engine.TypeOrFeature[] a, org.apache.uima.analysis_engine.TypeOrFeature item)
    Type or feature array remove.

    Methods inherited from class org.eclipse.ui.forms.SectionPart

    expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocus

    Methods inherited from class org.eclipse.ui.forms.AbstractFormPart

    commit, dispose, getManagedForm, isDirty, isStale, markDirty, markStale, refresh, setFormInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.swt.widgets.Listener

    handleEvent
  • Field Details

    • toolkit

      protected org.eclipse.ui.forms.widgets.FormToolkit toolkit
      The toolkit.
    • editor

      public MultiPageEditor editor
      The editor.
    • IMPORTABLE_PART_CONTEXT

      public static final String IMPORTABLE_PART_CONTEXT
      The Constant IMPORTABLE_PART_CONTEXT.
      See Also:
    • PLUGIN_ID

      public static final String PLUGIN_ID
      The Constant PLUGIN_ID.
      See Also:
    • SELECTED

      public static final boolean SELECTED
      The Constant SELECTED.
      See Also:
    • NOT_SELECTED

      public static final boolean NOT_SELECTED
      The Constant NOT_SELECTED.
      See Also:
    • ENABLED

      public static final boolean ENABLED
      The Constant ENABLED.
      See Also:
    • EQUAL_WIDTH

      public static final boolean EQUAL_WIDTH
      The Constant EQUAL_WIDTH.
      See Also:
    • treeItemArray0

      public static final org.eclipse.swt.widgets.TreeItem[] treeItemArray0
      The Constant treeItemArray0.
    • configurationGroup0

      public static final org.apache.uima.resource.metadata.ConfigurationGroup[] configurationGroup0
      The Constant configurationGroup0.
    • configurationParameter0

      public static final org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameter0
      The Constant configurationParameter0.
    • capabilityArray0

      public static final org.apache.uima.resource.metadata.Capability[] capabilityArray0
      The Constant capabilityArray0.
    • featureDescriptionArray0

      public static final org.apache.uima.resource.metadata.FeatureDescription[] featureDescriptionArray0
      The Constant featureDescriptionArray0.
    • sofaMapping0

      public static final org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMapping0
      The Constant sofaMapping0.
    • fsIndexDescription0

      public static final org.apache.uima.resource.metadata.FsIndexDescription[] fsIndexDescription0
      The Constant fsIndexDescription0.
    • externalResourceBinding0

      public static final org.apache.uima.resource.metadata.ExternalResourceBinding[] externalResourceBinding0
      The Constant externalResourceBinding0.
    • externalResourceDescription0

      public static final org.apache.uima.resource.ExternalResourceDescription[] externalResourceDescription0
      The Constant externalResourceDescription0.
    • typeDescription0

      public static final org.apache.uima.resource.metadata.TypeDescription[] typeDescription0
      The Constant typeDescription0.
    • typePriorityList0

      public static final org.apache.uima.resource.metadata.TypePriorityList[] typePriorityList0
      The Constant typePriorityList0.
    • initialFormWidth

      protected int initialFormWidth
      The initial form width.
    • VERTICAL_BUTTONS

      public static final int VERTICAL_BUTTONS
      The Constant VERTICAL_BUTTONS.
      See Also:
    • HORIZONTAL_BUTTONS

      public static final int HORIZONTAL_BUTTONS
      The Constant HORIZONTAL_BUTTONS.
      See Also:
    • NO_MIN_HEIGHT

      public static final int NO_MIN_HEIGHT
      The Constant NO_MIN_HEIGHT.
      See Also:
    • NOTHING_SELECTED

      public static final int NOTHING_SELECTED
      The Constant NOTHING_SELECTED.
      See Also:
    • LINES_VISIBLE

      public static final int LINES_VISIBLE
      The Constant LINES_VISIBLE.
      See Also:
    • HEADER_VISIBLE

      public static final int HEADER_VISIBLE
      The Constant HEADER_VISIBLE.
      See Also:
    • WIDTH_NOT_SPECIFIED

      public static final int WIDTH_NOT_SPECIFIED
      The Constant WIDTH_NOT_SPECIFIED.
      See Also:
    • stringArray0

      public static final String[] stringArray0
      The Constant stringArray0.
    • configurationParameterArray0

      public static final org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameterArray0
      The Constant configurationParameterArray0.
    • configurationGroupArray0

      public static final org.apache.uima.resource.metadata.ConfigurationGroup[] configurationGroupArray0
      The Constant configurationGroupArray0.
    • nameValuePairArray0

      public static final org.apache.uima.resource.metadata.NameValuePair[] nameValuePairArray0
      The Constant nameValuePairArray0.
    • valueChanged

      protected boolean valueChanged
      The value changed.
  • Constructor Details

    • AbstractSection

      public AbstractSection(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String headerText, String description)
      Instantiates a new abstract section.
      Parameters:
      aEditor - the a editor
      parent - the parent
      headerText - the header text
      description - the description
  • Method Details

    • getToolkit

      public org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
      Gets the toolkit.
      Returns:
      the toolkit
    • initialize

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

      public abstract void enable()
      Enable.
    • setFileDirty

      protected void setFileDirty()
      Sets the file dirty.
    • newComposite

      public org.eclipse.swt.widgets.Composite newComposite(org.eclipse.swt.widgets.Composite parent)
      New composite.
      Parameters:
      parent - the parent
      Returns:
      the composite
    • new2ColumnComposite

      public org.eclipse.swt.widgets.Composite new2ColumnComposite(org.eclipse.swt.widgets.Composite parent)
      New 2 column composite.
      Parameters:
      parent - the parent
      Returns:
      the composite
    • new3ColumnComposite

      public org.eclipse.swt.widgets.Composite new3ColumnComposite(org.eclipse.swt.widgets.Composite parent)
      New 3 column composite.
      Parameters:
      parent - the parent
      Returns:
      the composite
    • new4ColumnComposite

      public org.eclipse.swt.widgets.Composite new4ColumnComposite(org.eclipse.swt.widgets.Composite parent)
      New 4 column composite.
      Parameters:
      parent - the parent
      Returns:
      the composite
    • newNcolumnComposite

      public org.eclipse.swt.widgets.Composite newNcolumnComposite(org.eclipse.swt.widgets.Composite parent, int cols)
      New ncolumn composite.
      Parameters:
      parent - the parent
      cols - the cols
      Returns:
      the composite
    • setMargins

      public void setMargins(org.eclipse.swt.widgets.Composite composite, int height, int width)
      Sets the margins.
      Parameters:
      composite - the composite
      height - the height
      width - the width
    • enableBorders

      public void enableBorders(org.eclipse.swt.widgets.Composite composite)
      Enable borders.
      Parameters:
      composite - the composite
    • newButtonContainer

      public org.eclipse.swt.widgets.Composite newButtonContainer(org.eclipse.swt.widgets.Composite parent)
      New button container.
      Parameters:
      parent - the parent
      Returns:
      the composite
    • newButtonContainer

      public org.eclipse.swt.widgets.Composite newButtonContainer(org.eclipse.swt.widgets.Composite parent, int style, int widthMin)
      New button container.
      Parameters:
      parent - the parent
      style - the style
      widthMin - the width min
      Returns:
      the composite
    • newLabeledTextField

      protected org.eclipse.swt.widgets.Text newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String label, String tip)
      New labeled text field.
      Parameters:
      parent - the parent
      label - the label
      tip - the tip
      Returns:
      the text
    • newLabeledTextField

      protected org.eclipse.swt.widgets.Text newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String labelKey, String textToolTip, int style)
      New labeled text field.
      Parameters:
      parent - the parent
      labelKey - the label key
      textToolTip - the text tool tip
      style - the style
      Returns:
      the text
    • newTextWithTip

      protected org.eclipse.swt.widgets.Text newTextWithTip(org.eclipse.swt.widgets.Composite parent, String initialTxt, String tip)
      New text with tip.
      Parameters:
      parent - the parent
      initialTxt - the initial txt
      tip - the tip
      Returns:
      the text
    • newTextWithTip

      protected org.eclipse.swt.widgets.Text newTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, int style, String tip)
      New text with tip.
      Parameters:
      parent - the parent
      text - the text
      style - the style
      tip - the tip
      Returns:
      the text
    • newLabelWithData

      public org.eclipse.swt.widgets.Label newLabelWithData(org.eclipse.swt.widgets.Composite parent, String text)
      New label with data.
      Parameters:
      parent - the parent
      text - the text
      Returns:
      the label
    • newLabelWithTip

      public org.eclipse.swt.widgets.Label newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip)
      New label with tip.
      Parameters:
      parent - the parent
      text - the text
      tip - the tip
      Returns:
      the label
    • newUnUpdatableTextWithTip

      public org.eclipse.swt.widgets.Label newUnUpdatableTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip)
      New un updatable text with tip.
      Parameters:
      parent - the parent
      text - the text
      tip - the tip
      Returns:
      the label
    • newLabelWithTip

      public org.eclipse.swt.widgets.Label newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip, int style)
      New label with tip.
      Parameters:
      parent - the parent
      text - the text
      tip - the tip
      style - the style
      Returns:
      the label
    • newLabeledCComboWithTip

      protected org.eclipse.swt.custom.CCombo newLabeledCComboWithTip(org.eclipse.swt.widgets.Composite parent, String labelKey, String tip)
      New labeled C combo with tip.
      Parameters:
      parent - the parent
      labelKey - the label key
      tip - the tip
      Returns:
      the c combo
    • newCComboWithTip

      protected org.eclipse.swt.custom.CCombo newCComboWithTip(org.eclipse.swt.widgets.Composite parent, String tip)
      New C combo with tip.
      Parameters:
      parent - the parent
      tip - the tip
      Returns:
      the c combo
    • newDescriptionTextBox

      protected org.eclipse.swt.widgets.Text newDescriptionTextBox(org.eclipse.swt.widgets.Composite parent, String tip)
      New description text box.
      Parameters:
      parent - the parent
      tip - the tip
      Returns:
      the text
    • newRadioButton

      public org.eclipse.swt.widgets.Button newRadioButton(org.eclipse.swt.widgets.Composite parent, String label, String toolTip, boolean selected)
      New radio button.
      Parameters:
      parent - the parent
      label - the label
      toolTip - the tool tip
      selected - the selected
      Returns:
      the button
    • newPushButton

      public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip)
      add pushbutton to container, set enabled, add listener for it.
      Parameters:
      parent - the parent
      label - the label
      tip - the tip
      Returns:
      the push button
    • newPushButton

      public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled)
      Add a push button to a container, add a listener for it too.
      Parameters:
      parent - the parent
      label - the label
      tip - the tip
      enabled - the enabled
      Returns:
      the pushbutton
    • newPushButton

      public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled, int style)
      New push button.
      Parameters:
      parent - the parent
      label - the label
      tip - the tip
      enabled - the enabled
      style - the style
      Returns:
      the button
    • newCheckBox

      public org.eclipse.swt.widgets.Button newCheckBox(org.eclipse.swt.widgets.Composite parent, String label, String tip)
      New check box.
      Parameters:
      parent - the parent
      label - the label
      tip - the tip
      Returns:
      the button
    • spacer

      public static void spacer(org.eclipse.swt.widgets.Composite container)
      Spacer.
      Parameters:
      container - the container
    • newTable

      protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent)
      New table.
      Parameters:
      parent - the parent
      Returns:
      the table
    • newTable

      protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight)
      New table.
      Parameters:
      parent - the parent
      style - the style
      minHeight - the min height
      Returns:
      the table
    • newTable

      protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight, int flags)
      New table.
      Parameters:
      parent - the parent
      style - the style
      minHeight - the min height
      flags - the flags
      Returns:
      the table
    • newTree

      protected org.eclipse.swt.widgets.Tree newTree(org.eclipse.swt.widgets.Composite parent)
      New tree.
      Parameters:
      parent - the parent
      Returns:
      the tree
    • getPreviousSelection

      protected org.eclipse.swt.widgets.TreeItem getPreviousSelection(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem nextItem)
      Gets the previous selection.
      Parameters:
      items - the items
      nextItem - the next item
      Returns:
      the previous selection
    • getItemIndex

      protected int getItemIndex(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem item)
      Gets the item index.
      Parameters:
      items - the items
      item - the item
      Returns:
      the item index
    • newTree

      protected org.eclipse.swt.widgets.Tree newTree(org.eclipse.swt.widgets.Composite parent, int style)
      New tree.
      Parameters:
      parent - the parent
      style - SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION
      Returns:
      the TableTree
    • packTable

      public void packTable(org.eclipse.swt.widgets.Table table)
      Pack table.
      Parameters:
      table - the table
    • packTree

      public void packTree(org.eclipse.swt.widgets.Tree p_tree)
      Pack tree.
      Parameters:
      p_tree - the tree
    • getIndex

      public static int getIndex(org.eclipse.swt.widgets.TableItem item)
      Gets the index.
      Parameters:
      item - the item
      Returns:
      the index
    • getIndex

      public static int getIndex(org.eclipse.swt.widgets.TreeItem item)
      Gets the index.
      Parameters:
      item - the item
      Returns:
      the index
    • removeChildren

      protected void removeChildren(org.eclipse.swt.widgets.TreeItem item)
      Removes the children.
      Parameters:
      item - the item
    • newTableColumn

      protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table table)
      New table column.
      Parameters:
      table - the table
      Returns:
      the table column
    • newTreeColumn

      protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree p_tree)
      New tree column.
      Parameters:
      p_tree - the tree
      Returns:
      the tree column
    • newTableColumn

      protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, String header)
      New table column.
      Parameters:
      container - the container
      header - the header
      Returns:
      the table column
    • newTreeColumn

      protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, String header)
      New tree column.
      Parameters:
      container - the container
      header - the header
      Returns:
      the tree column
    • newTableColumn

      protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, int width, int alignment, String header)
      New table column.
      Parameters:
      container - the container
      width - the width
      alignment - the alignment
      header - the header
      Returns:
      the table column
    • newTreeColumn

      protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, int width, int alignment, String header)
      New tree column.
      Parameters:
      container - the container
      width - the width
      alignment - the alignment
      header - the header
      Returns:
      the tree column
    • newTableColumn

      protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, int width)
      New table column.
      Parameters:
      container - the container
      width - the width
      Returns:
      the table column
    • newTreeColumn

      protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, int width)
      New tree column.
      Parameters:
      container - the container
      width - the width
      Returns:
      the tree column
    • isPrimitive

      public boolean isPrimitive()
      Checks if is primitive.
      Returns:
      true, if is primitive
    • isAggregate

      public boolean isAggregate()
      Checks if is aggregate.
      Returns:
      true, if is aggregate
    • isAeDescriptor

      public boolean isAeDescriptor()
      Checks if is ae descriptor.
      Returns:
      true, if is ae descriptor
    • isTypeSystemDescriptor

      public boolean isTypeSystemDescriptor()
      Checks if is type system descriptor.
      Returns:
      true, if is type system descriptor
    • isIndexDescriptor

      public boolean isIndexDescriptor()
      Checks if is index descriptor.
      Returns:
      true, if is index descriptor
    • isTypePriorityDescriptor

      public boolean isTypePriorityDescriptor()
      Checks if is type priority descriptor.
      Returns:
      true, if is type priority descriptor
    • isExtResAndBindingsDescriptor

      public boolean isExtResAndBindingsDescriptor()
      Checks if is ext res and bindings descriptor.
      Returns:
      true, if is ext res and bindings descriptor
    • isCollectionReaderDescriptor

      public boolean isCollectionReaderDescriptor()
      Checks if is collection reader descriptor.
      Returns:
      true, if is collection reader descriptor
    • isCasInitializerDescriptor

      public boolean isCasInitializerDescriptor()
      Checks if is cas initializer descriptor.
      Returns:
      true, if is cas initializer descriptor
    • isCasConsumerDescriptor

      public boolean isCasConsumerDescriptor()
      Checks if is cas consumer descriptor.
      Returns:
      true, if is cas consumer descriptor
    • isFlowControllerDescriptor

      public boolean isFlowControllerDescriptor()
      Checks if is flow controller descriptor.
      Returns:
      true, if is flow controller descriptor
    • isLocalProcessingDescriptor

      public boolean isLocalProcessingDescriptor()
      Checks if is local processing descriptor.
      Returns:
      true, if is local processing descriptor
    • getAnalysisEngineMetaData

      public org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData getAnalysisEngineMetaData()
      Gets the analysis engine meta data.
      Returns:
      the analysis engine meta data
    • getFlowControllerDeclaration

      public org.apache.uima.analysis_engine.metadata.FlowControllerDeclaration getFlowControllerDeclaration()
      Gets the flow controller declaration.
      Returns:
      the flow controller declaration
    • setFlowControllerDeclaration

      public void setFlowControllerDeclaration(org.apache.uima.analysis_engine.metadata.FlowControllerDeclaration fcd)
      Sets the flow controller declaration.
      Parameters:
      fcd - the new flow controller declaration
    • getOperationalProperties

      public org.apache.uima.resource.metadata.OperationalProperties getOperationalProperties()
      Gets the operational properties.
      Returns:
      the operational properties
    • getSofaMappings

      public org.apache.uima.analysis_engine.metadata.SofaMapping[] getSofaMappings()
      Gets the sofa mappings.
      Returns:
      the sofa mappings
    • getSofaMappings

      public static org.apache.uima.analysis_engine.metadata.SofaMapping[] getSofaMappings(MultiPageEditor pEditor)
      Gets the sofa mappings.
      Parameters:
      pEditor - the editor
      Returns:
      the sofa mappings
    • getDelegateAnalysisEngineSpecifiersWithImports

      public Map getDelegateAnalysisEngineSpecifiersWithImports()
      Gets the delegate analysis engine specifiers with imports.
      Returns:
      the delegate analysis engine specifiers with imports
    • getCapabilities

      public org.apache.uima.resource.metadata.Capability[] getCapabilities()
      Gets the capabilities.
      Returns:
      the capabilities
    • getMergedTypeSystemDescription

      protected org.apache.uima.resource.metadata.TypeSystemDescription getMergedTypeSystemDescription()
      Gets the merged type system description.
      Returns:
      the merged type system description
    • getTypeSystemDescription

      protected org.apache.uima.resource.metadata.TypeSystemDescription getTypeSystemDescription()
      Gets the type system description.
      Returns:
      the type system description
    • getTypePriorities

      protected org.apache.uima.resource.metadata.TypePriorities getTypePriorities()
      Gets the type priorities.
      Returns:
      the type priorities
    • getAvailableTypeNames

      public String[] getAvailableTypeNames(Set excluded)
      Gets the available type names.
      Parameters:
      excluded - the excluded
      Returns:
      the available type names
    • isParmGroup

      public boolean isParmGroup()
      Checks if is parm group.
      Returns:
      true, if is parm group
    • getConfigurationParameterDeclarations

      public org.apache.uima.resource.metadata.ConfigurationParameterDeclarations getConfigurationParameterDeclarations()
      Gets the configuration parameter declarations.
      Returns:
      the configuration parameter declarations
    • getResourceManagerConfiguration

      public org.apache.uima.resource.metadata.ResourceManagerConfiguration getResourceManagerConfiguration()
      Gets the resource manager configuration.
      Returns:
      the resource manager configuration
    • getExternalResourceDependencies

      public org.apache.uima.resource.ExternalResourceDependency[] getExternalResourceDependencies()
      Gets the external resource dependencies.
      Returns:
      the external resource dependencies
    • getExternalResourceBindings

      public org.apache.uima.resource.metadata.ExternalResourceBinding[] getExternalResourceBindings()
      Gets the external resource bindings.
      Returns:
      the external resource bindings
    • getExternalResources

      public org.apache.uima.resource.ExternalResourceDescription[] getExternalResources()
      Gets the external resources.
      Returns:
      the external resources
    • addListenerForPastableWidget

      protected void addListenerForPastableWidget(org.eclipse.swt.widgets.Widget w)
      Adds the listener for pastable widget.
      Parameters:
      w - the w
    • setValueChanged

      protected String setValueChanged(String newValue, String oldValue)
      Sets the value changed.
      Parameters:
      newValue - the new value
      oldValue - the old value
      Returns:
      the string
    • setValueChangedInt

      protected int setValueChangedInt(int newValue, int oldValue)
      Sets the value changed int.
      Parameters:
      newValue - the new value
      oldValue - the old value
      Returns:
      the int
    • setValueChangedBoolean

      protected boolean setValueChangedBoolean(boolean newValue, boolean oldValue)
      Sets the value changed boolean.
      Parameters:
      newValue - the new value
      oldValue - the old value
      Returns:
      true, if successful
    • setValueChangedCapitalBoolean

      protected Boolean setValueChangedCapitalBoolean(Boolean newValue, Boolean oldValue)
      Sets the value changed capital boolean.
      Parameters:
      newValue - the new value
      oldValue - the old value
      Returns:
      the boolean
    • setValueChangedKeys

      protected org.apache.uima.resource.metadata.FsIndexKeyDescription[] setValueChangedKeys(org.apache.uima.resource.metadata.FsIndexKeyDescription[] newKeys, org.apache.uima.resource.metadata.FsIndexKeyDescription[] oldKeys)
      Sets the value changed keys.
      Parameters:
      newKeys - the new keys
      oldKeys - the old keys
      Returns:
      the fs index key description[]
    • isValidAe

      protected boolean isValidAe()
      Checks if is valid ae.
      Returns:
      true, if is valid ae
    • revertTypeSystem

      protected void revertTypeSystem(org.apache.uima.resource.metadata.TypeSystemDescription tsd)
      Revert type system.
      Parameters:
      tsd - the tsd
    • revertMsg

      protected void revertMsg(String msgTitle, String msgTxt, String exceptionMessage)
      Revert msg.
      Parameters:
      msgTitle - the msg title
      msgTxt - the msg txt
      exceptionMessage - the exception message
    • revertOrContinue

      public static boolean revertOrContinue(String msg, String msgDetails)
      Revert or continue.
      Parameters:
      msg - the msg
      msgDetails - the msg details
      Returns:
      true to revert, false to continue
    • markStale

      public void markStale(org.eclipse.ui.forms.IFormPart section)
      Mark stale.
      Parameters:
      section - the section
    • markRestOfPageStale

      protected void markRestOfPageStale(org.eclipse.ui.forms.IManagedForm mform, AbstractSection section)
      Mark rest of page stale.
      Parameters:
      mform - the mform
      section - the section
    • markStaleIfDifferent

      protected void markStaleIfDifferent(org.eclipse.ui.forms.IFormPart thisOne, org.eclipse.ui.forms.IFormPart otherOne)
      Mark stale if different.
      Parameters:
      thisOne - the this one
      otherOne - the other one
    • multiLineFix

      protected String multiLineFix(String s)
      Multi line fix.
      Parameters:
      s - the s
      Returns:
      the string
    • stringArrayAdd

      public String[] stringArrayAdd(String[] a, String s)
      *********************************************************************************************** Augment arrays (make new array, add one item to it at end *********************************************************.
      Parameters:
      a - the a
      s - the s
      Returns:
      the string[]
    • stringArrayRemove

      public String[] stringArrayRemove(String[] a, String s)
      String array remove.
      Parameters:
      a - the a
      s - the s
      Returns:
      the string[]
    • typeOrFeatureArrayAdd

      public org.apache.uima.analysis_engine.TypeOrFeature[] typeOrFeatureArrayAdd(org.apache.uima.analysis_engine.TypeOrFeature[] a, org.apache.uima.analysis_engine.TypeOrFeature item)
      Type or feature array add.
      Parameters:
      a - the a
      item - the item
      Returns:
      the type or feature[]
    • typeOrFeatureArrayRemove

      public org.apache.uima.analysis_engine.TypeOrFeature[] typeOrFeatureArrayRemove(org.apache.uima.analysis_engine.TypeOrFeature[] a, org.apache.uima.analysis_engine.TypeOrFeature item)
      Type or feature array remove.
      Parameters:
      a - the a
      item - the item
      Returns:
      the type or feature[]
    • typeOrFeatureArrayRemove

      public org.apache.uima.analysis_engine.TypeOrFeature[] typeOrFeatureArrayRemove(org.apache.uima.analysis_engine.TypeOrFeature[] a, String s)
      Type or feature array remove.
      Parameters:
      a - the a
      s - the s
      Returns:
      the type or feature[]
    • getTypeOrFeature

      public static org.apache.uima.analysis_engine.TypeOrFeature getTypeOrFeature(org.apache.uima.analysis_engine.TypeOrFeature[] a, String name)
      Gets the type or feature.
      Parameters:
      a - the a
      name - the name
      Returns:
      the type or feature
    • parseToFitInToolTips

      protected static String parseToFitInToolTips(String text)
      Parses the to fit in tool tips.
      Parameters:
      text - the text
      Returns:
      the string
    • formatName

      public String formatName(String name)
      Format name.
      Parameters:
      name - the name
      Returns:
      the string
    • getShortName

      public static String getShortName(String name)
      Gets the short name.
      Parameters:
      name - the name
      Returns:
      the short name
    • getShortFeatureName

      public static String getShortFeatureName(String name)
      Gets the short feature name.
      Parameters:
      name - the name
      Returns:
      the short feature name
    • getTypeFromFullFeatureName

      public static String getTypeFromFullFeatureName(String name)
      Gets the type from full feature name.
      Parameters:
      name - the name
      Returns:
      the type from full feature name
    • getNameSpace

      public static String getNameSpace(String name)
      Gets the name space.
      Parameters:
      name - the name
      Returns:
      the name space
    • getFeature

      public org.apache.uima.resource.metadata.FeatureDescription getFeature(org.apache.uima.resource.metadata.TypeDescription td, String featureName)
      gets a feature description for a type, including supertypes.
      Parameters:
      td - the td
      featureName - the feature name
      Returns:
      a feature description for a type, including supertypes
    • isIndexableRange

      public static boolean isIndexableRange(String rangeName)
      Checks if is indexable range.
      Parameters:
      rangeName - the range name
      Returns:
      true, if is indexable range
    • setToolTipText

      public static void setToolTipText(org.eclipse.swt.widgets.Control w, String text)
      Sets the tool tip text.
      Parameters:
      w - the w
      text - the text
    • maybeShortenFileName

      public static String maybeShortenFileName(String filePathName)
      Maybe shorten file name.
      Parameters:
      filePathName - the file path name
      Returns:
      the string
    • swapTreeItems

      public static void swapTreeItems(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection)
      Swap tree items.
      Parameters:
      itemBelow - the item below
      newSelection - the new selection
    • copyTreeItem

      public static void copyTreeItem(org.eclipse.swt.widgets.TreeItem target, org.eclipse.swt.widgets.TreeItem source)
      Copy table tree item.
      Parameters:
      target - the target
      source - the source
    • swapIndexKeys

      public static void swapIndexKeys(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection)
      Swap index keys.
      Parameters:
      itemBelow - the item below
      newSelection - the new selection
    • swapTableItems

      public static void swapTableItems(org.eclipse.swt.widgets.TableItem itemBelow, int newSelection)
      Swap table items.
      Parameters:
      itemBelow - the item below
      newSelection - the new selection
    • copyTableItem

      public static void copyTableItem(org.eclipse.swt.widgets.TableItem target, org.eclipse.swt.widgets.TableItem source)
      Copy table item.
      Parameters:
      target - the target
      source - the source
    • getFsIndexDescriptionFromTableTreeItem

      public static org.apache.uima.resource.metadata.FsIndexDescription getFsIndexDescriptionFromTableTreeItem(org.eclipse.swt.widgets.TreeItem item)
      Gets the fs index description from table tree item.
      Parameters:
      item - the item
      Returns:
      the fs index description from table tree item
    • getCapabilitySofaNames

      public String[][] getCapabilitySofaNames()
      Gets the capability sofa names.
      Returns:
      the capability sofa names
    • getCapabilities

      public static org.apache.uima.resource.metadata.Capability[] getCapabilities(org.apache.uima.resource.ResourceSpecifier rs)
      Gets the capabilities.
      Parameters:
      rs - the rs
      Returns:
      the capabilities
    • getCapabilitySofaNames

      protected static Set[] getCapabilitySofaNames(org.apache.uima.resource.ResourceCreationSpecifier rs, String componentKey)
      Gets the capability sofa names.
      Parameters:
      rs - the rs
      componentKey - the component key
      Returns:
      the capability sofa names
    • addCapabilitySet

      protected org.apache.uima.resource.metadata.Capability addCapabilitySet()
      Adds the capability set.
      Returns:
      the capability
    • getMetaDataFromDescription

      public org.apache.uima.resource.metadata.ResourceMetaData getMetaDataFromDescription(org.apache.uima.resource.ResourceSpecifier o)
      Get the metadata for a local or remote descriptor. If the descriptor is remote, but cannot be currently connected to, return null. Note that this make take some time to determine.
      Parameters:
      o - is the AnalysisEngineDescription or the URISpecifier for remotes.
      Returns:
      AnalysisEngineMetaData or null
    • setVnsHostAndPort

      public static void setVnsHostAndPort(String vnsHost, String vnsPort)
      Sets the vns host and port.
      Parameters:
      vnsHost - the vns host
      vnsPort - the vns port
    • setVnsHostAndPort

      public static void setVnsHostAndPort(Object descriptor)
      Sets the vns host and port.
      Parameters:
      descriptor - the new vns host and port
    • requestPopUpOverImport

      protected void requestPopUpOverImport(org.apache.uima.resource.metadata.Import importItem, org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event event)
      Request pop up over import.
      Parameters:
      importItem - the import item
      control - the control
      event - the event
    • isJmsDescriptor

      protected boolean isJmsDescriptor(org.apache.uima.util.XMLizable inputDescription)
      Checks if is jms descriptor.
      Parameters:
      inputDescription - the input description
      Returns:
      true, if is jms descriptor
    • convertNull

      public static String convertNull(String s)
      Convert null.
      Parameters:
      s - the s
      Returns:
      the string
    • createImport

      public org.apache.uima.resource.metadata.Import createImport(String fileName, boolean isByName)
      Creates the import.
      Parameters:
      fileName - the file name
      isByName - the is by name
      Returns:
      the import
    • createLocationImport

      public org.apache.uima.resource.metadata.Import createLocationImport(String location) throws MalformedURLException
      Creates the location import.
      Parameters:
      location - the location
      Returns:
      a location import
      Throws:
      MalformedURLException - -
    • createByNameImport

      public org.apache.uima.resource.metadata.Import createByNameImport(String fileName)
      Creates the by name import.
      Parameters:
      fileName - the file name
      Returns:
      the import
    • isFSArrayOrListType

      public static boolean isFSArrayOrListType(String type)
      Checks if is FS array or list type.
      Parameters:
      type - the type
      Returns:
      true, if is FS array or list type
    • isArrayOrListType

      public static boolean isArrayOrListType(String type)
      Checks if is array or list type.
      Parameters:
      type - the type
      Returns:
      true, if is array or list type
    • produceUniqueComponentKey

      protected String produceUniqueComponentKey(String fileName)
      Produce Unique key for a newly added descriptor file.
      Parameters:
      fileName - the file name
      Returns:
      Unique key for a newly added descriptor file
    • parseDescriptor

      public static org.apache.uima.util.XMLizable parseDescriptor(org.apache.uima.util.XMLInputSource input) throws org.apache.uima.util.InvalidXMLException
      Parses the descriptor.
      Parameters:
      input - the input
      Returns:
      the XM lizable
      Throws:
      org.apache.uima.util.InvalidXMLException - the invalid XML exception
    • parseDescriptor

      public static org.apache.uima.util.XMLizable parseDescriptor(org.apache.uima.util.XMLInputSource input, boolean preserveComments) throws org.apache.uima.util.InvalidXMLException
      Parses the descriptor.
      Parameters:
      input - the input
      preserveComments - the preserve comments
      Returns:
      the XM lizable
      Throws:
      org.apache.uima.util.InvalidXMLException - the invalid XML exception
    • showExceptionReadingImportedDescriptor

      protected void showExceptionReadingImportedDescriptor(Exception e)
      Show exception reading imported descriptor.
      Parameters:
      e - the e
    • isValidAggregateChange

      protected boolean isValidAggregateChange()
      Update the model while checking for validity If invalid - ask if want to continue or not.
      Returns:
      validity state
    • finishAggregateChangeAction

      protected void finishAggregateChangeAction()
      Finish aggregate change action.
    • readImport

      protected org.apache.uima.util.XMLizable readImport(org.apache.uima.resource.metadata.Import imp, String fileName, boolean isImportByName)
      Read import.
      Parameters:
      imp - the imp
      fileName - the file name
      isImportByName - the is import by name
      Returns:
      the XM lizable
    • enableCtrl

      protected static void enableCtrl(org.eclipse.swt.widgets.Control c, boolean enabled)
      Enable ctrl.
      Parameters:
      c - the c
      enabled - the enabled
    • setButtonSelection

      protected static void setButtonSelection(org.eclipse.swt.widgets.Button c, boolean selected)
      Sets the button selection.
      Parameters:
      c - the c
      selected - the selected
    • getDescriptionForDescriptor

      protected String getDescriptionForDescriptor(String fileRef, org.apache.uima.resource.ResourceSpecifier rs)
      Gets the description for descriptor.
      Parameters:
      fileRef - the file ref
      rs - the rs
      Returns:
      the description for descriptor
    • setupToPrintFile

      protected PrintWriter setupToPrintFile(String filePath)
      Setup to print file.
      Parameters:
      filePath - the file path
      Returns:
      the prints the writer
    • getFsIndexCollection

      protected org.apache.uima.resource.metadata.FsIndexCollection getFsIndexCollection()
      Gets the fs index collection.
      Returns:
      the fs index collection
    • handleDefaultIndexKind

      public static String handleDefaultIndexKind(String indexKind)
      Handle default index kind.
      Parameters:
      indexKind - the index kind
      Returns:
      the string
    • setSelectionOneUp

      public static void setSelectionOneUp(org.eclipse.swt.widgets.Tree tt, org.eclipse.swt.widgets.TreeItem item)
      Set the selection one above this item, unless it's the top one already. Used when removing the item.
      Parameters:
      tt - tree
      item - context item
    • maybeSetSelection

      public static void maybeSetSelection(org.eclipse.swt.widgets.Tree tt, int itemIndex)