public static PluginSimpleContent getEmptyScreen() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, ""); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("Yo", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getEmptyScreen() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, ""); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("Yo", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getScreenWithTitle() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, ""); codeMap.put(CodeType.TITLE, "My Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("ScreenWithTitle", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getScreenWithMainAndTitle() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, "alert('main');"); codeMap.put(CodeType.TITLE, "My Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("ScreenWithTitle", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getScreenWithTitle() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, ""); codeMap.put(CodeType.TITLE, "My Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("ScreenWithTitle", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getScreenWithMainAndTitle() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, "alert('main');"); codeMap.put(CodeType.TITLE, "My Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("ScreenWithTitle", PluginType.SCREEN, path, "", "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
private PluginSimpleContent buildPlugin(String name, PluginType type, Framework framework) { Set<Framework> frameworks = new HashSet<Framework>(); if (framework != null) { frameworks.add(framework); } return new PluginSimpleContent(name, type, PathFactory.newPath(type.name().toLowerCase() + ".plugin", "git://amend-repo-test/" + name + "/" + type.name().toLowerCase() + ".plugin"), null, null, new HashMap<CodeType, String>(), frameworks, null); }
private PluginSimpleContent buildPlugin(String name, PluginType type, Framework framework) { Set<Framework> frameworks = new HashSet<Framework>(); if (framework != null) { frameworks.add(framework); } return new PluginSimpleContent(name, type, PathFactory.newPath(type.name().toLowerCase() + ".plugin", "git://amend-repo-test/" + name + "/" + type.name().toLowerCase() + ".plugin"), null, null, new HashMap<CodeType, String>(), frameworks, null); }
public static PluginSimpleContent getTodoAngularPluginSimpleContent() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, loadSample(ANGULAR_MAIN)); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); frameworks.add(Framework.ANGULAR); PluginSimpleContent plugin = new PluginSimpleContent("Yo", PluginType.SCREEN, path, loadSample(ANGULAR_TEMPLATE), loadSample(ANGULAR_CSS), codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getTodoAngularPluginSimpleContent() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, loadSample(ANGULAR_MAIN)); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); frameworks.add(Framework.ANGULAR); PluginSimpleContent plugin = new PluginSimpleContent("Yo", PluginType.SCREEN, path, loadSample(ANGULAR_TEMPLATE), loadSample(ANGULAR_CSS), codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getSplashScreen() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.ON_CLOSE, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.ON_CONCURRENT_COPY, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.TITLE, "Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("Splash", PluginType.SPLASH, path, loadSample(SPLASH_TEMPLATE), "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public static PluginSimpleContent getSplashScreen() { Map<CodeType, String> codeMap = new HashMap<CodeType, String>(); codeMap.put(CodeType.MAIN, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.ON_CLOSE, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.ON_CONCURRENT_COPY, loadSample(SPLASH_MAIN)); codeMap.put(CodeType.TITLE, "Title"); Path path = null; Set<Framework> frameworks = new HashSet<Framework>(); PluginSimpleContent plugin = new PluginSimpleContent("Splash", PluginType.SPLASH, path, loadSample(SPLASH_TEMPLATE), "", codeMap, frameworks, Language.JAVASCRIPT); return plugin; }
public Plugin getContent() { return new PluginSimpleContent(view().getContent(), view().getTemplate(), view().getCss(), view().getCodeMap(), view().getFrameworks(), view().getContent().getLanguage()); }
public Plugin getContent() { return new PluginSimpleContent(view().getContent(), view().getTemplate(), view().getCss(), view().getCodeMap(), view().getFrameworks(), view().getContent().getLanguage()); }