classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: reimplemented BasicTextUI.getKeymapName


From: Robert Schuster
Subject: Re: [cp-patches] FYI: reimplemented BasicTextUI.getKeymapName
Date: Mon, 06 Jun 2005 13:32:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.8) Gecko/20050514

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,
> Index: javax/swing/plaf/basic/BasicTextUI.java
> ===================================================================
> RCS file: 
> /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
> retrieving revision 1.20
> diff -u -r1.20 BasicTextUI.java
> --- javax/swing/plaf/basic/BasicTextUI.java   3 Jun 2005 11:55:29 -0000       
> 1.20
> +++ javax/swing/plaf/basic/BasicTextUI.java   6 Jun 2005 09:48:11 -0000
> @@ -354,7 +354,11 @@
> 
>    protected String getKeymapName()
>    {
> -    return "BasicTextUI";
> +    String fullClassName = getClass().getName();
> +    int index = fullClassName.lastIndexOf('.');
> +    String className = fullClassName.substring(index + 1);
> +    System.err.println("getKeymapName: " + className);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Seems like some debugging output slipped in. :)

> +    return className;
>    }
> 
>    protected Keymap createKeymap()
> 

cu
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCpDQyG9cfwmwwEtoRAutFAJ4jlKnijg2r2SSfztTZam0Scp7fAACdH/7R
K7NxMRTLzYRryBiWV/s/XUc=
=ysKr
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]