@Test public void noClassName() { final CodeSnippet snippet = new CodeSnippet(); assertEquals("Snippet", snippetExecutor.determineClassName(snippet)); }
protected String determineClassName(final CodeSnippet codeSnippet) { String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY); if (className == null || className.isEmpty()) className = "Snippet"; return className; }
ScalaSnippetExecutor extends AbstractSnippetExecutor<ScalaSnippetExecutorOptions> { protected String determineClassName(final CodeSnippet codeSnippet) { String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY); if (className == null || className.isEmpty()) className = "Snippet"; return className; } }
ScalaSnippetExecutor extends AbstractSnippetExecutor<ScalaSnippetExecutorOptions> { protected String determineClassName(final CodeSnippet codeSnippet) { String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY); if (className == null || className.isEmpty()) className = "Snippet"; return className; } ScalaSnippetExecutor(); }
ScalaSnippetExecutor extends AbstractSnippetExecutor<ScalaSnippetExecutorOptions> { protected String determineClassName(final CodeSnippet codeSnippet) { String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY); if (className == null || className.isEmpty()) className = "Snippet"; return className; } ScalaSnippetExecutor(); @Override Parent getUI(final CodeSnippet codeSnippet); @Override Node getConfigurationUI(); @Override void saveNewOptions(); @Override ObservableList<String> execute(final CodeSnippet codeSnippet); }
ScalaSnippetExecutor extends AbstractSnippetExecutor<ScalaSnippetExecutorOptions> { protected String determineClassName(final CodeSnippet codeSnippet) { String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY); if (className == null || className.isEmpty()) className = "Snippet"; return className; } ScalaSnippetExecutor(); @Override Parent getUI(final CodeSnippet codeSnippet); @Override Node getConfigurationUI(); @Override void saveNewOptions(); @Override ObservableList<String> execute(final CodeSnippet codeSnippet);  }