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

(-)editor/src/org/netbeans/modules/editor/impl/highlighting/ComposedTextHighlighting.java (-17 / +11 lines)
Lines 197-222 Link Here
197
            
197
            
198
            InputMethodHighlight imh = (InputMethodHighlight) sourceValue;
198
            InputMethodHighlight imh = (InputMethodHighlight) sourceValue;
199
            
199
            
200
            // Get the style attributes
200
            if (imh == InputMethodHighlight.SELECTED_CONVERTED_TEXT_HIGHLIGHT) {
201
            Map<TextAttribute, ?> style = imh.getStyle();
201
                LOG.fine("SELECTED_CONVERTED_TEXT_HIGHLIGHT Inverse ... " + imh); //NOI18N
202
            if (style == null) {
203
                style = Toolkit.getDefaultToolkit().mapInputMethodHighlight(imh);
204
                if (style == null) {
205
                    style = Collections.emptyMap();
206
                }
207
            }
208
            
209
            for(TextAttribute styleAttrKey : style.keySet()) {
210
                Object styleAttrValue = style.get(styleAttrKey);
211
                if (styleAttrKey == TextAttribute.INPUT_METHOD_UNDERLINE) {
212
                    LOG.fine("Underline ... " + imh); //NOI18N
213
                    return highlightUnderlined;
214
                } else if (styleAttrKey == TextAttribute.SWAP_COLORS) {
215
                    LOG.fine("Inverse ... " + imh); //NOI18N
216
                    return highlightInverse;
202
                    return highlightInverse;
203
            } else if (imh == InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT) {
204
                LOG.fine("SELECTED_RAW_TEXT_HIGHLIGHT Inverse ... " + imh); //NOI18N
205
                return highlightInverse;
206
            } else if (imh == InputMethodHighlight.UNSELECTED_CONVERTED_TEXT_HIGHLIGHT) {
207
                LOG.fine("UNSELECTED_CONVERTED_TEXT_HIGHLIGHT Underline ... " + imh); //NOI18N
208
                return highlightUnderlined;
209
            } else if (imh == InputMethodHighlight.UNSELECTED_RAW_TEXT_HIGHLIGHT) {
210
                LOG.fine("UNSELECTED_RAW_TEXT_HIGHLIGHT Underline ... " + imh); //NOI18N
211
                return highlightUnderlined;
217
                }
212
                }
218
            }
213
            }
219
        }
220
        
214
        
221
        LOG.fine("No translation for " + source);
215
        LOG.fine("No translation for " + source);
222
        return SimpleAttributeSet.EMPTY;
216
        return SimpleAttributeSet.EMPTY;

Return to bug 14549