Skip to content

Commit 68e17b3

Browse files
Improved UI
1 parent 9a4544c commit 68e17b3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/main/java/pl/thedeem/intellij/dql/settings/DQLSettingsComponent.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ public DQLSettingsComponent(DQLSettings settings) {
2525
allowExperimentalFeatures.setToolTipText(DQLBundle.message("settings.dql.features.allowExperimentalFeaturesDescription"));
2626
JPanel tenantsSelectorPanel = FormBuilder.createFormBuilder()
2727
.addLabeledComponent(DQLBundle.message("settings.dql.features.defaultDynatraceTenant"), defaultDynatraceTenant)
28-
.addTooltip(DQLBundle.message("settings.dql.features.defaultDynatraceTenantDescription"))
2928
.getPanel();
3029

3130
myMainPanel = FormBuilder.createFormBuilder()
3231
.addComponent(showDqlExecutionToolbar, 1)
3332
.addComponent(showDqlInjectionGutterIcon, 1)
3433
.addComponent(calculateFieldsDataType, 1)
3534
.addComponent(allowExperimentalFeatures, 1)
35+
.addComponent(tenantsSelectorPanel, 1)
3636
.addComponent(performLiveValidations, 1)
3737
.addComponent(useDynatraceAutocomplete, 1)
38-
.addComponent(tenantsSelectorPanel, 1)
3938
.addComponentFillVertically(new JBPanel<>(), 0)
4039
.getPanel();
4140

@@ -46,8 +45,6 @@ public DQLSettingsComponent(DQLSettings settings) {
4645
useDynatraceAutocomplete.setSelected(settings.isUseDynatraceAutocompleteEnabled());
4746
showDqlExecutionToolbar.setSelected(settings.isDQLExecutionToolbarVisible());
4847
showDqlInjectionGutterIcon.setSelected(settings.isDQLInjectionGutterIconVisible());
49-
performLiveValidations.addActionListener((actionEvent -> tenantsSelectorPanel.setVisible(performLiveValidations.isSelected() || useDynatraceAutocomplete.isSelected())));
50-
useDynatraceAutocomplete.addActionListener((actionEvent -> tenantsSelectorPanel.setVisible(performLiveValidations.isSelected() || useDynatraceAutocomplete.isSelected())));
5148
tenantsSelectorPanel.setVisible(settings.isPerformingLiveValidationEnabled());
5249
defaultDynatraceTenant.refreshTenantsComboBox();
5350
}

src/main/resources/messages/DQLBundle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ settings.dql.features.useDynatraceAutocomplete=Use Dynatrace autocomplete to sug
2828
settings.dql.features.showDqlExecutionToolbar=Show DQL execution toolbar for DQL files
2929
settings.dql.features.showDqlInjectionGutterIcon=Show DQL execution icon in the gutter for injected DQL fragments
3030
settings.dql.features.defaultDynatraceTenant=Default tenant:
31-
settings.dql.features.defaultDynatraceTenantDescription=If any Run Configuration related to the DQL file exists, the tenant selected there will be used to perform validations.\nOtherwise, the default tenant will be used.
3231
settings.color.badValue=Bad value
3332
settings.color.keywords=Keywords
3433
settings.color.comments=Comments

0 commit comments

Comments
 (0)