[java-atk-wrapper] AtkEditableText: fix formatting
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] AtkEditableText: fix formatting
- Date: Tue, 18 Nov 2014 14:28:46 +0000 (UTC)
commit 603f6bc189016932e375d3d9587afe8ec26e9d1a
Author: Magdalen Berns <m berns thismagpie com>
Date: Tue Nov 18 14:27:57 2014 +0000
AtkEditableText: fix formatting
spaces for tabs
.../org/GNOME/Accessibility/AtkEditableText.java | 103 ++++++++++----------
1 files changed, 52 insertions(+), 51 deletions(-)
---
diff --git a/wrapper/org/GNOME/Accessibility/AtkEditableText.java
b/wrapper/org/GNOME/Accessibility/AtkEditableText.java
index c5f97f4..2728e71 100644
--- a/wrapper/org/GNOME/Accessibility/AtkEditableText.java
+++ b/wrapper/org/GNOME/Accessibility/AtkEditableText.java
@@ -26,56 +26,57 @@ import javax.swing.text.*;
public class AtkEditableText extends AtkText {
- AccessibleEditableText acc_edt_text;
-
- public AtkEditableText (AccessibleContext ac) {
- super(ac);
- acc_edt_text = ac.getAccessibleEditableText();
- }
-
- public void set_text_contents (String s) {
- acc_edt_text.setTextContents(s);
- }
-
- public void insert_text (String s, int position) {
- if (position < 0) {
- position = 0;
- }
-
- acc_edt_text.insertTextAtIndex(position, s);
- }
-
- public void copy_text (int start, int end) {
- int n = acc_edt_text.getCharCount();
-
- if (start < 0) {
- start = 0;
- }
-
- if (end > n || end == -1) {
- end = n;
- } else if (end < -1) {
- end = 0;
- }
-
- String s = acc_edt_text.getTextRange(start, end);
- if (s != null) {
- StringSelection stringSel = new StringSelection(s);
- Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
- stringSel, stringSel);
- }
- }
-
- public void cut_text (int start, int end) {
- acc_edt_text.cut(start, end);
- }
-
- public void delete_text (int start, int end) {
- acc_edt_text.delete(start, end);
- }
-
- public void paste_text (int position) {
- acc_edt_text.paste(position);
- }
+ AccessibleEditableText acc_edt_text;
+
+ public AtkEditableText (AccessibleContext ac) {
+ super(ac);
+ acc_edt_text = ac.getAccessibleEditableText();
+ }
+
+ public void set_text_contents (String s) {
+ acc_edt_text.setTextContents(s);
+ }
+
+ public void insert_text (String s, int position) {
+ if (position < 0) {
+ position = 0;
+ }
+
+ acc_edt_text.insertTextAtIndex(position, s);
+ }
+
+ public void copy_text (int start, int end) {
+ int n = acc_edt_text.getCharCount();
+
+ if (start < 0) {
+ start = 0;
+ }
+
+ if (end > n || end == -1) {
+ end = n;
+ } else if (end < -1) {
+ end = 0;
+ }
+
+ String s = acc_edt_text.getTextRange(start, end);
+ if (s != null) {
+ StringSelection stringSel = new StringSelection(s);
+ Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSel,
+ stringSel
+ );
+ }
+ }
+
+ public void cut_text (int start, int end) {
+ acc_edt_text.cut(start, end);
+ }
+
+ public void delete_text (int start, int end) {
+ acc_edt_text.delete(start, end);
+ }
+
+ public void paste_text (int position) {
+ acc_edt_text.paste(position);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]