public PopupConfigDialog(Shell parentShell, Point origin, IConfigDialogContent content) {
   super(
       parentShell,
       PopupDialog.INFOPOPUP_SHELLSTYLE,
       true,
       false,
       false,
       false,
       false,
       content.getTitle(),
       "Press 'ESC' to close");
   this.origin = origin;
   this.content = content;
 }
 @Override
 protected Control createDialogArea(Composite parent) {
   return content.createContents(parent);
 }
 @Override
 protected Control getFocusControl() {
   return content.getFocusControl();
 }
 @Override
 public boolean close() {
   content.onOk();
   content.onClose();
   return super.close();
 }