From d32a925cb4dfe76e3de5f9f9fa590157123c1874 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Aug 2015 12:16:28 +0200 Subject: [client] Delete old SWT helper class --- .../org/openslx/dozmod/gui/helper/SwtUtil.java | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/SwtUtil.java diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/SwtUtil.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/SwtUtil.java deleted file mode 100644 index 6cb413cd..00000000 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/SwtUtil.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openslx.dozmod.gui.helper; - - -public class SwtUtil { - - /** - * Replace '&'-character by '&&', which prevents it from acting as a - * mnemonic in most controls. For convenience, it turns a null - * input into the empty string. - * - * @param input Input string to escape - * @return Escaped string - */ - public static String replaceMnemonics(String input) { - if (input == null || input.isEmpty()) - return ""; - if (input.indexOf('&') == -1) - return input; - return input.replace("&", "&&"); - } - -} -- cgit v1.2.3-55-g7522