API for custom matchers in ChooseByName popup
[fedora-idea.git] / lang-impl / src / com / intellij / ide / util / gotoByName / CustomMatcherModel.java
blobda820cba196b76ebda8032092c888ad24b7e1cce
1 package com.intellij.ide.util.gotoByName;
3 import org.jetbrains.annotations.NotNull;
5 /**
6 * @author Roman.Chernyatchik
7 * @date Mar 11, 2009
8 */
9 public interface CustomMatcherModel {
10 /**
11 * Allows to implement custom matcher for matching itemps from ChooseByName popup
12 * with user pattern
13 * @param popupItem Item from list
14 * @param userPattern Pattern defined by user in Choose by name popup
15 * @return True if matches
17 boolean matches(@NotNull final String popupItem, @NotNull final String userPattern);