This is an automated email from the git hooks/post-receive script.

ben pushed a commit to branch master
in repository autocomplete.

commit 303a01a8a0fed6d3a6f3a0a7e54d6cbbb0dc42dd
Author: bobbylight <[email protected]>
Date:   Sat Jun 13 21:52:36 2009 +0000

    Beginning of Lisp syntax highlighting.  Fixing some incorrect copyrights in 
files.  Other small updates.
---
 build.xml                                                 |    6 +++---
 distfiles/readme.txt                                      |   11 ++++++++++-
 src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java |   10 +++++++---
 3 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/build.xml b/build.xml
index 017d12e..3b40889 100644
--- a/build.xml
+++ b/build.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8" ?>
 
 <!-- 
 
@@ -11,7 +11,7 @@
                3. make-javadoc:    Creates the javadoc for RSyntaxTextArea.
 
        Author:   Robert Futrell
-       Version:  0.2
+       Version:  0.3
        Date:     22feb2009
 
 -->
@@ -23,7 +23,7 @@
 
 
        <!-- Set global properties for this build. -->
-       <property name="version"          value="0.2"/>
+       <property name="version"          value="0.3"/>
        <property name="source-dir"       location="src"/>
        <property name="class-dir"        location="ant-classes"/>
        <property name="dist-dir"         location="dist"/>
diff --git a/distfiles/readme.txt b/distfiles/readme.txt
index b6a9a42..cc20627 100644
--- a/distfiles/readme.txt
+++ b/distfiles/readme.txt
@@ -35,6 +35,15 @@ robert -at- fifesoft dot com.
          Project home page, which contains general information and example
          source code.
 
-     * http://javadoc.fifesoft.com/autocomplete/
+    * http://javadoc.fifesoft.com/autocomplete/
          API documentation for the package.  Note that this *will* change as
          the library matures.
+
+* Thanks
+
+  The left and right arrow icons in the Help "tooltip" window are from the
+  "Silk" icon set, under the Creative Commons 3.0 License.  This is a wonderful
+  icon set, found here:
+  
+     http://famfamfam.com/lab/icons/silk/
+
diff --git a/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java 
b/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
index 09e2c80..c0807c2 100644
--- a/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
+++ b/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
@@ -120,6 +120,11 @@ class AutoCompletePopupWindow extends JWindow implements 
CaretListener,
                        oldEnter, oldTab, oldHome, oldEnd, oldPageUp, 
oldPageDown,
                        oldCtrlC;
 
+       /**
+        * The space between the caret and the completion popup.
+        */
+       private static final int VERTICAL_SPACE                 = 1;
+
 
        /**
         * Constructor.
@@ -589,9 +594,9 @@ class AutoCompletePopupWindow extends JWindow implements 
CaretListener,
                // Try putting our stuff "below" the caret first.  We assume 
that the
                // entire height of our stuff fits on the screen one way or the 
other.
                aboveCaret = false;
-               int y = r.y + r.height + 10;
+               int y = r.y + r.height + VERTICAL_SPACE;
                if (y+totalH>screenSize.height) {
-                       y = r.y - 10 - getHeight();
+                       y = r.y - VERTICAL_SPACE - getHeight();
                        aboveCaret = true;
                }
 
@@ -666,7 +671,6 @@ class AutoCompletePopupWindow extends JWindow implements 
CaretListener,
                ActionMap am = comp.getActionMap();
 
                putBackAction(im, am, KeyEvent.VK_ESCAPE, oldEscape);
-               putBackAction(im, am, KeyEvent.VK_ESCAPE, oldEscape);
                putBackAction(im, am, KeyEvent.VK_UP, oldUp);
                putBackAction(im, am, KeyEvent.VK_DOWN, oldDown);
                putBackAction(im, am, KeyEvent.VK_LEFT, oldLeft);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/autocomplete.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to