@Test public void testRemoveAllTrackingIcons_Simple() throws Exception { RTextArea textArea = new RTextArea(PLAIN_TEXT); Gutter gutter = new Gutter(textArea); Icon icon = new TestIcon(); textArea.setSize(200, 200); gutter.addLineTrackingIcon(0, icon); Point p = new Point(0, 4); Assert.assertEquals(1, gutter.getTrackingIcons(p).length); gutter.removeAllTrackingIcons(); Assert.assertEquals(0, gutter.getTrackingIcons(p).length); }
/** * Removes all error notifiers from this code editor. */ public void removeErrorNotifiers() { // numberView.removeErrorNotifiers(); // editor.removeErrorNotifier(); getScrollPane().getGutter().removeAllTrackingIcons(); }
/** * * * É chamado sempre que o programa é recompilado para criar os * ícones de ponto de parada desativados nas linhas que são paráveis * * @param linhasParaveis */ public void criarPontosDeParadaDesativados(Set<Integer> linhasParaveis){ //remove todos os pontos de parada existentes Set<Integer> pontosAtivados = getLinhasComPontoDeParadaAtivados(); RSyntaxUtilities.getGutter(this).removeAllTrackingIcons(); pontosDeParada.clear(); for (Integer linha : linhasParaveis) { adicionaPontoDeParada(linha); if(pontosAtivados.contains(linha)){ alternaStatusDoPontoDeParada(linha); } } }