private InputDialog getRefNameInputDialog(String prompt, final String refPrefix, String initialValue) { InputDialog labelDialog = new InputDialog(getShell(), UIText.CheckoutDialog_QuestionNewBranchTitle, prompt, initialValue, ValidationUtils.getRefNameInputValidator(repo, refPrefix, true)); labelDialog.setBlockOnOpen(true); return labelDialog; }
private InputDialog getRefNameInputDialog(String prompt, final String refPrefix, String initialValue) { InputDialog branchNameDialog = new InputDialog( getShell(), UIText.RenameBranchDialog_RenameBranchDialogNewNameInputWindowTitle, prompt, initialValue, ValidationUtils.getRefNameInputValidator( repo, refPrefix, true)); branchNameDialog.setBlockOnOpen(true); return branchNameDialog; }
dialog.setBlockOnOpen(true); dialog.open(); if (dialog.getReturnCode() == Window.CANCEL) {
input.setBlockOnOpen(true); if (input.open() == Window.OK) { String mapName = input.getValue();
IDEWorkbenchMessages.RenameResourceAction_inputDialogMessage, resource.getName(), validator); dialog.setBlockOnOpen(true); int result = dialog.open(); if (result == Window.OK)
md.setBlockOnOpen(true); if (md.open() == Window.OK) { if (md.getValue() != null) {