[autocomplete] 38/143: Javadoc in Java code completion now parses and converts "{@code xxx}", "{@link xxx}", etc. to hyperlinks appropriately, though the links don't actually go anywhere yet. Static field/method completions now always look in java.lang package even if it wasn't explicitly imported. Made "li" HTML bullets in code completion look nice (the default in JEditorPane is horrible).

Benjamin Mesing ben at alioth.debian.org
Sat Oct 19 12:53:13 UTC 2013


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

ben pushed a commit to branch master
in repository autocomplete.

commit d85e73ffaeb638bbaeb51d2125059e3795c9c1db
Author: bobbylight <robert at fifesoft.com>
Date:   Sun May 16 04:48:43 2010 +0000

    Javadoc in Java code completion now parses and converts "{@code xxx}", "{@link xxx}", etc. to hyperlinks appropriately, though the links don't actually go anywhere yet.
    Static field/method completions now always look in java.lang package even if it wasn't explicitly imported.
    Made "li" HTML bullets in code completion look nice (the default in JEditorPane is horrible).
---
 src/org/fife/ui/autocomplete/TipUtil.java     |    6 ++++++
 src/org/fife/ui/autocomplete/bullet_black.png |  Bin 0 -> 221 bytes
 2 files changed, 6 insertions(+)

diff --git a/src/org/fife/ui/autocomplete/TipUtil.java b/src/org/fife/ui/autocomplete/TipUtil.java
index ea06265..b1b8851 100644
--- a/src/org/fife/ui/autocomplete/TipUtil.java
+++ b/src/org/fife/ui/autocomplete/TipUtil.java
@@ -25,6 +25,7 @@ package org.fife.ui.autocomplete;
 import java.awt.Color;
 import java.awt.Font;
 import java.awt.SystemColor;
+import java.net.URL;
 import javax.swing.BorderFactory;
 import javax.swing.JEditorPane;
 import javax.swing.UIManager;
@@ -114,6 +115,11 @@ class TipUtil {
 		doc.getStyleSheet().addRule(
 				"body { font-family: " + font.getFamily() + "; font-size: "
 						+ font.getSize() + "pt; }");
+		URL url = TipUtil.class.getResource("bullet_black.png");
+		if (url!=null) {
+			doc.getStyleSheet().addRule(
+				"ul { list-style-image: " + url.toString() + "; }");
+		}
 
 	}
 
diff --git a/src/org/fife/ui/autocomplete/bullet_black.png b/src/org/fife/ui/autocomplete/bullet_black.png
new file mode 100644
index 0000000..b962e28
Binary files /dev/null and b/src/org/fife/ui/autocomplete/bullet_black.png differ

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



More information about the pkg-java-commits mailing list