# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java --- cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java Base (1.6) +++ cnd/highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProvider.java Locally Modified (Based On 1.6) @@ -231,12 +231,14 @@ } Set opened = new HashSet(); for (JTextComponent component : panes) { + if (component.isShowing()) { Document doc = component.getDocument(); CsmFile file = CsmUtilities.getCsmFile(doc, false); if (file != null && file.isParsed()) { opened.add(file); } } + } List toDelete = new ArrayList(); for(Iterator it = annotations.keySet().iterator(); it.hasNext();){ CsmFile file = it.next(); @@ -268,6 +270,7 @@ private void checkNodes(List panes){ for (JTextComponent component : panes) { + if (component.isShowing()) { Document doc = component.getDocument(); CsmFile file = CsmUtilities.getCsmFile(doc, false); if (file != null && file.isParsed()) { @@ -276,6 +279,7 @@ } } } + } private boolean isNeededUpdateAnnotations(BaseDocument doc, CsmFile file) { if (doc == null || file == null) {