Ignore:
Timestamp:
2009-08-03T21:37:45+02:00 (15 years ago)
Author:
jttt
Message:

Add setter/getter for OsmPrimitive.selected

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

Legend:

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

    r1862 r1899  
    153153        Node c = new Node(selectedNode);
    154154        c.keys = null;
    155         c.selected = false;
     155        c.setSelected(false);
    156156        cmds.add(new ChangeCommand(selectedNode, c));
    157157
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r1898 r1899  
    403403                    // here so /only/ the new way will be selected after this method finishes.
    404404                    if(alt) {
    405                         wnew.selected = false;
     405                        wnew.setSelected(false);
    406406                    }
    407407
     
    530530                title = tr("Add node into way");
    531531                for (Way w : reuseWays) {
    532                     w.selected = false;
     532                    w.setSelected(false);
    533533                }
    534534            }
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r1847 r1899  
    177177                        sel.remove(osm);
    178178                    }
    179                 } else if (mode == SearchMode.add && !osm.selected && matcher.match(osm)) {
     179                } else if (mode == SearchMode.add && !osm.isSelected() && matcher.match(osm)) {
    180180                    sel.add(osm);
    181181                    ++foundMatches;
    182                 } else if (mode == SearchMode.remove && osm.selected && matcher.match(osm)) {
     182                } else if (mode == SearchMode.remove && osm.isSelected() && matcher.match(osm)) {
    183183                    sel.remove(osm);
    184184                    ++foundMatches;
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r1862 r1899  
    409409    private static class Selected extends Match {
    410410        @Override public boolean match(OsmPrimitive osm) {
    411             return osm.selected;
     411            return osm.isSelected();
    412412        }
    413413        @Override public String toString() {return "selected";}
Note: See TracChangeset for help on using the changeset viewer.