public static Object getTokenColoring(TokenContextPath tcp, TokenCategory tokenIDOrCategory, boolean printingSet, boolean evaluateEvaluators) { return getColoring(BaseKit.class, tcp.getFullTokenName(tokenIDOrCategory), printingSet, evaluateEvaluators); }
public static Object getTokenColoring(TokenContextPath tcp, TokenCategory tokenIDOrCategory, boolean printingSet, boolean evaluateEvaluators) { return getColoring(BaseKit.class, tcp.getFullTokenName(tokenIDOrCategory), printingSet, evaluateEvaluators); }
/** Create new token-coloring evaluator. * @param tokenContextPath token-context path for which the evaluator * is being created. The parent path is retrieved and full token name * will be got on it for the token-id or category provided. * @param tokenIDOrCategory token-id or category for which the evaluator * is being created. * @param coloring additional coloring that, if non-null will be applied * to the coloring of the parentTokenID to form the resulting coloring. * @param printingSet whether this evaluator is for component or printing set coloring */ public TokenColoringEvaluator(TokenContextPath tokenContextPath, TokenCategory tokenIDOrCategory, Coloring coloring, boolean printingSet) { this(tokenContextPath.getParent().getFullTokenName(tokenIDOrCategory), coloring, printingSet); }
/** * Create new token-coloring evaluator. * * @param tokenContextPath * token-context path for which the evaluator is being * created. The parent path is retrieved and full token name * will be got on it for the token-id or category provided. * @param tokenIDOrCategory * token-id or category for which the evaluator is being * created. * @param coloring * additional coloring that, if non-null will be applied to * the coloring of the parentTokenID to form the resulting * coloring. * @param printingSet * whether this evaluator is for component or printing set * coloring */ public TokenColoringEvaluator(TokenContextPath tokenContextPath, TokenCategory tokenIDOrCategory, Coloring coloring, boolean printingSet) { this(tokenContextPath.getParent().getFullTokenName(tokenIDOrCategory), coloring, printingSet); }
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart( JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring( path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
tokenCategories[k], printingSet, evaluateEvaluators); if (coloring != null) { String fullName = allPaths[j].getFullTokenName(tokenCategories[k]); coloringMap.put(fullName, coloring); tokenIDs[k], printingSet, evaluateEvaluators); if (coloring != null) { String fullName = allPaths[j].getFullTokenName(tokenIDs[k]); coloringMap.put(fullName, coloring);
Object coloring = getTokenColoring(allPaths[j], tokenCategories[k], printingSet, evaluateEvaluators); if (coloring != null) { String fullName = allPaths[j].getFullTokenName(tokenCategories[k]); coloringMap.put(fullName, coloring); Object coloring = getTokenColoring(allPaths[j], tokenIDs[k], printingSet, evaluateEvaluators); if (coloring != null) { String fullName = allPaths[j].getFullTokenName(tokenIDs[k]); coloringMap.put(fullName, coloring);
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart(JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring(path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
printingSet); if (catColoring != null) { String fullName = tcp.getFullTokenName(tokenCategories[j]); SettingsUtil.setColoring(settingsMap, fullName, catColoring, printingSet); printingSet); if (tokenColoring != null) { String fullName = tcp.getFullTokenName(tokenIDs[j]); SettingsUtil.setColoring(settingsMap, fullName, tokenColoring, printingSet);
public void updateContext(DrawContext ctx) { // Get the token type and docColorings TokenID tokenID = ctx.getTokenID(); TokenContextPath tcp = ctx.getTokenContextPath(); if (tokenID != null && tcp != null) { // Get the coloring according the name of the token String fullName = tcp.getFullTokenName(tokenID); Coloring c = ctx.getEditorUI().getColoring(fullName); if (c != null) { c.apply(ctx); } else { // Token coloring null, try category TokenCategory cat = tokenID.getCategory(); if (cat != null) { fullName = tcp.getFullTokenName(cat); c = ctx.getEditorUI().getColoring(fullName); if (c != null) { c.apply(ctx); } } } } }
public void updateContext(DrawContext ctx) { // Get the token type and docColorings TokenID tokenID = ctx.getTokenID(); TokenContextPath tcp = ctx.getTokenContextPath(); if (tokenID != null && tcp != null) { // Get the coloring according the name of the token String fullName = tcp.getFullTokenName(tokenID); Coloring c = ctx.getEditorUI().getColoring(fullName); if (c != null) { c.apply(ctx); } else { // Token coloring null, try category TokenCategory cat = tokenID.getCategory(); if (cat != null) { fullName = tcp.getFullTokenName(cat); c = ctx.getEditorUI().getColoring(fullName); if (c != null) { c.apply(ctx); } } } } }
Object catColoring = getTokenColoring(tcp, tokenCategories[j], printingSet); if (catColoring != null) { String fullName = tcp.getFullTokenName(tokenCategories[j]); SettingsUtil.setColoring(settingsMap, fullName, catColoring, printingSet); Object tokenColoring = getTokenColoring(tcp, tokenIDs[j], printingSet); if (tokenColoring != null) { String fullName = tcp.getFullTokenName(tokenIDs[j]); SettingsUtil.setColoring(settingsMap, fullName, tokenColoring, printingSet);