| Summary: | Allow construction of MessageDialog with varargs | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | UI | Assignee: | 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 | ||
New Gerrit change created: https://git.eclipse.org/r/52030 Gerrit change https://git.eclipse.org/r/52030 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=593cf76f67d59f0f6766fc70e484bc532d3bb1a7 Fixed with last commit New Gerrit change created: https://git.eclipse.org/r/52577 Gerrit change https://git.eclipse.org/r/52577 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e4f82fa3ab9eafa291bf2e68a4d7755703dd3524 New Gerrit change created: https://git.eclipse.org/r/52732 I also need to update the Javadoc reference and the internal usage in the open method Gerrit change https://git.eclipse.org/r/52732 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d012cf07474b285ef91464e72d219fed7cc91139 Fixed with the last commit |
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");