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 155143
Collapse All | Expand All

(-)a/editor.lib/src/org/netbeans/editor/BaseCaret.java (-3 / +10 lines)
Lines 303-311 Link Here
303
303
304
            FontColorSettings fcs = MimeLookup.getLookup(org.netbeans.lib.editor.util.swing.DocumentUtilities.getMimeType(c)).lookup(FontColorSettings.class);
304
            FontColorSettings fcs = MimeLookup.getLookup(org.netbeans.lib.editor.util.swing.DocumentUtilities.getMimeType(c)).lookup(FontColorSettings.class);
305
            if (fcs != null) {
305
            if (fcs != null) {
306
                AttributeSet attribs = fcs.getFontColors(FontColorNames.CARET_COLOR_INSERT_MODE); //NOI18N
306
                if (overwriteMode) {
307
                if (attribs != null) {
307
                    AttributeSet attribs = fcs.getFontColors(FontColorNames.CARET_COLOR_OVERWRITE_MODE); //NOI18N
308
                    caretColor = (Color) attribs.getAttribute(StyleConstants.Foreground);
308
                    if (attribs != null) {
309
                        caretColor = (Color) attribs.getAttribute(StyleConstants.Foreground);
310
                    }
311
                } else {
312
                    AttributeSet attribs = fcs.getFontColors(FontColorNames.CARET_COLOR_INSERT_MODE); //NOI18N
313
                    if (attribs != null) {
314
                        caretColor = (Color) attribs.getAttribute(StyleConstants.Foreground);
315
                    }
309
                }
316
                }
310
            }
317
            }
311
            
318
            

Return to bug 155143