[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] right align status in statusdialog

I am using a statusdialog. When the user makes some choices on the dialog, I wante to use the status line at the bottom of the dialog to display warning/error messages to the user. It all works well. I was wondering if it is possible to display the status message above the ok/cancel button - right aligned instead of left aligned. I saw the following code in status dialog:

private MessageLine fStatusLine;

protected Control createButtonBar(Composite parent) {
  ...
  fStatusLine = new MessageLine(composite);
  fStatusLine.setAlignment(SWT.LEFT);
  ...
}

Is there a way to change the alignment to right without overriding the whole createButtonBar?

Thanks,
Upkar.