Ignore:
Timestamp:
2010-09-15T18:56:19+02:00 (14 years ago)
Author:
stoecker
Message:

remove tabs

Location:
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/ConfigKeys.java

    r19282 r23191  
    11/* Copyright (c) 2008, Henrik Niehaus
    22 * All rights reserved.
    3  * 
     3 *
    44 * Redistribution and use in source and binary forms, with or without
    55 * modification, are permitted provided that the following conditions are met:
    6  * 
     6 *
    77 * 1. Redistributions of source code must retain the above copyright notice,
    88 *    this list of conditions and the following disclaimer.
    9  * 2. Redistributions in binary form must reproduce the above copyright notice, 
    10  *    this list of conditions and the following disclaimer in the documentation 
     9 * 2. Redistributions in binary form must reproduce the above copyright notice,
     10 *    this list of conditions and the following disclaimer in the documentation
    1111 *    and/or other materials provided with the distribution.
    12  * 3. Neither the name of the project nor the names of its 
    13  *    contributors may be used to endorse or promote products derived from this 
     12 * 3. Neither the name of the project nor the names of its
     13 *    contributors may be used to endorse or promote products derived from this
    1414 *    software without specific prior written permission.
    15  * 
     15 *
    1616 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1717 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbDownloadLoop.java

    r19282 r23191  
    7878
    7979                // auto download if configured
    80                 if( Main.pref.getBoolean(ConfigKeys.OSB_AUTO_DOWNLOAD) && !Main.pref.getBoolean(ConfigKeys.OSB_API_OFFLINE) && 
     80                if( Main.pref.getBoolean(ConfigKeys.OSB_AUTO_DOWNLOAD) && !Main.pref.getBoolean(ConfigKeys.OSB_API_OFFLINE) &&
    8181                        plugin != null && plugin.getDialog() != null && plugin.getDialog().isDialogShowing() ) {
    8282                    if(countdown < 0) {
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java

    r22684 r23191  
    8484            UploadAction.registerUploadHook(uploadHook);
    8585        } else {
    86                 MapView.removeLayerChangeListener(this);
    87                 UploadAction.unregisterUploadHook(uploadHook);
    88                 uploadHook = null;
     86            MapView.removeLayerChangeListener(this);
     87            UploadAction.unregisterUploadHook(uploadHook);
     88            uploadHook = null;
    8989        }
    9090    }
     
    231231    public void layerRemoved(Layer oldLayer) {
    232232        if(oldLayer == layer) {
    233                 MapView.removeLayerChangeListener(this);
    234                 MapView.removeLayerChangeListener(dialog);
     233            MapView.removeLayerChangeListener(this);
     234            MapView.removeLayerChangeListener(dialog);
    235235            layer = null;
    236236        }
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/AddCommentAction.java

    r19282 r23191  
    4949
    5050    private EditAction editAction = new EditAction();
    51    
     51
    5252    private String comment;
    53    
     53
    5454    private Node node;
    5555
     
    7373                OsbPlugin.loadIcon("add_comment22.png"),
    7474                history, l);
    75        
     75
    7676        if(comment == null) {
    7777            cancelled = true;
     
    8484        editAction.execute(node, comment);
    8585    }
    86    
     86
    8787    @Override
    8888    public String toString() {
    8989        return tr("Comment: " + node.get("note") + " - " + comment);
    9090    }
    91    
     91
    9292    @Override
    9393    public AddCommentAction clone() {
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/CloseIssueAction.java

    r19282 r23191  
    5151    private CloseAction closeAction = new CloseAction();
    5252    private EditAction commentAction = new EditAction();
    53    
     53
    5454    private String comment;
    55    
     55
    5656    private Node node;
    5757
     
    7474                OsbPlugin.loadIcon("icon_valid22.png"),
    7575                history, l);
    76        
     76
    7777        if(comment == null) {
    7878            cancelled = true;
     
    8989        closeAction.execute(node);
    9090    }
    91    
     91
    9292    @Override
    9393    public String toString() {
    9494        return tr("Close: " + node.get("note") + " - Comment: " + comment);
    9595    }
    96    
     96
    9797    @Override
    9898    public CloseIssueAction clone() {
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java

    r19282 r23191  
    5151
    5252    private String result;
    53    
     53
    5454    private Point p;
    55    
     55
    5656    private NewAction newAction = new NewAction();
    57    
     57
    5858    public NewIssueAction(OsbPlugin plugin, Point p) {
    5959        super(tr("New issue"), plugin.getDialog());
     
    7777                OsbPlugin.loadIcon("icon_error_add22.png"),
    7878                history, l);
    79        
     79
    8080        if(result == null) {
    8181            cancelled = true;
     
    9696        }
    9797    }
    98    
     98
    9999    @Override
    100100    public String toString() {
    101101        return tr("Create: " + result);
    102102    }
    103    
     103
    104104    @Override
    105105    public OsbAction clone() {
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/PointToNewIssueAction.java

    r19285 r23191  
    4646
    4747    private JToggleButton button;
    48    
     48
    4949    private OsbPlugin plugin;
    5050
    5151    private Cursor previousCursor;
    52    
     52
    5353    public PointToNewIssueAction(JToggleButton button, OsbPlugin plugin) {
    5454        super(tr("New issue"));
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/dialogs/TextInputDialog.java

    r17872 r23191  
    11/* Copyright (c) 2008, Henrik Niehaus
    22 * All rights reserved.
    3  * 
     3 *
    44 * Redistribution and use in source and binary forms, with or without
    55 * modification, are permitted provided that the following conditions are met:
    6  * 
     6 *
    77 * 1. Redistributions of source code must retain the above copyright notice,
    88 *    this list of conditions and the following disclaimer.
    9  * 2. Redistributions in binary form must reproduce the above copyright notice, 
    10  *    this list of conditions and the following disclaimer in the documentation 
     9 * 2. Redistributions in binary form must reproduce the above copyright notice,
     10 *    this list of conditions and the following disclaimer in the documentation
    1111 *    and/or other materials provided with the distribution.
    12  * 3. Neither the name of the project nor the names of its 
    13  *    contributors may be used to endorse or promote products derived from this 
     12 * 3. Neither the name of the project nor the names of its
     13 *    contributors may be used to endorse or promote products derived from this
    1414 *    software without specific prior written permission.
    15  * 
     15 *
    1616 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1717 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     
    7474    private JLabel lblText;
    7575    private JPanel pnlMain;
    76    
     76
    7777    private String value = null;
    78    
     78
    7979    private TextInputDialog() {
    8080        initGUI();
     
    8888            }
    8989        });
    90        
     90
    9191        btnOk.addActionListener(new ActionListener() {
    9292            public void actionPerformed(ActionEvent e) {
     
    9494            }
    9595        });
    96        
     96
    9797        btnCancel.addActionListener(new ActionListener() {
    9898            public void actionPerformed(ActionEvent e) {
     
    101101        });
    102102    }
    103    
     103
    104104    private void okPressed() {
    105105        value = input.getText();
     
    155155        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    156156    }
    157    
     157
    158158    public static String showDialog(JComponent parent, String title, String text, List<String> history, HistoryChangedListener l) {
    159159        return showDialog(parent, title, text, null, history, l);
    160160    }
    161    
     161
    162162    /**
    163163     * Opens a text input dialog and returns the entered text
     
    180180        int y = (int) (p.getY() +  (double)(parent.getHeight() - tid.getHeight()) / 2);
    181181        tid.setLocation(x, y);
    182        
     182
    183183        //tid.pack();
    184184        tid.setVisible(true);
     
    189189        return this.value;
    190190    }
    191    
     191
    192192    public void setDescription(String text) {
    193193        lblText.setText(text);
    194194    }
    195    
     195
    196196    public void setHistory(List<String> history) {
    197197        input.setHistory(history);
     
    199199        value = null;
    200200    }
    201    
     201
    202202    public void addHistoryChangedListener(HistoryChangedListener l) {
    203203        ((ComboBoxHistory)input.getModel()).addHistoryChangedListener(l);
    204204    }
    205    
     205
    206206    public void setIcon(Icon icon) {
    207207        lblIcon.setIcon(icon);
Note: See TracChangeset for help on using the changeset viewer.