[autocomplete] 34/143: Java code completion - Fixed display of parent type declaration in field completions. Java code completion - Now you can get completions for static members, e.g. "String.<ctrl+space>". Refactored completion cell renderer code some more.

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 18b7c8e03062143c7764ee9b82a6ab792b3025a7
Author: bobbylight <robert at fifesoft.com>
Date:   Fri Apr 30 04:09:47 2010 +0000

    Java code completion - Fixed display of parent type declaration in field completions.
    Java code completion - Now you can get completions for static members, e.g. "String.<ctrl+space>".
    Refactored completion cell renderer code some more.
---
 src/org/fife/ui/autocomplete/EmptyIcon.java |   62 +++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/src/org/fife/ui/autocomplete/EmptyIcon.java b/src/org/fife/ui/autocomplete/EmptyIcon.java
new file mode 100644
index 0000000..e40d89c
--- /dev/null
+++ b/src/org/fife/ui/autocomplete/EmptyIcon.java
@@ -0,0 +1,62 @@
+/*
+ * 04/29/2010
+ *
+ * EmptyIcon.java - The canonical icon that paints nothing.
+ * Copyright (C) 2010 Robert Futrell
+ * robert_futrell at users.sourceforge.net
+ * http://fifesoft.com/rsyntaxtextarea
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA.
+ */
+package org.fife.ui.autocomplete;
+
+import java.awt.Component;
+import java.awt.Graphics;
+import java.io.Serializable;
+import javax.swing.Icon;
+
+
+/**
+ * A standard icon that doesn't paint anything.  This can be used to take
+ * up an icon's space when no icon is specified.
+ *
+ * @author Robert Futrell
+ * @version 1.0
+ */
+public class EmptyIcon implements Icon, Serializable {
+
+	private int size;
+
+
+	public EmptyIcon(int size) {
+		this.size = size;
+	}
+
+
+	public int getIconHeight() {
+		return size;
+	}
+
+
+	public int getIconWidth() {
+		return size;
+	}
+
+
+	public void paintIcon(Component c, Graphics g, int x, int y) {
+	}
+
+
+}
\ No newline at end of file

-- 
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