Class ResizableDialog

All Implemented Interfaces:
IShellProvider
Direct Known Subclasses:
AddFromHistoryDialog, EditionSelectionDialog

public abstract class ResizableDialog extends Dialog
Base class for resizable Dialogs with persistent window bounds.
  • Field Details

  • Constructor Details

  • Method Details

    • setHelpContextId

      public void setHelpContextId(String contextId)
    • configureShell

      protected void configureShell(Shell newShell)
      Description copied from class: Window
      Configures the given shell in preparation for opening this window in it.

      The default implementation of this framework method sets the shell's image and gives it a grid layout. Subclasses may extend or reimplement.

      Overrides:
      configureShell in class Window
      Parameters:
      newShell - the shell
    • getInitialSize

      protected Point getInitialSize()
      Description copied from class: Dialog
      Returns the initial size to use for the shell. Overridden to check whether a size has been stored in dialog settings. If a size has been stored, it is returned.
      Overrides:
      getInitialSize in class Dialog
      Returns:
      the initial size of the shell
      See Also:
    • getInitialLocation

      protected Point getInitialLocation(Point initialSize)
      Description copied from class: Dialog
      Returns the initial location to use for the shell. Overridden to check whether the bounds of the dialog have been stored in dialog settings. If a location has been stored, it is returned.
      Overrides:
      getInitialLocation in class Dialog
      Parameters:
      initialSize - the initial size of the shell, as returned by getInitialSize.
      Returns:
      the initial location of the shell
      See Also:
    • close

      public boolean close()
      Description copied from class: Window
      Closes this window, disposes its shell, and removes this window from its window manager (if it has one).

      This framework method may be extended (super.close must be called).

      Note that in order to prevent recursive calls to this method it does not call Shell#close(). As a result ShellListeners will not receive a shellClosed event.

      Overrides:
      close in class Dialog
      Returns:
      true if the window is (or was already) closed, and false if it is still open
      See Also: