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
  • Constructor Details

    • ActionControlFactory

      public ActionControlFactory(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.
    • createActionControl

      public void createActionControl(DisplayedActionData actionData, ViewContext viewContext)
      Factory method for creating a check button related to a 'check' option.
      Parameters:
      actionData - an instance of DisplayedActionData providing the required information
      viewContext - the related ViewContext the option is declared in
    • selectionChanged

      public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
      Specified by:
      selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener
    • viewChanged

      public void viewChanged(IViewChangeListener.ViewChange change)
      Specified by:
      viewChanged in interface IViewChangeListener