Class BaseDialog

  • Direct Known Subclasses:
    BaseMessageDialog, FieldSelectionDialog

    public abstract class BaseDialog
    extends org.eclipse.swt.widgets.Dialog
    A base dialog class containing a body and a configurable button panel.
    • Field Detail

      • VAR_ICON_WIDTH

        public static final int VAR_ICON_WIDTH
      • VAR_ICON_HEIGHT

        public static final int VAR_ICON_HEIGHT
      • buttons

        protected Map<String,​org.eclipse.swt.widgets.Listener> buttons
      • shell

        protected org.eclipse.swt.widgets.Shell shell
      • width

        protected int width
      • title

        protected String title
    • Constructor Detail

      • BaseDialog

        public BaseDialog​(org.eclipse.swt.widgets.Shell shell)
      • BaseDialog

        public BaseDialog​(org.eclipse.swt.widgets.Shell shell,
                          String title,
                          int width)
    • Method Detail

      • buildBody

        protected abstract org.eclipse.swt.widgets.Control buildBody()
        Returns the last element in the body - the one to which the buttons should be attached.
        Returns:
      • open

        public int open()
      • buildFooter

        protected void buildFooter​(org.eclipse.swt.widgets.Control anchorElement)
      • setFooterTopPadding

        public void setFooterTopPadding​(int footerTopPadding)
      • dispose

        public void dispose()
      • setButtons

        public void setButtons​(Map<String,​org.eclipse.swt.widgets.Listener> buttons)