@Test public void hasEmptyImports() { final CodeSnippet snippet = new CodeSnippet(); snippet.getProperties().put(IMPORTS_PROPERTY, ""); assertFalse(snippetExecutor.hasImports(snippet)); }
protected boolean hasImports(final CodeSnippet codeSnippet) { final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY); return imports != null && !imports.isEmpty(); }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected boolean hasImports(final CodeSnippet codeSnippet) { final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY); return imports != null && !imports.isEmpty(); } }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected boolean hasImports(final CodeSnippet codeSnippet) { final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY); return imports != null && !imports.isEmpty(); } GoloSnippetExecutor(); }
GoloSnippetExecutor extends AbstractSnippetExecutor<GoloSnippetExecutorOptions> { protected boolean hasImports(final CodeSnippet codeSnippet) { final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY); return imports != null && !imports.isEmpty(); } 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 boolean hasImports(final CodeSnippet codeSnippet) { final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY); return imports != null && !imports.isEmpty(); } GoloSnippetExecutor(); @Override Parent getUI(final CodeSnippet codeSnippet); @Override Node getConfigurationUI(); @Override void saveNewOptions(); @Override ObservableList<String> execute(final CodeSnippet codeSnippet);  }