[autocomplete] 97/143: JavaScript: Add E4X highlighting (toggled by property on JavaScriptTokenMaker). Fixed bug: In AutoComplete, catch AccessControlException in Util.java methods to play nicely in applets.
Benjamin Mesing
ben at alioth.debian.org
Sat Oct 19 12:53:25 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 36d66c60089a40a68677b68259c81025d05f8fc7
Author: bobbylight <robert at fifesoft.com>
Date: Sat Jul 14 21:56:41 2012 +0000
JavaScript: Add E4X highlighting (toggled by property on JavaScriptTokenMaker).
Fixed bug: In AutoComplete, catch AccessControlException in Util.java methods to play nicely in applets.
---
src/org/fife/ui/autocomplete/Util.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/org/fife/ui/autocomplete/Util.java b/src/org/fife/ui/autocomplete/Util.java
index af5b087..ceab7f5 100644
--- a/src/org/fife/ui/autocomplete/Util.java
+++ b/src/org/fife/ui/autocomplete/Util.java
@@ -15,6 +15,7 @@ import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.lang.reflect.Method;
import java.net.URI;
+import java.security.AccessControlException;
import org.fife.ui.rsyntaxtextarea.PopupWindowDecorator;
@@ -191,7 +192,12 @@ public class Util {
* @see #PROPERTY_ALLOW_DECORATED_AUTOCOMPLETE_WINDOWS
*/
public static boolean getShouldAllowDecoratingMainAutoCompleteWindows() {
- return Boolean.getBoolean(PROPERTY_ALLOW_DECORATED_AUTOCOMPLETE_WINDOWS);
+ try {
+ return Boolean.getBoolean(
+ PROPERTY_ALLOW_DECORATED_AUTOCOMPLETE_WINDOWS);
+ } catch (AccessControlException ace) { // We're in an applet.
+ return 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