configtool/com.nokia.S60CT.CenRep.edit/src/s60cenrep/provider/BrowserKeyByName.java
changeset 0 30eb2d538f02
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configtool/com.nokia.S60CT.CenRep.edit/src/s60cenrep/provider/BrowserKeyByName.java	Thu Mar 11 18:39:02 2010 +0200
@@ -0,0 +1,37 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+package s60cenrep.provider;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+
+import cenrep.Key;
+
+public class BrowserKeyByName extends BrowserKeyAbstract {
+
+	public BrowserKeyByName(AdapterFactory adapterFactory) {
+		super(adapterFactory);
+	}
+
+	@Override
+	public String getText(Object object) {
+		String result = ((Key)object).getName();
+		return result == null || result.length() == 0 ?
+				getString("_UI_No_Name") :
+					result;
+	}
+
+}