mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wording
This commit is contained in:
+1
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user