Class ModifyDialogTabPage.DefaultFocusManager

  • All Implemented Interfaces:
    java.util.EventListener,, org.eclipse.swt.internal.SWTEventListener
    Enclosing class:

    protected static final class ModifyDialogTabPage.DefaultFocusManager
    This class provides the default way to preserve and re-establish the focus over multiple modify sessions. Each ModifyDialogTabPage has its own instance, and it should add all relevant controls upon creation, always in the same sequence. This established a mapping of controls to indexes, which allows to restore the focus in a later session. The index is saved in the dialog settings, and there is only one common preference for all tab pages. It is always the currently active tab page which stores its focus index.
    • Constructor Detail

      • DefaultFocusManager

        public DefaultFocusManager()
    • Method Detail

      • focusGained

        public void focusGained​( e)
        Specified by:
        focusGained in interface
        focusGained in class
      • add

        public void add​(org.eclipse.swt.widgets.Control control)
      • isUsed

        public boolean isUsed()
      • restoreFocus

        public void restoreFocus()
      • resetFocus

        public void resetFocus()