1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 16:15:25 +02:00

Bug 495351 - Fix buttons on Arduino Download Dialog.

On Windows, OK and Cancel are reversed. Instead of making Cancel
invisible, dispose it so it's gone. Also rename OK to Done.

Change-Id: I37a63f431d71797c442c13389ead4bab9d08a8b1
This commit is contained in:
Doug Schaefer 2016-06-23 02:49:21 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 01ae529864
commit ee7f9a49da

View file

@ -83,8 +83,8 @@ public class ArduinoDownloadsManager extends WizardDialog {
@Override @Override
protected void createButtonsForButtonBar(Composite parent) { protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent); super.createButtonsForButtonBar(parent);
getButton(IDialogConstants.CANCEL_ID).setVisible(false); getButton(IDialogConstants.CANCEL_ID).dispose();
getButton(IDialogConstants.FINISH_ID).setText("OK"); getButton(IDialogConstants.FINISH_ID).setText("Done");
} }
} }