title: JFace/SWT: Change the labels for buttons in InputDialog
body: <p>I want to create an InputDialog with custom labels for the OK/Cancel buttons. I'm using <a href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/dialogs/InputDialog.html" rel="noreferrer">org.eclipse.jface.dialogs.InputDialog</a>.</p>
  
  <p>I tried to override the button creation method:</p>
  
  <pre><code>   @Override
     protected void createButtonsForButtonBar(Composite parent) {
      super.createButtonsForButtonBar(parent);
      getButton(IDialogConstants.OK_ID).setText(myOkText);
      getButton(IDialogConstants.CANCEL_ID).setText(myCancelText);
     }
  </code></pre>
  
  <p>and it works, but the buttons are not resized (and the custom text results cropped).</p>
  
  <p>I guess it's too late to set the text here, because the layout manager has already decided the button size and one cannot tell it to recompute... Is that so?</p>
  
  <p>What is the correct way ?</p>