@Test public void emptyModuleName() { final CodeSnippet snippet = new CodeSnippet(); snippet.getProperties().put(MODULE_NAME_PROPERTY, ""); assertEquals("slideshowfx.Snippet", snippetExecutor.determineModuleName(snippet)); }
protected String determineModuleName(final CodeSnippet codeSnippet) { String moduleName = codeSnippet.getProperties().get(MODULE_NAME_PROPERTY); if (moduleName == null || moduleName.isEmpty()) moduleName = "slideshowfx.Snippet"; return moduleName; }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected String determineModuleName(final CodeSnippet codeSnippet) { String moduleName = codeSnippet.getProperties().get(MODULE_NAME_PROPERTY); if (moduleName == null || moduleName.isEmpty()) moduleName = "slideshowfx.Snippet"; return moduleName; } }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected String determineModuleName(final CodeSnippet codeSnippet) { String moduleName = codeSnippet.getProperties().get(MODULE_NAME_PROPERTY); if (moduleName == null || moduleName.isEmpty()) moduleName = "slideshowfx.Snippet"; return moduleName; } GoloSnippetExecutor(); }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected String determineModuleName(final CodeSnippet codeSnippet) { String moduleName = codeSnippet.getProperties().get(MODULE_NAME_PROPERTY); if (moduleName == null || moduleName.isEmpty()) moduleName = "slideshowfx.Snippet"; return moduleName; } GoloSnippetExecutor(); @Override Parent getUI(final CodeSnippet codeSnippet); @Override Node getConfigurationUI(); @Override void saveNewOptions(); @Override ObservableList<String> execute(final CodeSnippet codeSnippet); }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected String determineModuleName(final CodeSnippet codeSnippet) { String moduleName = codeSnippet.getProperties().get(MODULE_NAME_PROPERTY); if (moduleName == null || moduleName.isEmpty()) moduleName = "slideshowfx.Snippet"; return moduleName; } GoloSnippetExecutor(); @Override Parent getUI(final CodeSnippet codeSnippet); @Override Node getConfigurationUI(); @Override void saveNewOptions(); @Override ObservableList<String> execute(final CodeSnippet codeSnippet);  }