Ignore:
Timestamp:
2013-07-17T00:01:49+02:00 (13 years ago)
Author:
stoecker
Message:

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r5958 r6070  
    8585    private CloseOpenChangesetsAction closeChangesetAction;
    8686    private LaunchChangesetManagerAction launchChangesetManagerAction;
    87    
     87
    8888    private ChangesetDialogPopup popupMenu;
    8989
     
    204204        launchChangesetManagerAction = new LaunchChangesetManagerAction();
    205205        cbInSelectionOnly.addItemListener(launchChangesetManagerAction);
    206        
     206
    207207        popupMenu = new ChangesetDialogPopup(lstInActiveDataLayer, lstInSelection);
    208208
     
    210210        lstInSelection.addMouseListener(popupMenuLauncher);
    211211        lstInActiveDataLayer.addMouseListener(popupMenuLauncher);
    212        
     212
    213213        createLayout(pnl, false, Arrays.asList(new SideButton[] {
    214214            new SideButton(selectObjectsAction, false),
  • trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java

    r5958 r6070  
    7575    private SelectAction selectAction = new SelectAction();
    7676    private SelectAndZoomAction selectAndZoomAction = new SelectAndZoomAction();
    77    
     77
    7878    public CommandStackDialog(final MapFrame mapFrame) {
    7979        super(tr("Command Stack"), "commandstack", tr("Open a list of all commands (undo buffer)."),
     
    8989        undoTree.getSelectionModel().addTreeSelectionListener(undoSelectionListener);
    9090        InputMapUtils.unassignCtrlShiftUpDown(undoTree, JComponent.WHEN_FOCUSED);
    91        
     91
    9292        redoTree.addMouseListener(new MouseEventHandler());
    9393        redoTree.setRootVisible(false);
     
    124124            new SideButton(redoAction)
    125125        }));
    126        
     126
    127127        InputMapUtils.addEnterAction(undoTree, selectAndZoomAction);
    128128        InputMapUtils.addEnterAction(redoTree, selectAndZoomAction);
     
    303303        return node;
    304304    }
    305    
     305
    306306    /**
    307307     * Return primitives that are affected by some command
    308      * @param path GUI elements 
    309      * @return collection of affected primitives, onluy usable ones 
     308     * @param path GUI elements
     309     * @return collection of affected primitives, onluy usable ones
    310310     */
    311311    protected static FilteredCollection<OsmPrimitive> getAffectedPrimitives(TreePath path) {
     
    354354            Main.map.mapView.getEditLayer().data.setSelected( getAffectedPrimitives(path));
    355355        }
    356        
     356
    357357        @Override
    358358        public void updateEnabledState() {
     
    377377        }
    378378    }
    379    
     379
    380380    /**
    381381     * undo / redo switch to reduce duplicate code
     
    448448            super(new CommandStackPopup());
    449449        }
    450        
     450
    451451        @Override
    452452        public void mouseClicked(MouseEvent evt) {
     
    456456        }
    457457    }
    458    
     458
    459459    private class CommandStackPopup extends JPopupMenu {
    460460        public CommandStackPopup(){
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java

    r6009 r6070  
    6767    /**
    6868     * Replies the color used to paint conflicts.
    69      * 
     69     *
    7070     * @return the color used to paint conflicts
    7171     * @since 1221
     
    8383    /** the list widget for the list of conflicts */
    8484    private JList lstConflicts;
    85    
     85
    8686    private final JPopupMenu popupMenu = new JPopupMenu();
    8787    private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu);
     
    115115            btnResolve, btnSelect
    116116        }));
    117        
     117
    118118        popupMenuHandler.addAction(Main.main.menu.autoScaleActions.get("conflict"));
    119119    }
     
    143143        DataSet.removeSelectionListener(this);
    144144    }
    145    
     145
    146146    /**
    147147     * Add a list selection listener to the conflicts list.
     
    152152        lstConflicts.getSelectionModel().addListSelectionListener(listener);
    153153    }
    154    
     154
    155155    /**
    156156     * Remove the given list selection listener from the conflicts list.
     
    161161        lstConflicts.getSelectionModel().removeListSelectionListener(listener);
    162162    }
    163    
     163
    164164    /**
    165165     * Replies the popup menu handler.
     
    218218    /**
    219219     * Paints all conflicts that can be expressed on the main window.
    220      * 
     220     *
    221221     * @param g The {@code Graphics} used to paint
    222222     * @param nc The {@code NavigatableComponent} used to get screen coordinates of nodes
     
    294294    /**
    295295     * returns the first selected item of the conflicts list
    296      * 
     296     *
    297297     * @return Conflict
    298298     */
     
    331331        return ht("/Dialog/ConflictList");
    332332    }
    333    
     333
    334334    class MouseEventHandler extends PopupMenuLauncher {
    335335        public MouseEventHandler() {
     
    438438            }
    439439            DataSet ds = Main.main.getCurrentDataSet();
    440             if (ds != null) { // Can't see how it is possible but it happened in #7942 
     440            if (ds != null) { // Can't see how it is possible but it happened in #7942
    441441                ds.setSelected(sel);
    442442            }
     
    450450        }
    451451    }
    452    
     452
    453453    /**
    454454     * Warns the user about the number of detected conflicts
  • trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java

    r5360 r6070  
    108108        historyTable.getSelectionModel().addListSelectionListener(showHistoryAction);
    109109        historyTable.getSelectionModel().addListSelectionListener(reloadAction);
    110        
     110
    111111        // Show history dialog on Enter/Spacebar
    112112        InputMapUtils.addEnterAction(historyTable, showHistoryAction);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r6058 r6070  
    9292
    9393    private final NewAction newAction;
    94    
     94
    9595    /** the popup menu and its handler */
    9696    private final JPopupMenu popupMenu = new JPopupMenu();
     
    9898
    9999    private final JosmTextField filter;
    100    
     100
    101101    // Actions
    102102    /** the edit action */
     
    114114    /** add all selected primitives to the given relations */
    115115    private final AddSelectionToRelations addSelectionToRelations = new AddSelectionToRelations();
    116    
     116
    117117    HighlightHelper highlightHelper = new HighlightHelper();
    118118    private boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true);
     
    158158        // Setup popup menu handler
    159159        setupPopupMenuHandler();
    160        
     160
    161161        JPanel pane = new JPanel(new BorderLayout());
    162162        pane.add(filter, BorderLayout.NORTH);
     
    175175
    176176        InputMapUtils.unassignCtrlShiftUpDown(displaylist, JComponent.WHEN_FOCUSED);
    177        
     177
    178178        // Select relation on Ctrl-Enter
    179179        InputMapUtils.addEnterAction(displaylist, selectRelationAction);
     
    182182        displaylist.getActionMap().put("edit", editAction);
    183183        displaylist.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, KeyEvent.CTRL_MASK), "edit");
    184        
     184
    185185        updateActionsRelationLists();
    186186    }
    187    
     187
    188188    // inform all actions about list of relations they need
    189189    private void updateActionsRelationLists() {
    190190        List<Relation> sel = model.getSelectedRelations();
    191191        popupMenuHandler.setPrimitives(sel);
    192        
     192
    193193        Component focused = FocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
    194        
     194
    195195        //update highlights
    196196        if (highlightEnabled && focused==displaylist && Main.isDisplayingMapView()) {
     
    200200        }
    201201    }
    202    
     202
    203203    @Override public void showNotify() {
    204204        MapView.addLayerChangeListener(newAction);
     
    214214        DataSet.removeSelectionListener(addSelectionToRelations);
    215215    }
    216    
     216
    217217    private void resetFilter() {
    218218        filter.setText(null);
     
    309309
    310310    class MouseEventHandler extends PopupMenuLauncher {
    311        
     311
    312312        public MouseEventHandler() {
    313313            super(popupMenu);
     
    318318            if (highlightEnabled) highlightHelper.clear();
    319319        }
    320        
     320
    321321        protected void setCurrentRelationAsSelection() {
    322322            Main.main.getCurrentDataSet().setSelected((Relation)displaylist.getSelectedValue());
     
    326326            EditRelationAction.launchEditor(getSelected());
    327327        }
    328        
     328
    329329        @Override public void mouseClicked(MouseEvent e) {
    330330            if (Main.main.getEditLayer() == null) return;
     
    338338        }
    339339    }
    340    
     340
    341341    /**
    342342     * The action for creating a new relation
     
    493493            }
    494494        }
    495        
     495
    496496        private void updateFilteredRelations() {
    497497            if (filter != null) {
     
    519519            return filteredRelations == null ? relations : filteredRelations;
    520520        }
    521        
     521
    522522        private Relation getVisibleRelation(int index) {
    523523            if (index < 0 || index >= getVisibleRelations().size()) return null;
     
    584584            return i;
    585585        }
    586        
     586
    587587        private Integer getVisibleRelationIndex(Relation rel) {
    588588            int i = getVisibleRelations().indexOf(rel);
     
    604604
    605605    private final void setupPopupMenuHandler() {
    606        
     606
    607607        // -- select action
    608608        popupMenuHandler.addAction(selectRelationAction);
     
    624624        popupMenuHandler.addAction(duplicateAction).setVisible(false);
    625625        popupMenuHandler.addAction(deleteRelationsAction).setVisible(false);
    626        
     626
    627627        popupMenuHandler.addAction(addSelectionToRelations);
    628628    }
    629    
     629
    630630    /* ---------------------------------------------------------------------------------- */
    631631    /* Methods that can be called from plugins                                            */
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r6058 r6070  
    155155            }
    156156        });
    157                
     157
    158158        lstPrimitives.addMouseListener(new MouseEventHandler());
    159159
     
    192192            super(popupMenu);
    193193        }
    194        
     194
    195195        @Override
    196196        public void mouseClicked(MouseEvent e) {
     
    727727                text.append(tr("Unselectable now"));
    728728                this.sel=new ArrayList<OsmPrimitive>(); // empty selection
    729             }           
     729            }
    730730            if(ways + nodes + relations == 1)
    731731            {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r6061 r6070  
    144144     */
    145145    protected JCheckBoxMenuItem windowMenuItem;
    146    
     146
    147147    /**
    148148     * The linked preferences class (optional). If set, accessible from the title bar with a dedicated button
     
    152152    /**
    153153     * Constructor
    154      * 
     154     *
    155155     * @param name  the name of the dialog
    156156     * @param iconName the name of the icon to be displayed
     
    493493                add(buttonsHide);
    494494            }
    495            
     495
    496496            // show the pref button if applicable
    497497            if (preferenceClass != null) {
     
    558558            return lblTitle.getText();
    559559        }
    560        
     560
    561561        public class DialogPopupMenu extends JPopupMenu {
    562562            public final JMenu buttonHidingMenu = new JMenu(tr("Side buttons"));
     
    589589            }
    590590        }
    591        
     591
    592592        public void registerMouseListener() {
    593593            addMouseListener(new MouseEventHandler());
    594594        }
    595        
     595
    596596        class MouseEventHandler extends PopupMenuLauncher {
    597597            public MouseEventHandler() {
     
    864864            buttonsHide.setVisible(false);
    865865        }
    866        
     866
    867867        // Register title bar mouse listener only after buttonActions has been initialized to have a complete popup menu
    868868        titleBar.registerMouseListener();
    869        
     869
    870870        return data;
    871871    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r6009 r6070  
    7777    private final JPopupMenu popupMenu = new JPopupMenu();
    7878    private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu);
    79    
     79
    8080    /** Last selected element */
    8181    private DefaultMutableTreeNode lastSelectedNode = null;
     
    417417        tree.addTreeSelectionListener(listener);
    418418    }
    419    
     419
    420420    /**
    421421     * Remove the given tree selection listener from the validator tree.
     
    426426        tree.removeTreeSelectionListener(listener);
    427427    }
    428    
     428
    429429    /**
    430430     * Replies the popup menu handler.
     
    435435        return popupMenuHandler;
    436436    }
    437    
     437
    438438    /**
    439439     * Replies the currently selected error, or {@code null}.
     
    451451        return null;
    452452    }
    453    
     453
    454454    /**
    455455     * Watches for double clicks and launches the popup menu.
    456456     */
    457457    class MouseEventHandler extends PopupMenuLauncher {
    458        
     458
    459459        public MouseEventHandler() {
    460460            super(popupMenu);
    461461        }
    462        
     462
    463463        @Override
    464464        public void mouseClicked(MouseEvent e) {
     
    483483            }
    484484        }
    485        
     485
    486486        @Override public void launch(MouseEvent e) {
    487487            TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
     
    585585            // do nothing
    586586        }
    587        
     587
    588588        protected void fixError(TestError error) throws InterruptedException, InvocationTargetException {
    589589            if (error.isFixable()) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java

    r5998 r6070  
    557557
    558558    class MouseEventHandler extends PopupMenuLauncher {
    559        
     559
    560560        public MouseEventHandler() {
    561561            super(new ChangesetTablePopupMenu());
    562562        }
    563        
     563
    564564        @Override
    565565        public void mouseClicked(MouseEvent evt) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/SingleChangesetDownloadPanel.java

    r5765 r6070  
    5151        tfChangesetId.getDocument().addDocumentListener(actDownload);
    5252        add(btn);
    53        
    54         if (Main.pref.getBoolean("downloadchangeset.autopaste", true)) { 
     53
     54        if (Main.pref.getBoolean("downloadchangeset.autopaste", true)) {
    5555            tfChangesetId.tryToPasteFromClipboard();
    5656        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/ChangesetQueryDialog.java

    r5998 r6070  
    191191                    }
    192192                    break;
    193    
     193
    194194                case 2:
    195195                    if (getChangesetQuery() == null) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r6068 r6070  
    152152     */
    153153    private final TagEditHelper editHelper = new TagEditHelper(propertyData, valueCount);
    154    
     154
    155155    private final DataSetListenerAdapter dataChangedAdapter = new DataSetListenerAdapter(this);
    156156    private final HelpAction helpAction = new HelpAction();
     
    170170    private final SelectRelationAction selectRelationAction = new SelectRelationAction(false);
    171171    private final SelectRelationAction addRelationToSelectionAction = new SelectRelationAction(true);
    172    
     172
    173173    private final DownloadMembersAction downloadMembersAction = new DownloadMembersAction();
    174174    private final DownloadSelectedIncompleteMembersAction downloadSelectedIncompleteMembersAction = new DownloadSelectedIncompleteMembersAction();
    175    
     175
    176176    private final SelectMembersAction selectMembersAction = new SelectMembersAction(false);
    177177    private final SelectMembersAction addMembersToSelectionAction = new SelectMembersAction(true);
    178    
     178
    179179    private final HighlightHelper highlightHelper= new HighlightHelper();
    180    
     180
    181181    /**
    182182     * The Add button (needed to be able to disable it)
     
    195195     */
    196196    private final PresetListPanel presets = new PresetListPanel();
    197    
     197
    198198    /**
    199199     * Text to display when nothing selected.
     
    214214        }
    215215    };
    216    
     216
    217217    // <editor-fold defaultstate="collapsed" desc="Dialog construction and helper methods">
    218    
     218
    219219    /**
    220220     * Create a new PropertiesDialog
     
    231231        setupMembershipMenu();
    232232        buildMembershipTable();
    233        
     233
    234234        // combine both tables and wrap them in a scrollPane
    235235        JPanel bothTables = new JPanel();
     
    249249            bothTables.add(presets, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2));
    250250        }
    251        
     251
    252252        setupKeyboardShortcuts();
    253253
     
    257257        propertyTable.getSelectionModel().addListSelectionListener(deleteAction);
    258258        membershipTable.getSelectionModel().addListSelectionListener(deleteAction);
    259        
    260        
     259
     260
    261261        JScrollPane scrollPane = (JScrollPane) createLayout(bothTables, true, Arrays.asList(new SideButton[] {
    262262                this.btnAdd, this.btnEdit, this.btnDel
     
    273273        editHelper.loadTagsIfNeeded();
    274274    }
    275        
     275
    276276    private void buildPropertiesTable() {
    277277        // setting up the properties table
     
    280280        propertyTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    281281        propertyTable.getTableHeader().setReorderingAllowed(false);
    282        
     282
    283283        propertyTable.getColumnModel().getColumn(1).setCellRenderer(new DefaultTableCellRenderer(){
    284284            @Override public Component getTableCellRendererComponent(JTable table, Object value,
     
    383383        mod.getColumn(0).setPreferredWidth(200);
    384384    }
    385    
     385
    386386    /**
    387387     * creates the popup menu @field membershipMenu and its launcher on membership table
     
    432432        });
    433433    }
    434    
    435     /**
    436      * creates the popup menu @field propertyMenu and its launcher on property table 
     434
     435    /**
     436     * creates the popup menu @field propertyMenu and its launcher on property table
    437437     */
    438438    private void setupPropertiesMenu() {
     
    448448        propertyTable.addMouseListener(new PopupMenuLauncher(propertyMenu));
    449449    }
    450    
     450
    451451    /**
    452452     * Assignas all needed keys like Enter and Spacebar to most important actions
    453453     */
    454454    private void setupKeyboardShortcuts() {
    455        
     455
    456456        // ENTER = editAction, open "edit" dialog
    457457        propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
     
    461461                .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),"onTableEnter");
    462462        membershipTable.getActionMap().put("onTableEnter",editAction);
    463        
    464         // INSERT button = addAction, open "add property" dialog 
     463
     464        // INSERT button = addAction, open "add property" dialog
    465465        propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
    466466                .put(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT, 0),"onTableInsert");
    467467        propertyTable.getActionMap().put("onTableInsert",addAction);
    468        
     468
    469469        // unassign some standard shortcuts for JTable to allow upload / download
    470470        InputMapUtils.unassignCtrlShiftUpDown(propertyTable, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    471        
     471
    472472        // unassign some standard shortcuts for correct copy-pasting, fix #8508
    473473        propertyTable.setTransferHandler(null);
    474  
     474
    475475        propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
    476476                .put(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK),"onCopy");
     
    479479        // allow using enter to add tags for all look&feel configurations
    480480        InputMapUtils.enableEnter(this.btnAdd);
    481        
     481
    482482        // DEL button = deleteAction
    483483        getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
     
    485485                );
    486486        getActionMap().put("delete", deleteAction);
    487        
     487
    488488        // F1 button = custom help action
    489489        getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
     
    491491        getActionMap().put("onHelp", helpAction);
    492492    }
    493    
     493
    494494         /**
    495495     * This simply fires up an {@link RelationEditor} for the relation shown; everything else
     
    506506                ((MemberInfo) membershipData.getValueAt(row, 1)).role).setVisible(true);
    507507    }
    508    
     508
    509509    private int findRow(TableModel model, Object value) {
    510510        for (int i=0; i<model.getRowCount(); i++) {
     
    514514        return -1;
    515515    }
    516    
     516
    517517    /**
    518518     * Update selection status, call @{link #selectionChanged} function.
     
    525525        }
    526526    }
    527    
     527
    528528   // </editor-fold>
    529529
    530530    // <editor-fold defaultstate="collapsed" desc="Event listeners methods">
    531    
     531
    532532    @Override
    533533    public void showNotify() {
     
    558558        }
    559559    }
    560    
     560
    561561    @Override
    562562    public void destroy() {
     
    625625                    ? e.getValue().keySet().iterator().next() : tr("<different>"));
    626626        }
    627        
     627
    628628        membershipData.setRowCount(0);
    629629
     
    698698        }
    699699    }
    700    
     700
    701701    /* ---------------------------------------------------------------------------------- */
    702702    /* EditLayerChangeListener                                                            */
     
    721721
    722722    // <editor-fold defaultstate="collapsed" desc="Methods that are called by plugins to extend fuctionality ">
    723    
     723
    724724    /**
    725725     * Replies the property popup menu handler.
     
    752752        return row > -1 ? (IRelation) membershipData.getValueAt(row, 0) : null;
    753753    }
    754        
     754
    755755    // </editor-fold>
    756    
     756
    757757     /**
    758758     * Class that watches for mouse clicks
     
    852852        }
    853853    };
    854    
     854
    855855    /**
    856856     * Action handling delete button press in properties dialog.
     
    940940            } else if (membershipTable.getSelectedRowCount() > 0) {
    941941                int[] rows = membershipTable.getSelectedRows();
    942                 // delete from last relation to convserve row numbers in the table 
     942                // delete from last relation to convserve row numbers in the table
    943943                for (int i=rows.length-1; i>=0; i--) {
    944944                    deleteFromRelation(rows[i]);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java

    r5925 r6070  
    415415                    refreshView(r);
    416416                }
    417                 SwingUtilities.invokeLater(new Runnable() { 
    418                     public void run() { 
    419                         Main.map.repaint(); 
    420                     } 
    421                 }); 
     417                SwingUtilities.invokeLater(new Runnable() {
     418                    public void run() {
     419                        Main.map.repaint();
     420                    }
     421                });
    422422            } catch (Exception e) {
    423423                if (canceled) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r6068 r6070  
    216216                }
    217217        );
    218        
     218
    219219        tagEditorPanel.setNextFocusComponent(memberTable);
    220220        selectionTable.setFocusable(false);
     
    492492        tb.add(moveDownAction);
    493493        memberTable.getActionMap().put("moveDown", moveDownAction);
    494        
     494
    495495        tb.addSeparator();
    496496
     
    499499        memberTableModel.getSelectionModel().addListSelectionListener(editAction);
    500500        tb.add(editAction);
    501        
     501
    502502        // -- delete action
    503503        RemoveAction removeSelectedAction = new RemoveAction();
     
    505505        tb.add(removeSelectedAction);
    506506        memberTable.getActionMap().put("removeSelected", removeSelectedAction);
    507        
     507
    508508        tb.addSeparator();
    509509        // -- sort action
     
    536536        inputMap.put((KeyStroke) moveDownAction.getValue(AbstractAction.ACCELERATOR_KEY),"moveDown");
    537537        inputMap.put((KeyStroke) downloadIncompleteMembersAction.getValue(AbstractAction.ACCELERATOR_KEY),"downloadIncomplete");
    538        
     538
    539539        return tb;
    540540    }
     
    677677    }
    678678
    679    
     679
    680680    private void registerCopyPasteAction(AbstractAction action, Object actionName, KeyStroke shortcut) {
    681681        int mods = shortcut.getModifiers();
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java

    r4238 r6070  
    2626        this.ds = ds;
    2727        editor = new AutoCompletingTextField();
    28         editor.setBorder(BorderFactory.createEmptyBorder(1,1,1,1)); 
     28        editor.setBorder(BorderFactory.createEmptyBorder(1,1,1,1));
    2929        autoCompletionList = new AutoCompletionList();
    3030        editor.setAutoCompletionList(autoCompletionList);
     
    5757        return super.stopCellEditing();
    5858    }
    59    
     59
    6060    /** Returns the edit field for this cell editor. */
    6161    public AutoCompletingTextField getEditor() {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java

    r6064 r6070  
    6363     */
    6464    protected void init() {
    65         MemberRoleCellEditor ce = (MemberRoleCellEditor)getColumnModel().getColumn(0).getCellEditor(); 
     65        MemberRoleCellEditor ce = (MemberRoleCellEditor)getColumnModel().getColumn(0).getCellEditor();
    6666        setRowHeight(ce.getEditor().getPreferredSize().height);
    6767        setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
     
    7575
    7676        initHighlighting();
    77        
     77
    7878        // install custom navigation actions
    7979        //
     
    8181        getActionMap().put("selectPreviousColumnCell", new SelectPreviousColumnCellAction());
    8282    }
    83    
     83
    8484    @Override
    8585    protected ZoomToAction buildZoomToAction() {
    8686        return new ZoomToAction(this);
    8787    }
    88    
     88
    8989    @Override
    9090    protected JPopupMenu buildPopupMenu() {
     
    9999        return menu;
    100100    }
    101    
     101
    102102    @Override
    103103    public Dimension getPreferredSize(){
     
    140140                }
    141141            }};
    142    
     142
    143143    private void initHighlighting() {
    144144        highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true);
     
    217217        MapView.removeLayerChangeListener(zoomToGap);
    218218    }
    219    
     219
    220220    public void stopHighlighting() {
    221221        if (highlighterListener == null) return;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java

    r5911 r6070  
    380380        return updateCount;
    381381    }
    382    
     382
    383383    private void clearErrors() {
    384384        if (errors != null) {
Note: See TracChangeset for help on using the changeset viewer.