Bug 300472 [Dialogs] [JFace] Provide accessor for dialog messages
It would be nice to have access to the Dialog messages (eg. IDialogConstants.OK_LABEL) trough API instead of a field access. This would allow the RAP team to provide a session-based translation for the labels and furthermore improves the usability for our current users. Developers who want to single-source their applications for RCP and RAP cannot use the existing API of JFace as the labels are hardcoded as static fields and RAP has no chance to intervene this behavior without breaking API. I suggest to provide an accessor like SWT.getMessage() to get the translated string as this would allow developers to use the same API in RCP and JFace. I'd be happy to provide a patch once we decided on a possible approach. As suggested above, I'd introduce an accessor on Dialog itself and introduce message keys in IDialogConstants.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java
public int STOP_ID = 6;
    /**
     * Button id for an "Abort" button (value 7).
     */
    public int ABORT_ID = 7;
    /**
     * Button id for a "Retry" button (value 8).
     */
    public int RETRY_ID = 8;
    /**
     * Button id for an "Ignore" button (value 9).
     */
    public int IGNORE_ID = 9;
    /**
     * Button id for a "Proceed" button (value 10).
     */
    public int PROCEED_ID = 10;
    /**
     * Button id for an "Open" button (value 11).
     */
    public int OPEN_ID = 11;
    /**
     * Button id for a "Close" button (value 12).
     */
    public int CLOSE_ID = 12;
    /**
     * Button id for a "Details" button (value 13).
     */
    public int DETAILS_ID = 13;
    /**