[autocomplete] 77/143: AutoComplete: Allow the two basic code completion windows to have decorators (i.e. drop shadows)
Benjamin Mesing
ben at alioth.debian.org
Sat Oct 19 12:53:21 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 b45410e45115d65380b27076dc2ec12d7a7a8ce0
Author: bobbylight <robert at fifesoft.com>
Date: Thu Apr 19 02:45:32 2012 +0000
AutoComplete: Allow the two basic code completion windows to have decorators (i.e. drop shadows)
---
src/org/fife/ui/autocomplete/AutoCompleteDescWindow.java | 8 ++++++++
src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/src/org/fife/ui/autocomplete/AutoCompleteDescWindow.java b/src/org/fife/ui/autocomplete/AutoCompleteDescWindow.java
index e77bb39..a7d5956 100644
--- a/src/org/fife/ui/autocomplete/AutoCompleteDescWindow.java
+++ b/src/org/fife/ui/autocomplete/AutoCompleteDescWindow.java
@@ -43,6 +43,8 @@ import javax.swing.border.Border;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
+import org.fife.ui.rsyntaxtextarea.PopupWindowDecorator;
+
/**
* The optional "description" window that describes the currently selected
@@ -185,6 +187,12 @@ class AutoCompleteDescWindow extends JWindow implements HyperlinkListener {
applyComponentOrientation(o);
setFocusableWindowState(false);
+ // Give apps a chance to decorate us with drop shadows, etc.
+ PopupWindowDecorator decorator = PopupWindowDecorator.get();
+ if (decorator!=null) {
+ decorator.decorate(this);
+ }
+
history = new ArrayList(1); // Usually small
historyPos = -1;
diff --git a/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java b/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
index 3f3ba2f..6020710 100644
--- a/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
+++ b/src/org/fife/ui/autocomplete/AutoCompletePopupWindow.java
@@ -40,6 +40,8 @@ import javax.swing.plaf.ListUI;
import javax.swing.text.Caret;
import javax.swing.text.JTextComponent;
+import org.fife.ui.rsyntaxtextarea.PopupWindowDecorator;
+
/**
* The actual popup window of choices. When visible, this window intercepts
@@ -165,6 +167,13 @@ class AutoCompletePopupWindow extends JWindow implements CaretListener,
contentPane.add(sp);
setContentPane(contentPane);
applyComponentOrientation(o);
+
+ // Give apps a chance to decorate us with drop shadows, etc.
+ PopupWindowDecorator decorator = PopupWindowDecorator.get();
+ if (decorator!=null) {
+ decorator.decorate(this);
+ }
+
pack();
setFocusableWindowState(false);
--
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