Search in sources :

Example 1 with LineNumberChangeRulerColumn

use of org.eclipse.jface.text.source.LineNumberChangeRulerColumn in project eclipse.platform.text by eclipse.

the class AbstractDecoratedTextEditor method createLineNumberRulerColumn.

/**
 * Creates a new line number ruler column that is appropriately initialized.
 *
 * @return the created line number column
 */
protected IVerticalRulerColumn createLineNumberRulerColumn() {
    /*
		 * Left for compatibility. See LineNumberColumn.
		 */
    fLineNumberRulerColumn = new LineNumberChangeRulerColumn(getSharedColors());
    ((IChangeRulerColumn) fLineNumberRulerColumn).setHover(createChangeHover());
    initializeLineNumberRulerColumn(fLineNumberRulerColumn);
    return fLineNumberRulerColumn;
}
Also used : IChangeRulerColumn(org.eclipse.jface.text.source.IChangeRulerColumn) LineNumberChangeRulerColumn(org.eclipse.jface.text.source.LineNumberChangeRulerColumn)

Example 2 with LineNumberChangeRulerColumn

use of org.eclipse.jface.text.source.LineNumberChangeRulerColumn in project eclipse.platform.text by eclipse.

the class LineNumberColumn method updateCharacterMode.

private void updateCharacterMode(IPreferenceStore store, IVerticalRulerColumn column) {
    if (column instanceof LineNumberChangeRulerColumn) {
        LineNumberChangeRulerColumn lncrc = (LineNumberChangeRulerColumn) column;
        lncrc.setDisplayMode(store.getBoolean(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_CHARACTER_MODE));
    }
}
Also used : LineNumberChangeRulerColumn(org.eclipse.jface.text.source.LineNumberChangeRulerColumn)

Aggregations

LineNumberChangeRulerColumn (org.eclipse.jface.text.source.LineNumberChangeRulerColumn)2 IChangeRulerColumn (org.eclipse.jface.text.source.IChangeRulerColumn)1