Class SynthesisOptionControlFactory
java.lang.Object
de.cau.cs.kieler.klighd.ui.internal.options.SynthesisOptionControlFactory
A factory providing methods for creating diagram synthesis option controls in the diagram side bar.
- Author:
- chsch, als
-
Constructor Summary
ConstructorsConstructorDescriptionSynthesisOptionControlFactory(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit formToolkit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the previously created option controls.booleancreateOptionControl(SynthesisOption option, ViewContext context) Factory method for creating a controls for differentSynthesisOption.createSubSynthesisOptionControlFactory(ISynthesis synthesis) Creates aSynthesisOptionControlFactoryfor the given synthesis.
-
Constructor Details
-
SynthesisOptionControlFactory
public SynthesisOptionControlFactory(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit formToolkit) Constructor.- Parameters:
parent- the widget containerformToolkit- the form toolkit to be used to create controls
-
-
Method Details
-
clear
public void clear()Clear the previously created option controls. -
createSubSynthesisOptionControlFactory
Creates aSynthesisOptionControlFactoryfor the given synthesis. Controls created with the returned factory will be clients of this section.- Parameters:
synthesis- theISynthesisdefining the section.- Returns:
- the
SynthesisOptionControlFactoryfor clients.
-
createOptionControl
Factory method for creating a controls for differentSynthesisOption.- Parameters:
option- the optioncontext- the relatedViewContextthe option- Returns:
- true if the created control has an action, false otherwise (e.g. in case of a separator)
-