Class AbstractImportablePartSection

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

public abstract class AbstractImportablePartSection extends AbstractSection
The Class AbstractImportablePartSection.
  • Constructor Details

    • AbstractImportablePartSection

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

    • isLocalItem

      protected boolean isLocalItem(org.eclipse.swt.widgets.TreeItem item)
      Checks if is local item.
      Parameters:
      item - the item
      Returns:
      true, if is local item
    • getFeatureFromTypeDescription

      public FeatureDescription getFeatureFromTypeDescription(String name, TypeDescription td)
      returns null if no feature by this name.
      Parameters:
      name - the name
      td - the td
      Returns:
      the feature from type description
    • getAllowedValue

      public AllowedValue getAllowedValue(String value, TypeDescription td)
      Gets the allowed value.
      Parameters:
      value - the value
      td - the td
      Returns:
      the allowed value
    • getLocalTypeDefinition

      protected TypeDescription getLocalTypeDefinition(TypeDescription td)
      Gets the local type definition.
      Parameters:
      td - the td
      Returns:
      the local type definition
    • getLocalFeatureDefinition

      protected FeatureDescription getLocalFeatureDefinition(TypeDescription td, FeatureDescription fd)
      Gets the local feature definition.
      Parameters:
      td - the td
      fd - the fd
      Returns:
      the local feature definition
    • getLocalFeatureDefinition

      protected FeatureDescription getLocalFeatureDefinition(TypeDescription td, String featureName)
      Gets the local feature definition.
      Parameters:
      td - the td
      featureName - the feature name
      Returns:
      the local feature definition
    • getLocalAllowedValue

      protected AllowedValue getLocalAllowedValue(TypeDescription td, AllowedValue unchangedAv)
      Gets the local allowed value.
      Parameters:
      td - the td
      unchangedAv - the unchanged av
      Returns:
      the local allowed value
    • getBuiltInTypeDescription

      public TypeDescription getBuiltInTypeDescription(TypeDescription td)
      Gets the built in type description.
      Parameters:
      td - the td
      Returns:
      the built in type description
    • isLocalType

      protected boolean isLocalType(TypeDescription td)
      Checks if is local type.
      Parameters:
      td - the td
      Returns:
      true, if is local type
    • isLocalType

      protected boolean isLocalType(String typeName)
      Checks if is local type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is local type
    • isLocalFeature

      protected boolean isLocalFeature(String featureName, TypeDescription td)
      Checks if is local feature.
      Parameters:
      featureName - the feature name
      td - the td
      Returns:
      true, if is local feature
    • isLocalAllowedValue

      protected boolean isLocalAllowedValue(String avString, TypeDescription td)
      Checks if is local allowed value.
      Parameters:
      avString - the av string
      td - the td
      Returns:
      true, if is local allowed value
    • isImportedType

      public boolean isImportedType(String typeName)
      Checks if is imported type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is imported type
    • isImportedType

      protected boolean isImportedType(TypeDescription td)
      Checks if is imported type.
      Parameters:
      td - the td
      Returns:
      true, if is imported type
    • isImportedFeature

      protected boolean isImportedFeature(String name, TypeDescription td)
      Checks if is imported feature.
      Parameters:
      name - the name
      td - the td
      Returns:
      true, if is imported feature
    • isImportedAllowedValue

      protected boolean isImportedAllowedValue(TypeDescription td, AllowedValue av)
      Checks if is imported allowed value.
      Parameters:
      td - the td
      av - the av
      Returns:
      true, if is imported allowed value
    • isBuiltInType

      protected boolean isBuiltInType(TypeDescription td)
      Checks if is built in type.
      Parameters:
      td - the td
      Returns:
      true, if is built in type
    • isBuiltInType

      protected boolean isBuiltInType(String typeName)
      Checks if is built in type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is built in type
    • isBuiltInFeature

      protected boolean isBuiltInFeature(String name, TypeDescription td)
      Checks if is built in feature.
      Parameters:
      name - the name
      td - the td
      Returns:
      true, if is built in feature