diff options
author | Felipe Heidrich | 2010-01-22 15:17:34 +0000 |
---|---|---|
committer | Felipe Heidrich | 2010-01-22 15:17:34 +0000 |
commit | 0854df9f135cea4834dabe0abaf312b8e8c105a7 (patch) | |
tree | 8cf556a2ac2199ecaad1f63a0e087dfc30a55287 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common | |
parent | 9047fcb7cafee5c57fffcf255284a58a027e9c3c (diff) | |
download | eclipse.platform.swt-0854df9f135cea4834dabe0abaf312b8e8c105a7.tar.gz eclipse.platform.swt-0854df9f135cea4834dabe0abaf312b8e8c105a7.tar.xz eclipse.platform.swt-0854df9f135cea4834dabe0abaf312b8e8c105a7.zip |
fix misspelling
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index 9c80db7164..526c04489b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -3489,7 +3489,7 @@ public boolean getBlockSelection() { checkWidget(); return blockSelection; } -Rectangle getBlockSelectonPosition() { +Rectangle getBlockSelectionPosition() { int firstLine = getLineIndex(blockYAnchor - getVerticalScrollOffset()); int lastLine = getLineIndex(blockYLocation - getVerticalScrollOffset()); if (firstLine > lastLine) { @@ -3536,14 +3536,14 @@ public Rectangle getBlockSelectionBounds() { return rect; } Rectangle getBlockSelectionRectangle() { - Rectangle rect = getBlockSelectonPosition(); + Rectangle rect = getBlockSelectionPosition(); rect.y = getLinePixel(rect.y); rect.width = rect.width - rect.x; rect.height = getLinePixel(rect.height + 1) - rect.y; return rect; } String getBlockSelectionText(String delimiter) { - Rectangle rect = getBlockSelectonPosition(); + Rectangle rect = getBlockSelectionPosition(); int firstLine = rect.y; int lastLine = rect.height; int left = rect.x; @@ -4667,7 +4667,7 @@ public Point getSelectionRange() { public int[] getSelectionRanges() { checkWidget(); if (blockSelection && blockXLocation != -1) { - Rectangle rect = getBlockSelectonPosition(); + Rectangle rect = getBlockSelectionPosition(); int firstLine = rect.y; int lastLine = rect.height; int left = rect.x; @@ -5514,7 +5514,7 @@ int insertBlockSelectionText(String text, boolean fillWithSpaces) { } int firstLine, lastLine, left, right; if (blockXLocation != -1) { - Rectangle rect = getBlockSelectonPosition(); + Rectangle rect = getBlockSelectionPosition(); firstLine = rect.y; lastLine = rect.height; left = rect.x; @@ -5541,7 +5541,7 @@ int insertBlockSelectionText(String text, boolean fillWithSpaces) { } void insertBlockSelectionText(char key, int action) { if (key == SWT.CR || key == SWT.LF) return; - Rectangle rect = getBlockSelectonPosition(); + Rectangle rect = getBlockSelectionPosition(); int firstLine = rect.y; int lastLine = rect.height; int left = rect.x; |