Changeset 3186 in josm


Ignore:
Timestamp:
2010-04-15T19:41:04+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #4601 - Conflict list dialog won't update unless I prod it

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r3177 r3186  
    7878    private boolean didMove = false;
    7979    private boolean cancelDrawMode = false;
    80     Node virtualNode = null;
    81     Collection<WaySegment> virtualWays = new ArrayList<WaySegment>();
    82     SequenceCommand virtualCmds = null;
     80    private Node virtualNode = null;
     81    private Collection<WaySegment> virtualWays = new ArrayList<WaySegment>();
    8382
    8483    /**
     
    203202            Collection<Command> virtualCmds = new LinkedList<Command>();
    204203            virtualCmds.add(new AddCommand(virtualNode));
    205             for(WaySegment virtualWay : virtualWays) {
     204            for (WaySegment virtualWay : virtualWays) {
    206205                Way w = virtualWay.way;
    207206                Way wnew = new Way(w);
     
    213212                    "Add and move a virtual new node to {0} ways", virtualWays.size(),
    214213                    virtualWays.size());
    215 
     214            System.err.println("Select Action/mouseDragged "+ Thread.currentThread().getName());
    216215            Main.main.undoRedo.add(new SequenceCommand(text, virtualCmds));
    217216            selectPrims(Collections.singleton((OsmPrimitive)virtualNode), false, false, false, false);
     
    326325                            virtualWays.add(nearestWS);
    327326                            if(virtualNode == null) {
     327                                System.err.println("Select Action/getNearestCollectionVirtual "+ Thread.currentThread().getName());
    328328                                virtualNode = new Node(Main.map.mapView.getLatLon(pc.x, pc.y));
    329329                            }
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r3173 r3186  
    9191    @Override public boolean executeCommand() {
    9292        for (Node n : nodes) {
     93            System.err.println("MoveCommand "+ Thread.currentThread().getName());
    9394            // in case #3892 happens again
    9495            if (n == null)
    9596                throw new AssertionError("null detected in node list");
    9697            if (n.getEastNorth() == null)
    97                 throw new AssertionError("unexpected null value for n.getEastNorth(). id of n is" + n.getUniqueId());
     98                throw new AssertionError("unexpected null value for n.getEastNorth(). id of n is " + n.getUniqueId());
    9899
    99100            n.setEastNorth(n.getEastNorth().add(x, y));
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r3177 r3186  
    768768        nodes.remove(node);
    769769        node.setCoorInternal(newCoor);
     770//        System.err.println("DataSet/reindexNode "+ Thread.currentThread().getName());
    770771        nodes.add(node);
    771772        for (OsmPrimitive primitive: node.getReferrers()) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r3178 r3186  
    4444 * This class is a toggle dialog that can be turned on and off.
    4545 *
    46  *
    4746 */
    4847public class ToggleDialog extends JPanel implements Helpful {
     
    147146                hideDialog();
    148147                dialogsPanel.reconstruct(Action.ELEMENT_SHRINKS, null);
    149                 hideNotify();
    150148            } else {
    151149                showDialog();
     
    156154                    dialogsPanel.reconstruct(Action.INVISIBLE_TO_DEFAULT, ToggleDialog.this);
    157155                }
    158                 showNotify();
    159156            }
    160157        }
     
    181178        toggleAction.putValue("selected", false);
    182179        toggleAction.putValue("selected", true);
     180        showNotify();
    183181    }
    184182
     
    213211        setIsShowing(false);
    214212        toggleAction.putValue("selected", false);
     213        hideNotify();
    215214    }
    216215
     
    394393                            hideDialog();
    395394                            dialogsPanel.reconstruct(Action.ELEMENT_SHRINKS, null);
    396                             hideNotify();
    397395                        }
    398396                    }
     
    434432                    } else {
    435433                        hideDialog();
    436                         hideNotify();
    437434                    }
    438435                }
Note: See TracChangeset for help on using the changeset viewer.