diff options
Diffstat (limited to 'toolkit/test/accessibility/TextUpdateListener.java')
-rw-r--r-- | toolkit/test/accessibility/TextUpdateListener.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/toolkit/test/accessibility/TextUpdateListener.java b/toolkit/test/accessibility/TextUpdateListener.java index 0ce990144c67..eece44d5fc60 100644 --- a/toolkit/test/accessibility/TextUpdateListener.java +++ b/toolkit/test/accessibility/TextUpdateListener.java @@ -28,7 +28,7 @@ class TextUpdateListener implements TreeModelListener { // aha! we have an xText. So we can now check for // the various cases we support - XAccessibleText xText = + XAccessibleText xText = (XAccessibleText)aParent.getUserObject(); if( aIndices[0] == 0 ) @@ -48,8 +48,8 @@ class TextUpdateListener implements TreeModelListener // try // { // // aha! Selection: - // setSelection( xText, - // Integer.parseInt(m.group(1)), + // setSelection( xText, + // Integer.parseInt(m.group(1)), // Integer.parseInt(m.group(2)) ); // } // catch( NumberFormatException f ) @@ -75,7 +75,7 @@ class TextUpdateListener implements TreeModelListener throws com.sun.star.lang.IndexOutOfBoundsException { // is this text editable? if not, fudge you and return - XAccessibleEditableText xEdit = + XAccessibleEditableText xEdit = (XAccessibleEditableText) UnoRuntime.queryInterface ( XAccessibleEditableText.class, xText); if (xEdit == null) @@ -99,7 +99,7 @@ class TextUpdateListener implements TreeModelListener nFront++; int nBack = 0; while( (nBack < nMinLength) && - ( sNew.charAt(sNew.length()-nBack-1) == + ( sNew.charAt(sNew.length()-nBack-1) == sOld.charAt(sOld.length()-nBack-1) ) ) nBack++; if( nFront + nBack > nMinLength ) @@ -110,7 +110,7 @@ class TextUpdateListener implements TreeModelListener String sDel = sOld.substring( nFront, sOld.length() - nBack ); String sIns = sNew.substring( nFront, sNew.length() - nBack ); - System.out.println("edit text: " + + System.out.println("edit text: " + sOld.substring(0, nFront) + " [ " + sDel + " -> " + sIns + " ] " + sOld.substring(sOld.length() - nBack) ); @@ -150,14 +150,14 @@ class TextUpdateListener implements TreeModelListener } // /** replace the given node with a new xText node */ - // void updateNode( XAccessibleText xText, + // void updateNode( XAccessibleText xText, // DefaultMutableTreeNode aNode ) // { // // create a new node // DefaultMutableTreeNode aNew = newTextTreeNode( xText ); - // + // // // get parent (must be DefaultMutableTreeNode) - // DefaultMutableTreeNode aParent = + // DefaultMutableTreeNode aParent = // (DefaultMutableTreeNode)aNode.getParent(); // if( aParent != null ) // { |