play.TemplateImports Maven / Gradle / Ivy
/*
* Copyright (C) 2009-2017 Lightbend Inc.
*/
package play;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TemplateImports {
public static List minimalJavaTemplateImports;
public static List defaultJavaTemplateImports;
public static List defaultScalaTemplateImports;
private static List defaultTemplateImports = Collections.unmodifiableList(
Arrays.asList(
"models._",
"controllers._",
"play.api.i18n._",
"views.%format%._",
"play.api.templates.PlayMagic._"
));
static {
List minimalJavaImports = new ArrayList();
minimalJavaImports.addAll(defaultTemplateImports);
minimalJavaImports.add("java.lang._");
minimalJavaImports.add("java.util._");
minimalJavaImports.add("scala.collection.JavaConverters._");
minimalJavaImports.add("play.core.j.PlayMagicForJava._");
minimalJavaImports.add("play.mvc._");
minimalJavaImports.add("play.api.data.Field");
minimalJavaImports.add("play.mvc.Http.Context.Implicit._");
minimalJavaTemplateImports = Collections.unmodifiableList(minimalJavaImports);
List defaultJavaImports = new ArrayList();
defaultJavaImports.addAll(minimalJavaTemplateImports);
defaultJavaImports.add("play.data._");
defaultJavaImports.add("play.core.j.PlayFormsMagicForJava._");
defaultJavaTemplateImports = Collections.unmodifiableList(defaultJavaImports);
List scalaImports = new ArrayList();
scalaImports.addAll(defaultTemplateImports);
scalaImports.add("play.api.mvc._");
scalaImports.add("play.api.data._");
defaultScalaTemplateImports = Collections.unmodifiableList(scalaImports);
}
}