mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test discovery: remove discovery type if not enabled in registry (IDEA-157764)
This commit is contained in:
+5
-3
@@ -159,9 +159,11 @@ public class TestNGConfigurationEditor<T extends TestNGConfiguration> extends Se
|
||||
});
|
||||
panel.add(editBtn, BorderLayout.EAST);
|
||||
|
||||
final CollectionComboBoxModel<TestType> testKindModel = new CollectionComboBoxModel<>(Arrays.asList(TestType.values()));
|
||||
if (!Registry.is("testDiscovery.enabled")) {
|
||||
testKindModel.remove(TestType.SOURCE);
|
||||
final CollectionComboBoxModel<TestType> testKindModel = new CollectionComboBoxModel<>();
|
||||
for (TestType type : TestType.values()) {
|
||||
if (type != TestType.SOURCE || Registry.is("testDiscovery.enabled")) {
|
||||
testKindModel.add(type);
|
||||
}
|
||||
}
|
||||
myTestKind.setModel(testKindModel);
|
||||
myTestKind.addActionListener(new ActionListener() {
|
||||
|
||||
Reference in New Issue
Block a user