Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 62939 Details for
Bug 143863
TVT3.2:TCT739: DA: incorrect decimal point in Import - Profiling File dialog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
bug143863.txt (text/plain), 2.00 KB, created by
Paul Klicnik
on 2007-04-04 11:17:39 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Paul Klicnik
Created:
2007-04-04 11:17:39 EDT
Size:
2.00 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.trace.ui >Index: src/org/eclipse/hyades/trace/ui/internal/wizard/ImportTraceRangeUI.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/wizard/ImportTraceRangeUI.java,v >retrieving revision 1.5 >diff -u -r1.5 ImportTraceRangeUI.java >--- src/org/eclipse/hyades/trace/ui/internal/wizard/ImportTraceRangeUI.java 15 Mar 2007 19:46:13 -0000 1.5 >+++ src/org/eclipse/hyades/trace/ui/internal/wizard/ImportTraceRangeUI.java 4 Apr 2007 15:16:32 -0000 >@@ -12,6 +12,9 @@ > > package org.eclipse.hyades.trace.ui.internal.wizard; > >+import java.text.NumberFormat; >+import java.text.ParseException; >+ > import org.eclipse.hyades.trace.ui.internal.util.TraceMessages; > import org.eclipse.hyades.ui.util.GridUtil; > import org.eclipse.jface.wizard.WizardPage; >@@ -176,9 +179,10 @@ > > private void initData() > { >+ NumberFormat numFormat = NumberFormat.getInstance(); > _wholeFileBtn.setSelection(true); >- _startText.setText(String.valueOf(startValue)); >- _stopText.setText(String.valueOf(stopValue)); >+ _startText.setText( numFormat.format( startValue ) ); >+ _stopText.setText( numFormat.format( stopValue ) ); > setRangeInputEnable(false); > } > >@@ -214,8 +218,10 @@ > { > try > { >- startValue = Double.parseDouble(_startText.getText().trim()); >- stopValue = Double.parseDouble(_stopText.getText().trim()); >+ NumberFormat numFormat = NumberFormat.getInstance(); >+ startValue = numFormat.parse( _startText.getText().trim() ).doubleValue(); >+ stopValue = numFormat.parse( _stopText.getText().trim() ).doubleValue(); >+ > if (startValue > stopValue) > return TraceMessages.STRT_LS; > else if (startValue == stopValue) >@@ -230,6 +236,9 @@ > catch (NumberFormatException nfe) > { > return TraceMessages.INV_IMPS; >+ } >+ catch (ParseException pe) { >+ return TraceMessages.INV_IMPS; > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 143863
:
42664
| 62939 |
62955