@Override public CloseableIterator<ScannerReport.ActiveRule> readActiveRules() { ensureInitialized(); return delegate.readActiveRules(); }
private void updateActiveRules() { activeRuleEditor.setText(""); StringBuilder builder = new StringBuilder(); try (CloseableIterator<ScannerReport.ActiveRule> activeRuleCloseableIterator = reader.readActiveRules()) { while (activeRuleCloseableIterator.hasNext()) { builder.append(activeRuleCloseableIterator.next().toString()).append("\n"); } activeRuleEditor.setText(builder.toString()); } }
@Override public CloseableIterator<ScannerReport.ActiveRule> readActiveRules() { ensureInitialized(); return delegate.readActiveRules(); }
private void updateActiveRules() { activeRuleEditor.setText(""); StringBuilder builder = new StringBuilder(); try (CloseableIterator<ScannerReport.ActiveRule> activeRuleCloseableIterator = reader.readActiveRules()) { while (activeRuleCloseableIterator.hasNext()) { builder.append(activeRuleCloseableIterator.next().toString()).append("\n"); } activeRuleEditor.setText(builder.toString()); } }