提交 b65f073e 编写于 作者: S Serge Rider

Wizard button labels fix

上级 d9b0c0c7
......@@ -32,6 +32,7 @@ import org.jkiss.dbeaver.model.DBPDataSourceContainer;
import org.jkiss.dbeaver.ui.dialogs.ActiveWizardDialog;
import org.jkiss.dbeaver.ui.dialogs.BaseDialog;
import org.jkiss.dbeaver.ui.dialogs.connection.ClientHomesSelector;
import org.jkiss.dbeaver.ui.internal.UIMessages;
/**
* Tool wizard dialog
......@@ -46,6 +47,7 @@ public class ToolWizardDialog extends ActiveWizardDialog
super(window, wizard);
setShellStyle(SWT.CLOSE | SWT.MAX | SWT.MIN | SWT.TITLE | SWT.BORDER | SWT.RESIZE | getDefaultOrientation());
setHelpAvailable(false);
setFinishButtonLabel(UIMessages.button_start);
}
@Override
......
......@@ -50,6 +50,7 @@ public class TaskConfigurationWizardDialog extends ActiveWizardDialog {
public TaskConfigurationWizardDialog(IWorkbenchWindow window, TaskConfigurationWizard wizard, IStructuredSelection selection) {
super(window, wizard, selection);
setFinishButtonLabel(UIMessages.button_start);
}
TaskConfigurationWizardDialog(IWorkbenchWindow window) {
......@@ -98,10 +99,6 @@ public class TaskConfigurationWizardDialog extends ActiveWizardDialog {
}
super.createButtonsForButtonBar(parent);
Button cancelButton = getButton(IDialogConstants.CANCEL_ID);
cancelButton.setText(IDialogConstants.CLOSE_LABEL);
Button finishButton = getButton(IDialogConstants.FINISH_ID);
finishButton.setText(UIMessages.button_start);
}
@Override
......
......@@ -28,7 +28,6 @@ import org.eclipse.ui.ISelectionService;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWizard;
import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.internal.UIMessages;
import java.util.HashSet;
import java.util.Set;
......@@ -42,7 +41,7 @@ public class ActiveWizardDialog extends WizardDialog
private Set<String> resizedShells = new HashSet<>();
private boolean adaptContainerSizeToPages = false;
private String finishButtonLabel = UIMessages.button_start;
private String finishButtonLabel = IDialogConstants.FINISH_LABEL;
private String cancelButtonLabel = IDialogConstants.CLOSE_LABEL;
public ActiveWizardDialog(IWorkbenchWindow window, IWizard wizard)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册