Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 143863 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/hyades/trace/ui/internal/wizard/ImportTraceRangeUI.java (-4 / +14 lines)
Lines 12-17 Link Here
12
12
13
package org.eclipse.hyades.trace.ui.internal.wizard;
13
package org.eclipse.hyades.trace.ui.internal.wizard;
14
14
15
import java.text.ParseException;
16
15
import org.eclipse.hyades.trace.ui.internal.util.TraceMessages;
17
import org.eclipse.hyades.trace.ui.internal.util.TraceMessages;
16
import org.eclipse.hyades.ui.util.GridUtil;
18
import org.eclipse.hyades.ui.util.GridUtil;
17
import org.eclipse.jface.wizard.WizardPage;
19
import org.eclipse.jface.wizard.WizardPage;
Lines 28-33 Link Here
28
import org.eclipse.swt.widgets.Label;
30
import org.eclipse.swt.widgets.Label;
29
import org.eclipse.swt.widgets.Text;
31
import org.eclipse.swt.widgets.Text;
30
32
33
import com.ibm.icu.text.NumberFormat;
34
31
/**
35
/**
32
 *  Page 2 of the base resource import-from-zip Wizard.
36
 *  Page 2 of the base resource import-from-zip Wizard.
33
 *  which specific the range of file to be imported.
37
 *  which specific the range of file to be imported.
Lines 176-184 Link Here
176
180
177
private void initData()
181
private void initData()
178
{
182
{
183
	NumberFormat numFormat = NumberFormat.getInstance();
179
	_wholeFileBtn.setSelection(true);
184
	_wholeFileBtn.setSelection(true);
180
	_startText.setText(String.valueOf(startValue));
185
	_startText.setText( numFormat.format( startValue ) );
181
	_stopText.setText(String.valueOf(stopValue));
186
	_stopText.setText( numFormat.format( stopValue ) );
182
	setRangeInputEnable(false);	
187
	setRangeInputEnable(false);	
183
}
188
}
184
189
Lines 214-221 Link Here
214
		{
219
		{
215
			try 
220
			try 
216
			{
221
			{
217
				startValue = Double.parseDouble(_startText.getText().trim());
222
				NumberFormat numFormat = NumberFormat.getInstance();
218
				stopValue = Double.parseDouble(_stopText.getText().trim());
223
				startValue = numFormat.parse( _startText.getText().trim() ).doubleValue();
224
				stopValue = numFormat.parse( _stopText.getText().trim() ).doubleValue();
225
				
219
				if (startValue > stopValue)
226
				if (startValue > stopValue)
220
					return TraceMessages.STRT_LS;
227
					return TraceMessages.STRT_LS;
221
				else if (startValue == stopValue)
228
				else if (startValue == stopValue)
Lines 230-235 Link Here
230
			catch (NumberFormatException nfe)
237
			catch (NumberFormatException nfe)
231
			{
238
			{
232
				return TraceMessages.INV_IMPS;
239
				return TraceMessages.INV_IMPS;
240
			} 
241
			catch (ParseException pe) {
242
				return TraceMessages.INV_IMPS;
233
			}
243
			}
234
		}
244
		}
235
}
245
}

Return to bug 143863