Search in sources :

Example 1 with ConfigurableHit

use of com.intellij.ide.ui.search.ConfigurableHit in project intellij-community by JetBrains.

the class SearchableOptionsTest method testFindCodeTemplates.

public void testFindCodeTemplates() {
    ConfigurableGroup[] groups = ShowSettingsUtilImpl.getConfigurableGroups(getProject(), false);
    ConfigurableHit configurables = SearchableOptionsRegistrar.getInstance().getConfigurables(groups, DocumentEvent.EventType.INSERT, null, "method", getProject());
    Set<Configurable> configurableSet = configurables.getAll();
    for (Configurable configurable : configurableSet) {
        if (configurable.getDisplayName().equals(new AllFileTemplatesConfigurable(getProject()).getDisplayName())) {
            return;
        }
    }
    fail("File Templates are not found");
}
Also used : ConfigurableHit(com.intellij.ide.ui.search.ConfigurableHit) ConfigurableGroup(com.intellij.openapi.options.ConfigurableGroup) AllFileTemplatesConfigurable(com.intellij.ide.fileTemplates.impl.AllFileTemplatesConfigurable) AllFileTemplatesConfigurable(com.intellij.ide.fileTemplates.impl.AllFileTemplatesConfigurable) Configurable(com.intellij.openapi.options.Configurable)

Aggregations

AllFileTemplatesConfigurable (com.intellij.ide.fileTemplates.impl.AllFileTemplatesConfigurable)1 ConfigurableHit (com.intellij.ide.ui.search.ConfigurableHit)1 Configurable (com.intellij.openapi.options.Configurable)1 ConfigurableGroup (com.intellij.openapi.options.ConfigurableGroup)1