public UntrackedFilesDialog( Project project, Collection<VirtualFile> untrackedFiles, String dialogDesc) { super( project, new ArrayList<VirtualFile>(untrackedFiles), StringUtil.stripHtml(dialogDesc, true), null, false, false, true); init(); }
protected int getMatchingDegree() { if (myMatcher == null) return Integer.MAX_VALUE; String text = getName() + " " + getGroupName(); String description = getDescription(); if (description != null) { text += " " + StringUtil.stripHtml(description, false); } int i = myMatcher.matchingDegree(text); if (myBestMatch == null || i > myBestMatch.second) { myBestMatch = Pair.create(this, i); } return i; }