Changeset 33 in josm for src/org/openstreetmap/josm/data
- Timestamp:
- 2005-12-22T01:32:33+01:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/Preferences.java
r30 r33 50 50 */ 51 51 private boolean forceRawGpsLines = false; 52 /**53 * Whether nodes on the same place should be considered identical.54 */55 public boolean mergeNodes = true;56 52 57 53 /** … … 132 128 osmDataPassword = osmServer.getChildText("password"); 133 129 } 134 mergeNodes = root.getChild("mergeNodes") != null;135 130 drawRawGpsLines = root.getChild("drawRawGpsLines") != null; 136 131 forceRawGpsLines = root.getChild("forceRawGpsLines") != null; … … 153 148 children.add(new Element("laf").setText(laf.getClassName())); 154 149 children.add(new Element("projection").setText(getProjection().getClass().getName())); 155 if (mergeNodes)156 children.add(new Element("mergeNodes"));157 150 if (drawRawGpsLines) 158 151 children.add(new Element("drawRawGpsLines")); -
src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r32 r33 15 15 abstract public class OsmPrimitive { 16 16 17 private static int idcount = 0;18 public OsmPrimitive() {19 id = ++idcount;20 }21 22 17 /** 23 18 * The key/value list for this primitive. … … 43 38 * If set to true, this object is currently selected. 44 39 */ 45 transientprivate boolean selected = false;40 private boolean selected = false; 46 41 47 42 /** … … 60 55 * @return True, if the keysets are mergable 61 56 */ 62 public boolean keyPropertiesMergable(OsmPrimitive other) {57 final public boolean keyPropertiesMergable(OsmPrimitive other) { 63 58 if ((keys == null) != (other.keys == null)) 64 59 return false; … … 80 75 * @param selected Whether the primitive should be selected or not. 81 76 */ 82 public void setSelected(boolean selected) {77 final public void setSelected(boolean selected) { 83 78 if (selected != this.selected) 84 79 Main.main.ds.fireSelectionChanged(); … … 89 84 * @return Return whether the primitive is selected on screen. 90 85 */ 91 public boolean isSelected() {86 final public boolean isSelected() { 92 87 return selected; 93 88 }
Note:
See TracChangeset
for help on using the changeset viewer.