org.eclipse.emf.facet.util.ui.internal.exported.dialog
Interface IQuestionDialog


public interface IQuestionDialog

A simple dialog with a title, a message, and "yes" and "no" buttons


Method Summary
 void addCloseListener(java.lang.Runnable runnable)
          Add a listener that will be modified when the dialog closes
 java.lang.Boolean getResult()
          Get the user's answer
 Shell getShell()
           
 void open()
          Opens the dialog
 void pressNo()
          Programmatically emulate a press on the "No" button
 void pressYes()
          Programmatically emulate a press on the "Yes" button
 

Method Detail

open

void open()
Opens the dialog


pressYes

void pressYes()
Programmatically emulate a press on the "Yes" button


pressNo

void pressNo()
Programmatically emulate a press on the "No" button


addCloseListener

void addCloseListener(java.lang.Runnable runnable)
Add a listener that will be modified when the dialog closes


getResult

java.lang.Boolean getResult()
Get the user's answer

Returns:
  • true if the user clicked "Yes"
  • false if the user clicked "No"
  • null if the user closed the dialog without clicking either on "Yes" or "No"

getShell

Shell getShell()
Returns:
the dialog's shell