Changeset 33 in josm for src/org/openstreetmap/josm/data


Ignore:
Timestamp:
2005-12-22T01:32:33+01:00 (18 years ago)
Author:
imi
Message:
  • prepared for uploading.
  • fixed gpx export/import with uid and modified flag
Location:
src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/Preferences.java

    r30 r33  
    5050         */
    5151        private boolean forceRawGpsLines = false;
    52         /**
    53          * Whether nodes on the same place should be considered identical.
    54          */
    55         public boolean mergeNodes = true;
    5652
    5753        /**
     
    132128                                osmDataPassword = osmServer.getChildText("password");
    133129                        }
    134                         mergeNodes = root.getChild("mergeNodes") != null;
    135130                        drawRawGpsLines = root.getChild("drawRawGpsLines") != null;
    136131                        forceRawGpsLines = root.getChild("forceRawGpsLines") != null;
     
    153148                children.add(new Element("laf").setText(laf.getClassName()));
    154149                children.add(new Element("projection").setText(getProjection().getClass().getName()));
    155                 if (mergeNodes)
    156                         children.add(new Element("mergeNodes"));
    157150                if (drawRawGpsLines)
    158151                        children.add(new Element("drawRawGpsLines"));
  • src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r32 r33  
    1515abstract public class OsmPrimitive {
    1616
    17         private static int idcount = 0;
    18         public OsmPrimitive() {
    19                 id = ++idcount;
    20         }
    21        
    2217        /**
    2318         * The key/value list for this primitive.
     
    4338         * If set to true, this object is currently selected.
    4439         */
    45         transient private boolean selected = false;
     40        private boolean selected = false;
    4641
    4742        /**
     
    6055         * @return      True, if the keysets are mergable
    6156         */
    62         public boolean keyPropertiesMergable(OsmPrimitive other) {
     57        final public boolean keyPropertiesMergable(OsmPrimitive other) {
    6358                if ((keys == null) != (other.keys == null))
    6459                        return false;
     
    8075         * @param selected Whether the primitive should be selected or not.
    8176         */
    82         public void setSelected(boolean selected) {
     77        final public void setSelected(boolean selected) {
    8378                if (selected != this.selected)
    8479                        Main.main.ds.fireSelectionChanged();
     
    8984         * @return Return whether the primitive is selected on screen.
    9085         */
    91         public boolean isSelected() {
     86        final public boolean isSelected() {
    9287                return selected;
    9388        }
Note: See TracChangeset for help on using the changeset viewer.