From e2f565b82554b93539a075d4ea51d0de40e7d80e Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 25 Jul 2014 18:19:04 -0400 Subject: [PATCH] clean up indents and formatting --- .../processing/app/platform/LinuxPlatform.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/processing/app/platform/LinuxPlatform.java b/app/src/processing/app/platform/LinuxPlatform.java index 8360cc49a..85d2b4e9a 100644 --- a/app/src/processing/app/platform/LinuxPlatform.java +++ b/app/src/processing/app/platform/LinuxPlatform.java @@ -48,18 +48,19 @@ public class LinuxPlatform extends Platform { "placement. For more background, please read the wiki:\n" + "http://wiki.processing.org/w/Supported_Platforms#Linux", null); } - //Set x11 WM_CLASS property which is - //used as the application name by Gnome3 - //and other window managers - try{ + + // Set x11 WM_CLASS property which is used as the application + // name by Gnome3 and other window managers. + // https://github.com/processing/processing/issues/2534 + try { Toolkit xToolkit = Toolkit.getDefaultToolkit(); java.lang.reflect.Field awtAppClassNameField = - xToolkit.getClass().getDeclaredField("awtAppClassName"); + xToolkit.getClass().getDeclaredField("awtAppClassName"); awtAppClassNameField.setAccessible(true); awtAppClassNameField.set(xToolkit, "Processing"); - } - catch(Exception e){ - //In case the implementation details change... + + } catch(Exception e) { + // In case the implementation details change e.printStackTrace(); } }