private EditorCell getFoldedCell() { assert hasFoldedCell(); if (myFoldedCell == null) { EditorCell_Constant foldedCell = new EditorCell_Constant(getContext(), getSNode(), FOLDED_TEXT); Style style = foldedCell.getStyle(); // COLORS: Remove hardcoded colors & font style.set(StyleAttributes.FONT_STYLE, Font.BOLD); style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, Color.lightGray); style.set(StyleAttributes.TEXT_COLOR, Color.darkGray); style.set(StyleAttributes.SELECTABLE, Boolean.FALSE); setFoldedCell(foldedCell); } return myFoldedCell; }
@Override public void relayoutImpl() { super.relayoutImpl(); myBraceTextLine.relayout(); myWidth += myBraceTextLine.getWidth() - getOverlapping(); }