From 83cc03ba56e4701baf02a52111ef7ac0a7391c5b Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 22 Nov 2012 18:42:21 +0400 Subject: [PATCH] searching inside descriptions (cherry picked from commit b95e67480d5bb594ec24622f9475825dedb4ca0c) --- .../intellij/ide/util/newProjectWizard/ProjectTypesList.java | 3 ++- .../projectModel-impl/src/messages/ProjectBundle.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java/idea-ui/src/com/intellij/ide/util/newProjectWizard/ProjectTypesList.java b/java/idea-ui/src/com/intellij/ide/util/newProjectWizard/ProjectTypesList.java index 04651a1fd034..503162b94273 100644 --- a/java/idea-ui/src/com/intellij/ide/util/newProjectWizard/ProjectTypesList.java +++ b/java/idea-ui/src/com/intellij/ide/util/newProjectWizard/ProjectTypesList.java @@ -21,6 +21,7 @@ import com.intellij.openapi.actionSystem.CustomShortcutSet; import com.intellij.openapi.ui.popup.ListItemDescriptor; import com.intellij.openapi.util.Condition; import com.intellij.openapi.util.Pair; +import com.intellij.openapi.util.text.StringUtil; import com.intellij.platform.ProjectTemplate; import com.intellij.platform.ProjectTemplatesFactory; import com.intellij.platform.templates.RemoteTemplatesFactory; @@ -225,7 +226,7 @@ public class ProjectTypesList { protected int getMatchingDegree() { if (myMatcher == null) return Integer.MAX_VALUE; - int i = myMatcher.matchingDegree(getGroupName() + " " + getName()); + int i = myMatcher.matchingDegree(getName() + " " + getGroupName() + " " + StringUtil.stripHtml(myTemplate.getDescription(), false)); if (myBestMatch == null || i > myBestMatch.second) { myBestMatch = Pair.create(this, i); } diff --git a/platform/projectModel-impl/src/messages/ProjectBundle.properties b/platform/projectModel-impl/src/messages/ProjectBundle.properties index 399b6426170a..3b59298f75dd 100644 --- a/platform/projectModel-impl/src/messages/ProjectBundle.properties +++ b/platform/projectModel-impl/src/messages/ProjectBundle.properties @@ -214,7 +214,7 @@ project.order.entry.project= jdk.missing.item= library.empty.library.item=Empty Library module.type.java.name=Java Module -module.type.java.description=Java modules are used for developing JVM-based applications, including applications that use Java EE and other enterprise development frameworks. +module.type.java.description=Java modules are used for developing JVM-based desktop and web applications, including applications that use Java EE and other enterprise development frameworks. module.type.unknown.name=Unknown module type. Used \"{0}\" as a substitute module.already.exists.error=Module ''{0}'' already exists in the project. module.source.roots.not.configured.error=No Source Roots configured for module {0}\nPlease use Settings | Paths to configure roots.