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

Bug 472690

Summary: Allow construction of MessageDialog with varargs
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Lars Vogel <Lars.Vogel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel
Version: 4.4   
Target Milestone: 4.6 M1   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/52030
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=593cf76f67d59f0f6766fc70e484bc532d3bb1a7
https://git.eclipse.org/r/52577
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e4f82fa3ab9eafa291bf2e68a4d7755703dd3524
https://git.eclipse.org/r/52732
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d012cf07474b285ef91464e72d219fed7cc91139
Whiteboard:
Bug Depends on:    
Bug Blocks: 472784, 490700    

Description Lars Vogel CLA 2015-07-15 02:43:04 EDT
Currently I need to construct a MessageDialog like the following:

new MessageDialog(shell, "MessageDialog", null, "DialogMessage", MessageDialog.NONE,
 new String[]{ "Button1", "Button2"},
 0);

If we would also offer a constructor with varargs this would be simplified to 

new MessageDialog(shell, "MessageDialog", null, "DialogMessage", MessageDialog.NONE, 0, "Button1", "Button2");
Comment 1 Eclipse Genie CLA 2015-07-16 00:37:45 EDT
New Gerrit change created: https://git.eclipse.org/r/52030
Comment 3 Lars Vogel CLA 2015-07-24 04:20:10 EDT
Fixed with last commit
Comment 4 Eclipse Genie CLA 2015-07-26 13:00:07 EDT
New Gerrit change created: https://git.eclipse.org/r/52577
Comment 6 Eclipse Genie CLA 2015-07-28 12:38:14 EDT
New Gerrit change created: https://git.eclipse.org/r/52732
Comment 7 Lars Vogel CLA 2015-07-28 12:39:36 EDT
I also need to update the Javadoc reference and the internal usage in the open method
Comment 9 Lars Vogel CLA 2015-07-28 17:23:04 EDT
Fixed with the last commit