Class Contributions.ToolTipListener

  • All Implemented Interfaces:
    org.eclipse.swt.widgets.Listener
    Enclosing class:
    Contributions

    private static class Contributions.ToolTipListener
    extends java.lang.Object
    implements org.eclipse.swt.widgets.Listener
    A listener showing a tooltip on a disabled button.
    Author:
    Holger Eichelberger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.widgets.Control control  
      private org.eclipse.jface.window.DefaultToolTip tooltip  
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolTipListener​(org.eclipse.swt.widgets.Control control, java.lang.String tooltip)
      Creates a tooltip listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleEvent​(org.eclipse.swt.widgets.Event event)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • control

        private org.eclipse.swt.widgets.Control control
      • tooltip

        private org.eclipse.jface.window.DefaultToolTip tooltip
    • Constructor Detail

      • ToolTipListener

        public ToolTipListener​(org.eclipse.swt.widgets.Control control,
                               java.lang.String tooltip)
        Creates a tooltip listener.
        Parameters:
        control - the control to attach to
        tooltip - the tooltip string
    • Method Detail

      • handleEvent

        public void handleEvent​(org.eclipse.swt.widgets.Event event)
        Specified by:
        handleEvent in interface org.eclipse.swt.widgets.Listener