org.geneweaver.query.ui.NoDefaultButtonWizardDialog Maven / Gradle / Ivy
package org.geneweaver.query.ui;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.widgets.Shell;
public class NoDefaultButtonWizardDialog extends WizardDialog {
public NoDefaultButtonWizardDialog(Shell parentShell, IWizard newWizard) {
super(parentShell, newWizard);
}
@Override
public void updateButtons() {
super.updateButtons();
getShell().setDefaultButton(null);
}
public void setCancelButtonText(String text) {
this.getButton(IDialogConstants.CANCEL_ID).setText(text);
}
public void setFinishButtonEnabled(boolean b) {
this.getButton(IDialogConstants.FINISH_ID).setEnabled(b);
}
}