@Override public void actionPerformed(ActionEvent e) { InputDialog inputDialog = dialogFactory .createInputDialog( "New " + title, "Name:", new InputCallback() { @Override public void accepted(String value) { onAccepted(value); } }, null) .withValidator(nameValidator); inputDialog.show(); }
private void renameBranch() { final String selectedBranchName = getSelectedBranchName(); dialogFactory .createInputDialog( constant.branchTitleRename(), constant.branchTypeRename(), selectedBranchName, 0, selectedBranchName.length(), this::renameBranch, null) .show(); }
@Override public void actionPerformed(ActionEvent e) { InputDialog inputDialog = dialogFactory .createInputDialog( coreLocalizationConstant.newResourceTitle(title), coreLocalizationConstant.newResourceLabel(title.toLowerCase()), new InputCallback() { @Override public void accepted(String value) { createFile(value); } }, null) .withValidator(fileNameValidator); inputDialog.show(); }
@Override public void actionPerformed(ActionEvent e) { InputDialog inputDialog = dialogFactory .createInputDialog( coreLocalizationConstant.newResourceTitle( coreLocalizationConstant.actionNewFolderTitle()), coreLocalizationConstant.newResourceLabel( coreLocalizationConstant.actionNewFolderTitle().toLowerCase()), new InputCallback() { @Override public void accepted(String value) { createFolder(value); } }, null) .withValidator(folderNameValidator); inputDialog.show(); }
inputCallback, null) .show();
/** {@inheritDoc} */ @Override public void onAddUrlClicked() { dialogFactory .createInputDialog( local.addUrlText(), local.addUrlLabel(), "", 0, 0, local.addSchemaButtonText(), new InputCallback() { @Override public void accepted(String url) { addUrlToPreferences(url); refreshTable(); nowDirty(); } }, getCancelCallback()) .show(); }
null); inputDialog.withValidator(validator); inputDialog.show();
@Override public void onCreateClicked() { dialogFactory .createInputDialog( constant.branchCreateNew(), constant.branchTypeNew(), value -> { if (value.isEmpty()) { return; } service .branchCreate(project.getLocation(), value, null) .then( branch -> { getBranches(); view.setFocus(); }) .catchError( error -> { handleError(error.getCause(), BRANCH_CREATE_COMMAND_NAME); }); }, null) .show(); }
}, null) .show();
}, null) .show();