Class EditingLanguageControlContribution

java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.ControlContribution
org.eclipse.ui.internal.menus.InternalControlContribution
org.eclipse.ui.menus.WorkbenchWindowControlContribution
com._1c.g5.v8.dt.ui.internal.language.EditingLanguageControlContribution
All Implemented Interfaces:
IEventListener, EventListener, org.eclipse.jface.action.IContributionItem, ISelectionChangedListener, org.eclipse.ui.ISelectionListener

public class EditingLanguageControlContribution extends org.eclipse.ui.menus.WorkbenchWindowControlContribution implements org.eclipse.ui.ISelectionListener, ISelectionChangedListener, IEventListener
Class of control contribution for EditingLanguage
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.swt.widgets.Control
    createControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
    void
    Process event of specified type
    void
    ComboBox viewer selection changed listener
    void
    selectionChanged(org.eclipse.ui.IWorkbenchPart part, ISelection selection)
    Global selection changed listener
    void
    updateViewer(IDtProject updateProject)
    Update language list combo box for project

    Methods inherited from class org.eclipse.ui.menus.WorkbenchWindowControlContribution

    delegateCreateControl, getCurSide, getOrientation, getWorkbenchWindow

    Methods inherited from class org.eclipse.ui.internal.menus.InternalControlContribution

    setCurSide, setWorkbenchWindow

    Methods inherited from class org.eclipse.jface.action.ControlContribution

    computeWidth, fill, fill, fill, setVisible, update, update

    Methods inherited from class org.eclipse.jface.action.ContributionItem

    fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EditingLanguageControlContribution

      @Inject public EditingLanguageControlContribution(IEditingLanguageManager editingLanguageManager, IV8ProjectManager v8projectManager)
      Default constructor
      Parameters:
      editingLanguageManager - the editing language manager, cannot be null
      v8projectManager - the V8 project manager, cannot be null
  • Method Details

    • selectionChanged

      public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, ISelection selection)
      Global selection changed listener

      Specified by:
      selectionChanged in interface org.eclipse.ui.ISelectionListener
    • selectionChanged

      public void selectionChanged(SelectionChangedEvent event)
      ComboBox viewer selection changed listener

      Specified by:
      selectionChanged in interface ISelectionChangedListener
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.jface.action.IContributionItem
      Overrides:
      dispose in class org.eclipse.jface.action.ContributionItem
    • handleEvent

      public void handleEvent(IEvent event)
      Description copied from interface: IEventListener
      Process event of specified type
      Specified by:
      handleEvent in interface IEventListener
      Parameters:
      event - the event to handle (cannot be null)
    • updateViewer

      public void updateViewer(IDtProject updateProject)
      Update language list combo box for project
      Parameters:
      updateProject - the project to update language list for, or null to disable viewer
    • createControl

      protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createControl in class org.eclipse.jface.action.ControlContribution