@Override protected void postprocess(PresentationData presentation) { if (hasProblemFileBeneath()) { presentation.setAttributesKey(CodeInsightColors.ERRORS_ATTRIBUTES); } Color fgColor = getFileStatus().getColor(); if (valueIsCut()) { fgColor = CopyPasteManager.CUT_COLOR; } if (presentation.getForcedTextForeground() == null) { presentation.setForcedTextForeground(fgColor); } if (hasProblemFileBeneath()) { presentation.setAttributesKey(CodeInsightColors.ERRORS_ATTRIBUTES); } }
protected final boolean apply(PresentationData presentation, @Nullable PresentationData before) { setIcon(presentation.getIcon(false)); myName = presentation.getPresentableText(); myColor = presentation.getForcedTextForeground(); boolean updated = before == null || !presentation.equals(before); if (myUpdatedPresentation == null) { myUpdatedPresentation = createPresentation(); } myUpdatedPresentation.copyFrom(presentation); if (myTemplatePresentation != null) { myUpdatedPresentation.applyFrom(myTemplatePresentation); } updated |= myUpdatedPresentation.isChanged(); myUpdatedPresentation.setChanged(false); return updated; }