Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change Finish button text to Done in Wizard?

I have created a custom wizard with some pages in eclipse plugin. The pages are created by extending the WizardPage. The wizard has Next back Finish and cancel button, and everything works fine.
Now, I want to change the name/text of Finish button to Done. Is it possible to do this in eclipse? Or will I need to provide all the buttons by myself, even this would be fine.

like image 930
Destructor Avatar asked Mar 19 '23 16:03

Destructor


1 Answers

This should do:

@Override
protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);

    Button finish = getButton(IDialogConstants.FINISH_ID)
    finish.setText("Done");
    setButtonLayoutData(finish);
}

Here is a related question.

like image 146
Baz Avatar answered Mar 22 '23 05:03

Baz