This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 121766
Collapse All | Expand All

(-)cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java (+4 lines)
Lines 231-242 Link Here
231
        }
231
        }
232
        Set<CsmFile> opened = new HashSet<CsmFile>();
232
        Set<CsmFile> opened = new HashSet<CsmFile>();
233
        for (JTextComponent component : panes) {
233
        for (JTextComponent component : panes) {
234
            if (component.isShowing()) {
234
            Document doc = component.getDocument();
235
            Document doc = component.getDocument();
235
            CsmFile file = CsmUtilities.getCsmFile(doc, false);
236
            CsmFile file = CsmUtilities.getCsmFile(doc, false);
236
            if (file != null && file.isParsed()) {
237
            if (file != null && file.isParsed()) {
237
                opened.add(file);
238
                opened.add(file);
238
            }
239
            }
239
        }
240
        }
241
        }
240
        List<CsmFile> toDelete = new ArrayList<CsmFile>();
242
        List<CsmFile> toDelete = new ArrayList<CsmFile>();
241
        for(Iterator<CsmFile> it = annotations.keySet().iterator(); it.hasNext();){
243
        for(Iterator<CsmFile> it = annotations.keySet().iterator(); it.hasNext();){
242
            CsmFile file = it.next();
244
            CsmFile file = it.next();
Lines 268-273 Link Here
268
270
269
    private void checkNodes(List<? extends JTextComponent> panes){
271
    private void checkNodes(List<? extends JTextComponent> panes){
270
        for (JTextComponent component : panes) {
272
        for (JTextComponent component : panes) {
273
            if (component.isShowing()) {
271
            Document doc = component.getDocument();
274
            Document doc = component.getDocument();
272
            CsmFile file = CsmUtilities.getCsmFile(doc, false);
275
            CsmFile file = CsmUtilities.getCsmFile(doc, false);
273
            if (file != null && file.isParsed()) {
276
            if (file != null && file.isParsed()) {
Lines 276-281 Link Here
276
            }
279
            }
277
        }
280
        }
278
    }
281
    }
282
    }
279
283
280
    private boolean isNeededUpdateAnnotations(BaseDocument doc, CsmFile file) {
284
    private boolean isNeededUpdateAnnotations(BaseDocument doc, CsmFile file) {
281
        if (doc == null || file == null) {
285
        if (doc == null || file == null) {

Return to bug 121766