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 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 ConfigurationGroup[] configurationGroup0
      The Constant configurationGroup0.
    • configurationParameter0

      public static final ConfigurationParameter[] configurationParameter0
      The Constant configurationParameter0.
    • capabilityArray0

      public static final Capability[] capabilityArray0
      The Constant capabilityArray0.
    • featureDescriptionArray0

      public static final FeatureDescription[] featureDescriptionArray0
      The Constant featureDescriptionArray0.
    • sofaMapping0

      public static final SofaMapping[] sofaMapping0
      The Constant sofaMapping0.
    • fsIndexDescription0

      public static final FsIndexDescription[] fsIndexDescription0
      The Constant fsIndexDescription0.
    • externalResourceBinding0

      public static final ExternalResourceBinding[] externalResourceBinding0
      The Constant externalResourceBinding0.
    • externalResourceDescription0

      public static final ExternalResourceDescription[] externalResourceDescription0
      The Constant externalResourceDescription0.
    • typeDescription0

      public static final TypeDescription[] typeDescription0
      The Constant typeDescription0.
    • typePriorityList0

      public static final 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 ConfigurationParameter[] configurationParameterArray0
      The Constant configurationParameterArray0.
    • configurationGroupArray0

      public static final ConfigurationGroup[] configurationGroupArray0
      The Constant configurationGroupArray0.
    • nameValuePairArray0

      public static final 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 AnalysisEngineMetaData getAnalysisEngineMetaData()
      Gets the analysis engine meta data.
      Returns:
      the analysis engine meta data
    • getFlowControllerDeclaration

      public FlowControllerDeclaration getFlowControllerDeclaration()
      Gets the flow controller declaration.
      Returns:
      the flow controller declaration
    • setFlowControllerDeclaration

      public void setFlowControllerDeclaration(FlowControllerDeclaration fcd)
      Sets the flow controller declaration.
      Parameters:
      fcd - the new flow controller declaration
    • getOperationalProperties

      public OperationalProperties getOperationalProperties()
      Gets the operational properties.
      Returns:
      the operational properties
    • getSofaMappings

      public SofaMapping[] getSofaMappings()
      Gets the sofa mappings.
      Returns:
      the sofa mappings
    • getSofaMappings

      public static 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 Capability[] getCapabilities()
      Gets the capabilities.
      Returns:
      the capabilities
    • getMergedTypeSystemDescription

      protected TypeSystemDescription getMergedTypeSystemDescription()
      Gets the merged type system description.
      Returns:
      the merged type system description
    • getTypeSystemDescription

      protected TypeSystemDescription getTypeSystemDescription()
      Gets the type system description.
      Returns:
      the type system description
    • getTypePriorities

      protected 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 ConfigurationParameterDeclarations getConfigurationParameterDeclarations()
      Gets the configuration parameter declarations.
      Returns:
      the configuration parameter declarations
    • getResourceManagerConfiguration

      public ResourceManagerConfiguration getResourceManagerConfiguration()
      Gets the resource manager configuration.
      Returns:
      the resource manager configuration
    • getExternalResourceDependencies

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

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

      public 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 FsIndexKeyDescription[] setValueChangedKeys(FsIndexKeyDescription[] newKeys, 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(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 TypeOrFeature[] typeOrFeatureArrayAdd(TypeOrFeature[] a, TypeOrFeature item)
      Type or feature array add.
      Parameters:
      a - the a
      item - the item
      Returns:
      the type or feature[]
    • typeOrFeatureArrayRemove

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

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

      public static TypeOrFeature getTypeOrFeature(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 FeatureDescription getFeature(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 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 Capability[] getCapabilities(ResourceSpecifier rs)
      Gets the capabilities.
      Parameters:
      rs - the rs
      Returns:
      the capabilities
    • getCapabilitySofaNames

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

      protected Capability addCapabilitySet()
      Adds the capability set.
      Returns:
      the capability
    • getMetaDataFromDescription

      public ResourceMetaData getMetaDataFromDescription(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(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(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 Import createImport(String fileName, boolean isByName)
      Creates the import.
      Parameters:
      fileName - the file name
      isByName - the is by name
      Returns:
      the import
    • createLocationImport

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

      public 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 XMLizable parseDescriptor(XMLInputSource input) throws InvalidXMLException
      Parses the descriptor.
      Parameters:
      input - the input
      Returns:
      the XM lizable
      Throws:
      InvalidXMLException - the invalid XML exception
    • parseDescriptor

      public static XMLizable parseDescriptor(XMLInputSource input, boolean preserveComments) throws InvalidXMLException
      Parses the descriptor.
      Parameters:
      input - the input
      preserveComments - the preserve comments
      Returns:
      the XM lizable
      Throws:
      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 XMLizable readImport(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, 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 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)