Ignore:
Timestamp:
2007-08-05T21:54:31+02:00 (17 years ago)
Author:
christofd
Message:

use debug mode for offline test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/MetaAction.java

    r3343 r3963  
    1010import javax.swing.Icon;
    1111import javax.swing.JFrame;
     12
     13import org.openstreetmap.josm.Main;
    1214
    1315import livegps.LiveGpsData;
     
    100102        } else {
    101103            System.out.println("Surveyor: no gps data available!");
     104            // TEST for offline test only:
     105            if(Main.pref.getBoolean("surveyor.debug")) {
     106                for (SurveyorActionDescription action : actions) {
     107                    action.actionPerformed(new GpsActionEvent(e, 0, 0));
     108                }
     109            }
    102110        }
    103111        JFrame frame = SurveyorPlugin.getSurveyorFrame();
Note: See TracChangeset for help on using the changeset viewer.