Ignore:
Timestamp:
2009-01-01T18:28:53+01:00 (17 years ago)
Author:
stoecker
Message:

removed tab stop usage

Location:
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatConfigDialog.java

    r11555 r12778  
    5050/**
    5151 * Configuration download dialog.
    52  * 
     52 *
    5353 * @author Raphael Mack <ramack@raphael-mack.de>
    5454 *
     
    5858
    5959    public class IntegerTextField extends JTextField {
    60        
     60
    6161        final static String badchars = "-`~!@#$%^&*()_+=\\|\"':;?/>.<, ";
    62        
     62
    6363        public void processKeyEvent(KeyEvent ev) {
    6464
    6565            char c = ev.getKeyChar();
    66             if((Character.isLetter(c) && !ev.isAltDown()) 
     66            if((Character.isLetter(c) && !ev.isAltDown())
    6767               || badchars.indexOf(c) > -1) {
    6868                ev.consume();
     
    7474
    7575
    76        
     76
    7777    // the JOptionPane that contains this dialog. required for the closeDialog() method.
    7878    private JOptionPane optionPane;
     
    103103
    104104    private List<CommPortIdentifier> ports = new LinkedList<CommPortIdentifier>();
    105    
     105
    106106    private Dg100Config conf;
    107107
     
    132132        logFormat.add(formatPosTDS);
    133133        logFormat.add(formatPosTDSA);
    134        
     134
    135135        JPanel logPanel = new JPanel();
    136136        logPanel.setLayout(new BoxLayout(logPanel, BoxLayout.PAGE_AXIS));
     
    209209        minLogSpeed.setText("" + conf.getSpeedThres());
    210210        minLogDist.setText("" + conf.getDistThres());
    211        
     211
    212212        ButtonGroup group = new ButtonGroup();
    213213        group.add(aTime);
     
    261261        c.gridy = 6;
    262262        add(bMeters, c);
    263        
     263
    264264        group = new ButtonGroup();
    265265        group.add(cTime);
    266266        group.add(cDist);
    267        
     267
    268268        c.insets = new Insets(4,4,0,4);
    269269        c.gridwidth = 1;
     
    307307            JOptionPane.showMessageDialog(Main.parent, tr("Unknown logFormat"));
    308308        }
    309            
     309
    310310        if(conf.getSwATimeOrDist() == 0){
    311311            aTime.setSelected(true);
  • applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatDg100.java

    r11555 r12778  
    4545
    4646    public static final int TIMEOUT = 2000;
    47     public static final int TRACK_TYPE = 1; 
    48    
     47    public static final int TRACK_TYPE = 1;
     48
    4949    /** delete file: A0 A2 00 02 BC 01 00 BD B0 B3 */
    5050    private static byte dg100CmdSwitch2Nmea[] =
     
    111111      , (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00
    112112      , (byte) 0x00, (byte) 0xC0, (byte) 0xB0, (byte) 0xB3};
    113    
     113
    114114    private byte[] response = new byte[65536];
    115    
     115
    116116    private CommPortIdentifier portIdentifier;
    117117    private SerialPort port = null;
    118118
    119119    private boolean cancelled = false;
    120    
     120
    121121    public GlobalsatDg100(CommPortIdentifier portId){
    122122        this.portIdentifier = portId;
     
    178178        return result;
    179179    }
    180    
     180
    181181    public void deleteData() throws ConnectionException{
    182182        if(port == null){
     
    189189        }
    190190    }
    191    
     191
    192192    public void disconnect(){
    193193        if(port != null){
     
    210210        }
    211211    }
    212    
     212
    213213    private List<FileInfoRec> readFileInfoList() throws ConnectionException
    214214    {
     
    226226        }
    227227    }
    228  
     228
    229229    public List<GpsRec> readGpsRecList(List<FileInfoRec> fileInfoList) throws ConnectionException
    230230    {
    231231        int cnt = 0;
    232232        List<GpsRec> result = new ArrayList<GpsRec>(200);
    233        
     233
    234234        try{
    235235            for(FileInfoRec fileInfoRec:fileInfoList){
     
    243243        }
    244244    }
    245  
     245
    246246    private Response sendCmdDelFiles() throws IOException, UnsupportedCommOperationException
    247247    {
     
    317317        return Response.parseResponse(response, len);
    318318    }
    319    
     319
    320320    /**
    321321     *
     
    348348    }
    349349
    350    
     350
    351351    private int readResponse(byte[] response, int bytesToRead) throws IOException, UnsupportedCommOperationException
    352352    {
     
    396396            }
    397397            return ((cntBytTot > bytesToRead) ? bytesToRead : cntBytTot);
    398         }
     398    }
    399399        return -1;
    400400    }
  • applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatImportDialog.java

    r11555 r12778  
    3939/**
    4040 * Main download dialog.
    41  * 
     41 *
    4242 * @author Raphael Mack <ramack@raphael-mack.de>
    4343 *
    4444 */
    4545public class GlobalsatImportDialog extends JPanel {
    46        
     46
    4747    // the JOptionPane that contains this dialog. required for the closeDialog() method.
    4848    private JOptionPane optionPane;
     
    111111                    System.out.println("configureing the device");
    112112                    try{
    113                        
     113
    114114                        GlobalsatConfigDialog dialog = new GlobalsatConfigDialog(GlobalsatPlugin.dg100().getConfig());
    115115                        JOptionPane pane = new JOptionPane(dialog, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
     
    136136        add(configBtn, c);
    137137
    138        
     138
    139139        delete = new JCheckBox(tr("delete data after import"));
    140140        delete.setSelected(Main.pref.getBoolean("globalsat.deleteAfterDownload", false));
     
    167167
    168168    }
    169        
     169
    170170    public boolean deleteFilesAfterDownload(){
    171171        return delete.isSelected();
  • applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatPlugin.java

    r12707 r12778  
    106106        }
    107107    }
    108    
     108
    109109    class GlobalsatImportAction extends JosmAction{
    110110        public GlobalsatImportAction(){
Note: See TracChangeset for help on using the changeset viewer.