Class ParameterSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart

public class ParameterSection extends AbstractSectionParm
The Class ParameterSection.
  • Field Details

    • NEW_OVERRIDE

      public static final int NEW_OVERRIDE
      The Constant NEW_OVERRIDE.
      See Also:
    • REMOVE_FROM_GUI

      public static final boolean REMOVE_FROM_GUI
      The Constant REMOVE_FROM_GUI.
      See Also:
    • GIVE_WARNING_MESSAGE

      public static final boolean GIVE_WARNING_MESSAGE
      The Constant GIVE_WARNING_MESSAGE.
      See Also:
  • Constructor Details

    • ParameterSection

      public ParameterSection(MultiPageEditor editor, org.eclipse.swt.widgets.Composite parent)
      Creates a section to show a list of all parameters.
      Parameters:
      editor - backpointer to the main multipage editor
      parent - the Composite where this section lives
  • 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
    • handleEvent

      public void handleEvent(org.eclipse.swt.widgets.Event event)
      Specified by:
      handleEvent in interface org.eclipse.swt.widgets.Listener
      Specified by:
      handleEvent in class AbstractSectionParm
    • addParm

      public void addParm(String name, ConfigurationParameter modelParm, ConfigGroup group, String override)
      Adds the parm.
      Parameters:
      name - the name
      modelParm - the model parm
      group - the group
      override - the override
    • addGroup

      public ConfigGroup addGroup(ConfigGroup group)
      Called to add group to aggregate parm decl based on delegate group.
      Parameters:
      group - the delegate group needing to be added to the aggregate
      Returns:
      the config group
    • addOverride

      public void addOverride(ConfigurationParameter parmInGroup, String override)
      Called from ParameterDelegatesSection to add an override.
      Parameters:
      parmInGroup - the parm in group
      override - the override
    • fillOverrides

      protected void fillOverrides(org.eclipse.swt.widgets.TreeItem parent, ConfigurationParameter modelCP)
      Called by addNewConfigurationParameter, and fill (via refresh) to add overrides to the tree list.
      Overrides:
      fillOverrides in class AbstractSectionParm
      Parameters:
      parent - the parent
      modelCP - the model CP
    • parameterNameAlreadyDefinedNoMsg

      public static boolean parameterNameAlreadyDefinedNoMsg(String name, ConfigurationParameterDeclarations pCpd)
      Parameter name already defined no msg.
      Parameters:
      name - the name
      pCpd - the cpd
      Returns:
      true, if successful
    • parameterNameAlreadyDefinedNoMsg

      public boolean parameterNameAlreadyDefinedNoMsg(String name, ConfigGroup cgset)
      Check if safe to add a parameter to a group-set. If in the no-name set check just it. If in the COMMON set check it and all of the named group-sets If in a named group-set check if in the COMMON group, and also if in any other group-set that has a group name in common
      Parameters:
      name - - Parameter name
      cgset - - Group-set (may be not-in-any, common, or a named set)
      Returns:
      true, if successful
    • haveSharedGroup

      public static boolean haveSharedGroup(String[] set1, String[] set2)
      Have shared group.
      Parameters:
      set1 - the set 1
      set2 - the set 2
      Returns:
      true, if successful
    • parameterNameAlreadyDefined

      public boolean parameterNameAlreadyDefined(String name, ConfigGroup cgset)
      Parameter name already defined.
      Parameters:
      name - the name
      cgset - the cgset
      Returns:
      true, if successful
    • enable

      public void enable()
      Description copied from class: AbstractSection
      Enable.
      Overrides:
      enable in class AbstractSectionParm
    • getTree

      public org.eclipse.swt.widgets.Tree getTree()
      Gets the tree.
      Returns:
      the tree