private void resolveProxyAttributes() { if (fNeedsLazyColorLoading && Display.getCurrent() != null) { for (int i= 0; i < fPropertyNamesColor.length; i++) { addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } fNeedsLazyColorLoading= false; } }
/** * 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(); }
private void resolveProxyAttributes() { if (fNeedsLazyColorLoading && Display.getCurrent() != null) { for (int i= 0; i < fPropertyNamesColor.length; i++) { addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } fNeedsLazyColorLoading= false; } }
/** * 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(); }
private void resolveProxyAttributes() { if (fNeedsLazyColorLoading && Display.getCurrent() != null) { for (int i= 0; i < fPropertyNamesColor.length; i++) { addToken(fPropertyNamesColor[i], fPropertyNamesBold[i], fPropertyNamesItalic[i], fPropertyNamesStrikethrough[i], fPropertyNamesUnderline[i]); } fNeedsLazyColorLoading= false; } }