Class ActionControlFactory
java.lang.Object
de.cau.cs.kieler.klighd.ui.internal.options.ActionControlFactory
- All Implemented Interfaces:
IViewChangeListener,org.eclipse.jface.viewers.ISelectionChangedListener
public class ActionControlFactory
extends Object
implements org.eclipse.jface.viewers.ISelectionChangedListener, IViewChangeListener
A factory providing methods for creating action controls in the diagram side bar.
- Author:
- chsch
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.cau.cs.kieler.klighd.IViewChangeListener
IViewChangeListener.ViewChange -
Constructor Summary
ConstructorsConstructorDescriptionActionControlFactory(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.voidcreateActionControl(DisplayedActionData actionData, ViewContext viewContext) Factory method for creating a check button related to a 'check' option.voidselectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event) void
-
Constructor Details
-
ActionControlFactory
public ActionControlFactory(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. -
createActionControl
Factory method for creating a check button related to a 'check' option.- Parameters:
actionData- an instance ofDisplayedActionDataproviding the required informationviewContext- the relatedViewContextthe option is declared in
-
selectionChanged
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event) - Specified by:
selectionChangedin interfaceorg.eclipse.jface.viewers.ISelectionChangedListener
-
viewChanged
- Specified by:
viewChangedin interfaceIViewChangeListener
-