Class CapabilitySection

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.CapabilitySection
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart

public class CapabilitySection extends AbstractSection
The Class CapabilitySection.
  • Field Details

  • Constructor Details

    • CapabilitySection

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

    • initialize

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

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

      public String getTypeNameFromFullFeatureName(String name)
      Gets the type name from full feature name.
      Parameters:
      name - the name
      Returns:
      the type name from full feature name
    • handleEvent

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

      public static boolean isInput(String fullFeatureName, Capability c)
      Checks if is input.
      Parameters:
      fullFeatureName - the full feature name
      c - the c
      Returns:
      true, if is input
    • isOutput

      public static boolean isOutput(String fullFeatureName, Capability c)
      Checks if is output.
      Parameters:
      fullFeatureName - the full feature name
      c - the c
      Returns:
      true, if is output
    • getCapabilityFromTreeItem

      public Capability getCapabilityFromTreeItem(org.eclipse.swt.widgets.TreeItem item)
      Gets the capability from table tree item.
      Parameters:
      item - the item
      Returns:
      the capability from table tree item
    • getFullyQualifiedName

      public String getFullyQualifiedName(org.eclipse.swt.widgets.TreeItem item)
      Gets the fully qualified name.
      Parameters:
      item - the item
      Returns:
      the fully qualified name
    • getFullyQualifiedName

      public String getFullyQualifiedName(String namespace, String name)
      Gets the fully qualified name.
      Parameters:
      namespace - the namespace
      name - the name
      Returns:
      the fully qualified name
    • enable

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