|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2009, 2010 Avaloq Evolution AG and others. |
2 |
* Copyright (c) 2009, 2012 Avaloq Evolution AG and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 7-12
Link Here
|
| 7 |
* |
7 |
* |
| 8 |
* Contributors: |
8 |
* Contributors: |
| 9 |
* Tom Eicher (Avaloq Evolution AG) - initial API and implementation |
9 |
* Tom Eicher (Avaloq Evolution AG) - initial API and implementation |
|
|
10 |
* Szymon Ptaszkiewicz (IBM Corporation) - ongoing development |
| 10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
| 11 |
package org.eclipse.jface.internal.text; |
12 |
package org.eclipse.jface.internal.text; |
| 12 |
|
13 |
|
|
Lines 487-492
Link Here
|
| 487 |
* <code>[0,fTabWidth]</code> |
488 |
* <code>[0,fTabWidth]</code> |
| 488 |
*/ |
489 |
*/ |
| 489 |
private int visualSizeIncrement(char character, int visual) { |
490 |
private int visualSizeIncrement(char character, int visual) { |
|
|
491 |
if (character > 255) |
| 492 |
return 2; |
| 490 |
if (character != '\t') |
493 |
if (character != '\t') |
| 491 |
return 1; |
494 |
return 1; |
| 492 |
if (fTabWidth <= 0) |
495 |
if (fTabWidth <= 0) |