mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-168271 Make "Edit variables" not dimmed always or provide some hint how to un-dim it
This commit is contained in:
+3
-1
@@ -487,7 +487,9 @@ public class LiveTemplateSettingsEditor extends JPanel {
|
||||
}
|
||||
|
||||
private void validateEditVariablesButton() {
|
||||
myEditVariablesButton.setEnabled(!parseVariables().isEmpty());
|
||||
boolean hasVariables = !parseVariables().isEmpty();
|
||||
myEditVariablesButton.setEnabled(hasVariables);
|
||||
myEditVariablesButton.setToolTipText(hasVariables ? null : "Disabled because the template has no variables (surrounded with $ signs)");
|
||||
}
|
||||
|
||||
void resetUi() {
|
||||
|
||||
Reference in New Issue
Block a user