Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361902

Summary: [DialogUtil]: #open(Dialog, DialogCallback) - Allow null as second parameter
Product: [RT] RAP Reporter: Frank Appel <fr.appel>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Frank Appel CLA 2011-10-25 05:33:21 EDT
DialogUtil#open(Dialog, DialogCallback) does not allow null as DialogCallback parameter. This seems to me a little harsh. There are a lot of cases where the dialog is only used as info box. In such cases there is no need for evaluation of the return value. The current implementation enforces to add an empty DialogCallback implementation just to be conform with the parameter check.
Comment 1 RĂ¼diger Herrmann CLA 2011-10-25 06:04:06 EDT
Removed the null-check for the DialogCallback argument and changed JavaDoc accordingly.
Changes are in CVS HEAD.