Ignore:
Timestamp:
08/22/08 10:54:44 (16 years ago)
Author:
ra33
Message:

Added more import and mail stuff... including text importer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/charts/TimeSeries.java

    r235 r247  
    124124                                AttributeValuePair avp = new AttributeValuePair(t.getText());
    125125                                if (avp != null) {
    126                                         Double attribute = avp.getDoubleAttribute();
    127                                         Double value = avp.getDoubleValue();
    128                                         // If the data is not valid move to the next item
    129                                         if (value == null)
     126                                        Double attribute = null;
     127                                        try {
     128                                                attribute = avp.getDoubleAttribute();
     129                                        } catch (NumberFormatException e) {
     130                                        }
     131                                        Double value = null;
     132                                        try {
     133                                                // If the data is not valid move to the next item
     134                                                value = avp.getDoubleValue();
     135                                        } catch (NumberFormatException e) {
    130136                                                continue;
     137                                        }
     138
    131139                                        try {
    132140                                                RegularTimePeriod rtp = null;
     
    176184                                                newSeries.add(rtp, value);
    177185                                                foundData = true;
    178                                                 if(newColor == null)
     186                                                if (newColor == null)
    179187                                                        newColor = i.getColor();
    180188                                        } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.