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 / +13 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.NumberFormat;
16
import java.text.ParseException;
17
15
import org.eclipse.hyades.trace.ui.internal.util.TraceMessages;
18
import org.eclipse.hyades.trace.ui.internal.util.TraceMessages;
16
import org.eclipse.hyades.ui.util.GridUtil;
19
import org.eclipse.hyades.ui.util.GridUtil;
17
import org.eclipse.jface.wizard.WizardPage;
20
import org.eclipse.jface.wizard.WizardPage;
Lines 176-184 Link Here
176
179
177
private void initData()
180
private void initData()
178
{
181
{
182
	NumberFormat numFormat = NumberFormat.getInstance();
179
	_wholeFileBtn.setSelection(true);
183
	_wholeFileBtn.setSelection(true);
180
	_startText.setText(String.valueOf(startValue));
184
	_startText.setText( numFormat.format( startValue ) );
181
	_stopText.setText(String.valueOf(stopValue));
185
	_stopText.setText( numFormat.format( stopValue ) );
182
	setRangeInputEnable(false);	
186
	setRangeInputEnable(false);	
183
}
187
}
184
188
Lines 214-221 Link Here
214
		{
218
		{
215
			try 
219
			try 
216
			{
220
			{
217
				startValue = Double.parseDouble(_startText.getText().trim());
221
				NumberFormat numFormat = NumberFormat.getInstance();
218
				stopValue = Double.parseDouble(_stopText.getText().trim());
222
				startValue = numFormat.parse( _startText.getText().trim() ).doubleValue();
223
				stopValue = numFormat.parse( _stopText.getText().trim() ).doubleValue();
224
				
219
				if (startValue > stopValue)
225
				if (startValue > stopValue)
220
					return TraceMessages.STRT_LS;
226
					return TraceMessages.STRT_LS;
221
				else if (startValue == stopValue)
227
				else if (startValue == stopValue)
Lines 230-235 Link Here
230
			catch (NumberFormatException nfe)
236
			catch (NumberFormatException nfe)
231
			{
237
			{
232
				return TraceMessages.INV_IMPS;
238
				return TraceMessages.INV_IMPS;
239
			} 
240
			catch (ParseException pe) {
241
				return TraceMessages.INV_IMPS;
233
			}
242
			}
234
		}
243
		}
235
}
244
}

Return to bug 143863