protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.BOOKMARK_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.GUARDED_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.GUARDED_COLORING); }
protected Coloring getColoring(DrawContext ctx) { return ctx.getEditorUI().getColoring(SettingsNames.BOOKMARK_COLORING); }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.INC_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.SELECTION_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.INC_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.SELECTION_COLORING); } if (coloring != null) { coloring.apply(ctx); } }
public void updateContext(DrawContext ctx) { int pos = ctx.getFragmentOffset(); if (pos >= blocks[curInd] && pos < blocks[curInd + 1]) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.HIGHLIGHT_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } } }
public void updateContext(DrawContext ctx) { int pos = ctx.getFragmentOffset(); if (pos >= blocks[curInd] && pos < blocks[curInd + 1]) { if (coloring == null) { coloring = ctx.getEditorUI().getColoring(SettingsNames.HIGHLIGHT_SEARCH_COLORING); } if (coloring != null) { coloring.apply(ctx); } } }
/** Creates a new instance of FoldingToolTip */ public FoldingToolTip(View view, EditorUI editorUI) { this.view = view; this.editorUI = editorUI; Coloring defColoring = editorUI.getColoring(SettingsNames.DEFAULT_COLORING); Color foreColor = (defColoring != null) ? defColoring.getForeColor() : null; setBorder(new LineBorder((foreColor == null) ? Color.BLACK : foreColor)); setOpaque(true); }
protected Font getColoringFont(){ if (font != null) return font; Coloring foldColoring = getEditorUI().getColoring(SettingsNames.CODE_FOLDING_BAR_COLORING); if (foldColoring != null){ if (foldColoring.getFont()!=null){ font = foldColoring.getFont(); return font; } } font = getDefaultColoringFont(); return font; }
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart( JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring( path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
protected Color getForeColor(){ if (foreColor != null) return foreColor; Coloring foldColoring = getEditorUI().getColoring(SettingsNames.CODE_FOLDING_BAR_COLORING); if (foldColoring != null && foldColoring.getForeColor()!=null){ foreColor = foldColoring.getForeColor(); return foreColor; } foreColor = getDefaultForeColor(); return foreColor; }
protected Color getBackColor(){ if (backColor != null) return backColor; Coloring foldColoring = getEditorUI().getColoring(SettingsNames.CODE_FOLDING_BAR_COLORING); if (foldColoring != null && foldColoring.getBackColor()!=null){ backColor = foldColoring.getBackColor(); return backColor; } backColor = getDefaultBackColor(); return backColor; }
protected Color getForeColor(){ if (foreColor != null) return foreColor; EditorUI editorUI = getEditorUI(); if (editorUI!=null){ Coloring foldColoring = editorUI.getColoring(SettingsNames.CODE_FOLDING_COLORING); if (foldColoring != null && foldColoring.getForeColor()!=null){ foreColor = foldColoring.getForeColor(); return foreColor; } } foreColor = getDefaultForeColor(); return foreColor; }
protected Coloring getMethodColoring(DrawContext ctx) { TokenContextPath path = ctx.getTokenContextPath().replaceStart(JavaLayerTokenContext.contextPath); return ctx.getEditorUI().getColoring(path.getFullTokenName(JavaLayerTokenContext.METHOD)); }
protected Color getBackColor(){ if (backColor != null) return backColor; EditorUI editorUI = getEditorUI(); if (editorUI!=null){ Coloring foldColoring = editorUI.getColoring(SettingsNames.CODE_FOLDING_COLORING); if (foldColoring != null && foldColoring.getBackColor()!=null){ backColor = foldColoring.getBackColor(); return backColor; } } backColor = getDefaultBackColor(); return backColor; }
protected Font getColoringFont(){ if (font != null) return font; EditorUI editorUI = getEditorUI(); if (editorUI!=null){ Coloring foldColoring = editorUI.getColoring(SettingsNames.CODE_FOLDING_COLORING); if (foldColoring != null){ if (foldColoring.getFont()!=null){ font = foldColoring.getFont(); return font; } } } font = getDefaultColoringFont(); return font; }
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); } } } } }