Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2007 Symbian Software Limited and others. |
2 |
* Copyright (c) 2007, 2009 Symbian Software Limited and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 7-16
Link Here
|
7 |
* |
7 |
* |
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* Bala Torati (Symbian) - Initial API and implementation |
9 |
* Bala Torati (Symbian) - Initial API and implementation |
|
|
10 |
* IBM Corporation |
10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
11 |
package org.eclipse.cdt.ui.templateengine.uitree; |
12 |
package org.eclipse.cdt.ui.templateengine.uitree; |
12 |
|
13 |
|
13 |
import java.text.MessageFormat; |
14 |
import com.ibm.icu.text.MessageFormat; |
14 |
import java.util.LinkedHashMap; |
15 |
import java.util.LinkedHashMap; |
15 |
import java.util.List; |
16 |
import java.util.List; |
16 |
import java.util.Map; |
17 |
import java.util.Map; |
Lines 118-128
Link Here
|
118 |
} |
119 |
} |
119 |
if(label==null || value==null) { |
120 |
if(label==null || value==null) { |
120 |
String msg= Messages.getString("UIElementTreeBuilderHelper.InvalidEmptyLabel"); //$NON-NLS-1$ |
121 |
String msg= Messages.getString("UIElementTreeBuilderHelper.InvalidEmptyLabel"); //$NON-NLS-1$ |
121 |
CUIPlugin.log(MessageFormat.format(msg, id), null); |
122 |
CUIPlugin.log(MessageFormat.format(msg, new Object[] {id}), null); |
122 |
} else { |
123 |
} else { |
123 |
if(value2name.put(value, label)!=null) { |
124 |
if(value2name.put(value, label)!=null) { |
124 |
String msg= Messages.getString("UIElementTreeBuilderHelper.InvalidNonUniqueValue"); //$NON-NLS-1$ |
125 |
String msg= Messages.getString("UIElementTreeBuilderHelper.InvalidNonUniqueValue"); //$NON-NLS-1$ |
125 |
CUIPlugin.log(MessageFormat.format(msg, id), null); |
126 |
CUIPlugin.log(MessageFormat.format(msg, new Object[] {id}), null); |
126 |
} |
127 |
} |
127 |
} |
128 |
} |
128 |
} |
129 |
} |
Lines 146-152
Link Here
|
146 |
// Note: This is not implemented now as we haven't found a use case |
147 |
// Note: This is not implemented now as we haven't found a use case |
147 |
// for generating UI pages as TABS in a single page. |
148 |
// for generating UI pages as TABS in a single page. |
148 |
} else { |
149 |
} else { |
149 |
String msg= MessageFormat.format(Messages.getString("UIElementTreeBuilderHelper.UnknownWidgetType0"), type); //$NON-NLS-1$ |
150 |
String msg= MessageFormat.format(Messages.getString("UIElementTreeBuilderHelper.UnknownWidgetType0"), new Object[] {type}); //$NON-NLS-1$ |
150 |
CUIPlugin.log(msg, null); |
151 |
CUIPlugin.log(msg, null); |
151 |
} |
152 |
} |
152 |
|
153 |
|