Interface IRefactoringHistoryControl

    • Method Detail

      • addCheckStateListener

        void addCheckStateListener​(ICheckStateListener listener)
        Registers the specified check state listener with this control.

        If the listener is already registered with the control, or the control has no checkable viewer or has not yet been created, nothing happens.

        Parameters:
        listener - the listener to register
      • addSelectionChangedListener

        void addSelectionChangedListener​(ISelectionChangedListener listener)
        Registers the specified selection changed listener with this control.

        If the listener is already registered with the control or has not yet been created, nothing happens.

        Parameters:
        listener - the listener to register
      • createControl

        void createControl()
        Creates the refactoring history control.

        This method creates the necessary widgets and initializes the refactoring history control. It is called only once. Method getControl() should be used to retrieve the widget hierarchy.

        See Also:
        getControl()
      • getControl

        Control getControl()
        Returns the SWT control of this refactoring history control.
        Returns:
        the SWT control, or null if the control's widget hierarchy has not yet been created
      • getSelectedDescriptors

        RefactoringDescriptorProxy[] getSelectedDescriptors()
        Returns the selected refactoring descriptors.
        Returns:
        the selected refactoring descriptors, or an empty array.
      • removeCheckStateListener

        void removeCheckStateListener​(ICheckStateListener listener)
        Unregisters the specified check state listener with this control.

        If the listener is not registered with this control, nothing happens.

        Parameters:
        listener - the listener to unregister
      • removeSelectionChangedListener

        void removeSelectionChangedListener​(ISelectionChangedListener listener)
        Unregisters the specified selection changed listener with this control.

        If the listener is not registered with this control, nothing happens.

        Parameters:
        listener - the listener to unregister
      • setInput

        void setInput​(RefactoringHistory history)
        Sets the refactoring history of this control.
        Parameters:
        history - the refactoring history, or null to clear the viewer input
      • setSelectedDescriptors

        void setSelectedDescriptors​(RefactoringDescriptorProxy[] descriptors)
        Sets the selected refactoring descriptors.
        Parameters:
        descriptors - the refactoring descriptors to select, or an empty array