Class SynthesisOptionControlFactory

java.lang.Object
de.cau.cs.kieler.klighd.ui.internal.options.SynthesisOptionControlFactory

public class SynthesisOptionControlFactory extends Object
A factory providing methods for creating diagram synthesis option controls in the diagram side bar.
Author:
chsch, als
  • Constructor Details

    • SynthesisOptionControlFactory

      public SynthesisOptionControlFactory(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit formToolkit)
      Constructor.
      Parameters:
      parent - the widget container
      formToolkit - the form toolkit to be used to create controls
  • Method Details

    • clear

      public void clear()
      Clear the previously created option controls.
    • createSubSynthesisOptionControlFactory

      public SynthesisOptionControlFactory createSubSynthesisOptionControlFactory(ISynthesis synthesis)
      Creates a SynthesisOptionControlFactory for the given synthesis. Controls created with the returned factory will be clients of this section.
      Parameters:
      synthesis - the ISynthesis defining the section.
      Returns:
      the SynthesisOptionControlFactory for clients.
    • createOptionControl

      public boolean createOptionControl(SynthesisOption option, ViewContext context)
      Factory method for creating a controls for different SynthesisOption.
      Parameters:
      option - the option
      context - the related ViewContext the option
      Returns:
      true if the created control has an action, false otherwise (e.g. in case of a separator)