org.eclipse.jface.text.source.LineNumberRulerColumn Java Examples

The following examples show how to use org.eclipse.jface.text.source.LineNumberRulerColumn. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractThemeableEditor.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
@Override
protected void initializeLineNumberRulerColumn(LineNumberRulerColumn rulerColumn)
{
	super.initializeLineNumberRulerColumn(rulerColumn);
	if (rulerColumn instanceof CommonLineNumberChangeRulerColumn)
	{
		((CommonLineNumberChangeRulerColumn) rulerColumn).showLineNumbers(isLineNumberVisible());
	}
	this.fThemeableEditorColorsExtension.initializeLineNumberRulerColumn(rulerColumn);
}
 
Example #2
Source File: ScriptEditor.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Creates a new line number ruler column that is appropriately initialized.
 * @param annotationModel 
 * 
 * @return the created line number column
 */
private IVerticalRulerColumn createLineNumberRulerColumn( )
{
	LineNumberRulerColumn column = new LineNumberRulerColumn( );

	column.setForeground( JSSourceViewerConfiguration.getColorByCategory( PreferenceNames.P_LINENUMBER_COLOR ) );
	return column;
}
 
Example #3
Source File: ExpressionBuilder.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Creates a new line number ruler column that is appropriately initialized.
 * 
 * @param annotationModel
 * 
 * @return the created line number column
 */
private IVerticalRulerColumn createLineNumberRulerColumn( )
{
	LineNumberRulerColumn column = new LineNumberRulerColumn( );

	column.setForeground( JSSourceViewerConfiguration.getColorByCategory( PreferenceNames.P_LINENUMBER_COLOR ) );
	return column;
}
 
Example #4
Source File: ThemeableEditorExtension.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public void initializeLineNumberRulerColumn(LineNumberRulerColumn rulerColumn)
{
	this.fLineColumn = rulerColumn;
}
 
Example #5
Source File: PyEdit.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected void initializeLineNumberRulerColumn(LineNumberRulerColumn rulerColumn) {
    super.initializeLineNumberRulerColumn(rulerColumn);
    this.onInitializeLineNumberRulerColumn.call(rulerColumn);
}