don't use registry when it's not initialized yet (it will use only system properties anyway)

This commit is contained in:
Dmitry Batrak
2016-02-29 11:40:19 +03:00
parent 2d09bb8efa
commit 24db9a183a
3 changed files with 2 additions and 8 deletions
@@ -667,7 +667,7 @@ public class IdeEventQueue extends EventQueue {
static {
Field field = null;
if (Registry.is("trace.clipboard.events") && SystemInfo.isJavaVersionAtLeast("1.8.0_60")) {
if (Boolean.getBoolean("trace.clipboard.events") && SystemInfo.isJavaVersionAtLeast("1.8.0_60")) {
try {
field = InvocationEvent.class.getDeclaredField("runnable");
field.setAccessible(true);
@@ -127,7 +127,7 @@ public class AppUIUtil {
}
public static void registerBundledFonts() {
if (Registry.is("ide.register.bundled.fonts")) {
if (Boolean.getBoolean("ide.register.bundled.fonts")) {
registerFont("/fonts/Inconsolata.ttf");
registerFont("/fonts/SourceCodePro-Regular.ttf");
registerFont("/fonts/SourceCodePro-Bold.ttf");
@@ -128,8 +128,6 @@ ide.balloon.shadowEnabled=true
ide.balloon.shadow.size=15
ide.expansion.hints.enabled=true
ide.expansion.hints.on.all.screens=false
ide.register.bundled.fonts=true
ide.register.bundled.fonts.description=Disables automatic registration of bundled fonts: SourceCodePro, Inconsolata
editor.balloonHints=true
editor.mouseSelectionStateResetTimeout=1000
@@ -694,10 +692,6 @@ jdom.ignoring.whitespace=false
ide.mac.new.color.picker=false
trace.clipboard.events=false
trace.clipboard.events.description=Enable detection and logging of OS notifications about external clipboard changes
trace.clipboard.events.restartRequired=true
trace.focus.on.app.activation=false
trace.focus.on.app.activation.description=Focus tracing on application activation and deactivation
trace.focus.on.app.restartRequired=false