From 9ea035067d9a2ade81f019aeab036d39e3ee7ab2 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 19 Jul 2018 11:16:54 +0200 Subject: [PATCH] make private to avoid attempt to serialize (java.awt.Color is not serializable) --- .../src/org/intellij/plugins/xpathView/Config.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/Config.java b/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/Config.java index f91098a83ddc..3f6f760887ca 100644 --- a/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/Config.java +++ b/plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/Config.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2002-2005 Sascha Weinreuter * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,8 +34,8 @@ public class Config { public SearchScope SEARCH_SCOPE = new SearchScope(); public boolean MATCH_RECURSIVELY = false; - public TextAttributes attributes = new TextAttributes(null, new Color(255, 213, 120), null, null, Font.PLAIN); - public TextAttributes contextAttributes = new TextAttributes(null, new Color(194, 255, 212), null, null, Font.PLAIN); + private final TextAttributes attributes = new TextAttributes(null, new Color(255, 213, 120), null, null, Font.PLAIN); + private final TextAttributes contextAttributes = new TextAttributes(null, new Color(194, 255, 212), null, null, Font.PLAIN); public boolean scrollToFirst = true; public boolean bUseContextAtCursor = true; public boolean bHighlightStartTagOnly = true; @@ -49,18 +49,10 @@ public class Config { return attributes; } - public void setHighlightBackground(Color bg) { - attributes.setBackgroundColor(bg); - } - public TextAttributes getContextAttributes() { return contextAttributes; } - public void setContextBackground(Color bg) { - contextAttributes.setBackgroundColor(bg); - } - public void setScrollToFirst(boolean b) { scrollToFirst = b; }