@Override protected String getStrikethroughKey(String colorKey) { if ((ANNOTATION_COLOR_KEY).equals(colorKey)) return ANNOTATION_BASE_KEY + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX; return super.getStrikethroughKey(colorKey); }
protected String getStrikethroughKey(String colorKey) { if ((ANNOTATION_COLOR_KEY).equals(colorKey)) return ANNOTATION_BASE_KEY + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX; return super.getStrikethroughKey(colorKey); }
@Override protected String getStrikethroughKey(String colorKey) { if ((ANNOTATION_COLOR_KEY).equals(colorKey)) return ANNOTATION_BASE_KEY + PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_STRIKETHROUGH_SUFFIX; return super.getStrikethroughKey(colorKey); }
/** * Must be called after the constructor has been called. */ public final void initialize() { fPropertyNamesColor= getTokenProperties(); int length= fPropertyNamesColor.length; fPropertyNamesBold= new String[length]; fPropertyNamesItalic= new String[length]; fPropertyNamesStrikethrough= new String[length]; fPropertyNamesUnderline= new String[length]; for (int i= 0; i < length; i++) { fPropertyNamesBold[i]= getBoldKey(fPropertyNamesColor[i]); fPropertyNamesItalic[i]= getItalicKey(fPropertyNamesColor[i]); fPropertyNamesStrikethrough[i]= getStrikethroughKey(fPropertyNamesColor[i]); fPropertyNamesUnderline[i]= getUnderlineKey(fPropertyNamesColor[i]); } fNeedsLazyColorLoading= Display.getCurrent() == null; for (int i= 0; i < length; i++) { if (fNeedsLazyColorLoading) addTokenWithProxyAttribute(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); else addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } initializeRules(); }
/** * Must be called after the constructor has been called. */ public final void initialize() { fPropertyNamesColor= getTokenProperties(); int length= fPropertyNamesColor.length; fPropertyNamesBold= new String[length]; fPropertyNamesItalic= new String[length]; fPropertyNamesStrikethrough= new String[length]; fPropertyNamesUnderline= new String[length]; for (int i= 0; i < length; i++) { fPropertyNamesBold[i]= getBoldKey(fPropertyNamesColor[i]); fPropertyNamesItalic[i]= getItalicKey(fPropertyNamesColor[i]); fPropertyNamesStrikethrough[i]= getStrikethroughKey(fPropertyNamesColor[i]); fPropertyNamesUnderline[i]= getUnderlineKey(fPropertyNamesColor[i]); } fNeedsLazyColorLoading= Display.getCurrent() == null; for (int i= 0; i < length; i++) { if (fNeedsLazyColorLoading) addTokenWithProxyAttribute(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); else addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } initializeRules(); }
/** * Must be called after the constructor has been called. */ public final void initialize() { fPropertyNamesColor= getTokenProperties(); int length= fPropertyNamesColor.length; fPropertyNamesBold= new String[length]; fPropertyNamesItalic= new String[length]; fPropertyNamesStrikethrough= new String[length]; fPropertyNamesUnderline= new String[length]; for (int i= 0; i < length; i++) { fPropertyNamesBold[i]= getBoldKey(fPropertyNamesColor[i]); fPropertyNamesItalic[i]= getItalicKey(fPropertyNamesColor[i]); fPropertyNamesStrikethrough[i]= getStrikethroughKey(fPropertyNamesColor[i]); fPropertyNamesUnderline[i]= getUnderlineKey(fPropertyNamesColor[i]); } fNeedsLazyColorLoading= Display.getCurrent() == null; for (int i= 0; i < length; i++) { if (fNeedsLazyColorLoading) addTokenWithProxyAttribute(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); else addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } initializeRules(); }