void (final ActionEvent e) { final ManageTemplateVariablesDialog dialog = new ManageTemplateVariablesDialog(myManageTemplateVariablesButton); dialog.setTemplateVariables(myRepository.getAllTemplateVariables()); if (dialog.showAndGet()) { myRepository.setTemplateVariables(ContainerUtil.filter(dialog.getTemplateVariables(), variable -> !variable.isReadOnly())); myCustomPanel.removeAll(); myCustomPanel.add(createCustomPanel()); //myCustomPanel.repaint(); myTabbedPane.getComponentAt(0).repaint(); //myLoginURLText = createEditorFieldWithPlaceholderCompletion(myRepository.getLoginUrl()); List<String> placeholders = createPlaceholdersList(myRepository); ((TextFieldWithAutoCompletion)myLoginURLText).setVariants(placeholders); ((TextFieldWithAutoCompletion)myTasksListURLText).setVariants(concat(placeholders, "{max}", "{since}")); ((TextFieldWithAutoCompletion)mySingleTaskURLText).setVariants(concat(placeholders, "{id}")); myPanel.repaint(); } }