@Override protected StyleRange prepareStyleRange(StyleRange styleRange, boolean applyColors) { if (!applyColors && styleRange.background != null) { styleRange= super.prepareStyleRange(styleRange, applyColors); styleRange.borderStyle= SWT.BORDER_DOT; return styleRange; } return super.prepareStyleRange(styleRange, applyColors); }
@Override protected StyleRange prepareStyleRange(StyleRange styleRange, boolean applyColors) { if (!applyColors && styleRange.background != null) { styleRange= super.prepareStyleRange(styleRange, applyColors); styleRange.borderStyle= SWT.BORDER_DOT; return styleRange; } return super.prepareStyleRange(styleRange, applyColors); }
@Override protected StyleRange prepareStyleRange(StyleRange styleRange, boolean applyColors) { if (!applyColors && styleRange.background != null) { styleRange= super.prepareStyleRange(styleRange, applyColors); styleRange.borderStyle= SWT.BORDER_DOT; return styleRange; } return super.prepareStyleRange(styleRange, applyColors); }
/** * Override preparation of style range to add border dot about highlight regions that don't have colors applied * * @see org.eclipse.jface.viewers.StyledCellLabelProvider#prepareStyleRange(org.eclipse.swt.custom.StyleRange, * boolean) */ @Override protected StyleRange prepareStyleRange(StyleRange styleRange, boolean applyColors) { boolean addBorder = !applyColors && styleRange.background != null; styleRange = super.prepareStyleRange(styleRange, applyColors); if (addBorder) { styleRange.borderStyle = SWT.BORDER_DOT; } return styleRange; }