org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/Util.java
changeset 17 f1b0259bb410
child 50 0560e98b9bf6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/Util.java	Mon Jan 11 13:15:16 2010 -0800
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the License "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Symbian Foundation - initial contribution.
+ * Contributors:
+ * Description:
+ * Overview:
+ * Details:
+ * Platforms/Drives/Compatibility:
+ * Assumptions/Requirement/Pre-requisites:
+ * Failures and causes:
+ */
+package org.symbian.tools.wrttools.util;
+
+public class Util {
+
+	public static String removeSpaces(String widgetName) {
+		return widgetName != null ? widgetName.replace(" ", "") : null;
+	}
+
+	public static String removeNonAlphaNum(String projectName) {
+		return projectName != null ? projectName.replaceAll("[^a-zA-Z0-9 ]", "") : null;
+	}
+
+}