[autocomplete] 64/143: Moving PopupWindowDecorator support to RSyntaxTextArea, so FocusableTips can be made to have drop shadows as well.

Benjamin Mesing ben at alioth.debian.org
Sat Oct 19 12:53:18 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 ba668ec27ce5918358a249aa98ce7bb13520eece
Author: bobbylight <robert at fifesoft.com>
Date:   Sat Jan 22 00:35:50 2011 +0000

    Moving PopupWindowDecorator support to RSyntaxTextArea, so FocusableTips can be made to have drop shadows as well.
---
 .../ParameterizedCompletionChoicesWindow.java      |    3 +-
 .../ParameterizedCompletionDescriptionToolTip.java |    2 +
 .../fife/ui/autocomplete/PopupWindowDecorator.java |   82 --------------------
 3 files changed, 4 insertions(+), 83 deletions(-)

diff --git a/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java b/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
index e54b895..690cd96 100644
--- a/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
+++ b/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
@@ -34,7 +34,6 @@ import java.util.Collections;
 import java.util.Comparator;
 import java.util.Iterator;
 import java.util.List;
-
 import javax.swing.DefaultListModel;
 import javax.swing.JList;
 import javax.swing.JScrollPane;
@@ -42,6 +41,8 @@ import javax.swing.JWindow;
 import javax.swing.SwingUtilities;
 import javax.swing.text.JTextComponent;
 
+import org.fife.ui.rsyntaxtextarea.PopupWindowDecorator;
+
 
 /**
  * A small popup window offering a list of likely choices for a parameter
diff --git a/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java b/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
index d795b76..618aef4 100644
--- a/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
+++ b/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
@@ -55,6 +55,8 @@ import javax.swing.text.JTextComponent;
 import javax.swing.text.Position;
 import javax.swing.text.Highlighter.Highlight;
 
+import org.fife.ui.rsyntaxtextarea.PopupWindowDecorator;
+
 
 /**
  * A "tool tip" that displays information on the function or method currently
diff --git a/src/org/fife/ui/autocomplete/PopupWindowDecorator.java b/src/org/fife/ui/autocomplete/PopupWindowDecorator.java
deleted file mode 100644
index 0765210..0000000
--- a/src/org/fife/ui/autocomplete/PopupWindowDecorator.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 01/11/2011
- *
- * PopupWindowDecorator.java - Hook allowing hosting applications to decorate
- * JWindows created by the AutoComplete library.
- * Copyright (C) 2011 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 javax.swing.JWindow;
-
-
-/**
- * A hook allowing hosting applications to decorate JWindows created by the
- * AutoComplete library.  For example, you could use the
- * <a href="http://jgoodies.com/">JGoodies</a> library to add drop shadows
- * to the windows. 
- *
- * @author Robert Futrell
- * @version 1.0
- */
-public abstract class PopupWindowDecorator {
-
-	/**
-	 * The singleton instance of this class.
-	 */
-	private static PopupWindowDecorator decorator;
-
-
-	/**
-	 * Callback called whenever an appropriate JWindow is created by the
-	 * AutoComplete library.  Implementations can decorate the window however
-	 * they see fit.
-	 *
-	 * @param window The newly-created window.
-	 */
-	public abstract void decorate(JWindow window);
-
-
-	/**
-	 * Returns the singleton instance of this class.  This should only be
-	 * called on the EDT.
-	 *
-	 * @return The singleton instance of this class, or <code>null</code>
-	 *         for none.
-	 * @see #set(PopupWindowDecorator)
-	 */
-	public static PopupWindowDecorator get() {
-		return decorator;
-	}
-
-
-	/**
-	 * Sets the singleton instance of this class.  This should only be called
-	 * on the EDT.
-	 *
-	 * @param decorator The new instance of this class.  This may be
-	 *        <code>null</code>.
-	 * @see #get()
-	 */
-	public static void set(PopupWindowDecorator decorator) {
-		PopupWindowDecorator.decorator = decorator;
-	}
-
-
-}
\ 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