This commit is contained in:
Dmitry Avdeev
2012-11-12 16:11:10 +04:00
parent fbd6dd4c9c
commit 80263b8488
3 changed files with 2 additions and 4 deletions
@@ -26,7 +26,6 @@ import com.intellij.platform.DirectoryProjectGenerator;
import com.intellij.platform.ProjectTemplate;
import com.intellij.platform.ProjectTemplatesFactory;
import com.intellij.platform.templates.ArchivedProjectTemplate;
import com.intellij.platform.templates.ArchivedTemplatesFactory;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.containers.MultiMap;
import org.jetbrains.annotations.NotNull;
@@ -69,7 +68,7 @@ public class CreateFromTemplateMode extends WizardMode {
for (Map.Entry<String, Collection<ProjectTemplate>> entry : groups.entrySet()) {
Collection<ProjectTemplate> templates = entry.getValue();
if (templates.size() == 1 &&
!ArchivedTemplatesFactory.CUSTOM_GROUP.equals(entry.getKey())) {
!ProjectTemplatesFactory.CUSTOM_GROUP.equals(entry.getKey())) {
if (!(templates.iterator().next() instanceof ArchivedProjectTemplate)) {
sorted.putValues(ProjectTemplatesFactory.OTHER_GROUP, templates);
@@ -41,7 +41,6 @@ import java.util.*;
*/
public class ArchivedTemplatesFactory implements ProjectTemplatesFactory {
public static final String CUSTOM_GROUP = "Custom";
private static final String ZIP = ".zip";
private final NotNullLazyValue<MultiMap<String, URL>> myGroups = new NotNullLazyValue<MultiMap<String, URL>>() {
@@ -28,7 +28,7 @@ public interface ProjectTemplatesFactory {
ExtensionPointName<ProjectTemplatesFactory> EP_NAME = ExtensionPointName.create("com.intellij.projectTemplatesFactory");
String OTHER_GROUP = "Other";
String CUSTOM_GROUP = "Custom";
String CUSTOM_GROUP = "User-defined";
@NotNull
String[] getGroups();