From 0854df9f135cea4834dabe0abaf312b8e8c105a7 Mon Sep 17 00:00:00 2001 From: Felipe Heidrich Date: Fri, 22 Jan 2010 15:17:34 +0000 Subject: fix misspelling --- .../common/org/eclipse/swt/custom/StyledText.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets') 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; -- cgit v1.2.3