Changeset 8910 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-10-19T20:25:49+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/conflict/ConflictAddCommand.java
r8510 r8910 22 22 */ 23 23 public class ConflictAddCommand extends Command { 24 private Conflict<? extends OsmPrimitive> conflict;24 private final Conflict<? extends OsmPrimitive> conflict; 25 25 26 26 /** … … 61 61 @Override 62 62 public void undoCommand() { 63 if ( !Main.map.mapView.hasLayer(getLayer())) {63 if (Main.map != null && !Main.map.mapView.hasLayer(getLayer())) { 64 64 Main.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", 65 65 getLayer().getName(), -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r8510 r8910 20 20 public abstract class ConflictResolveCommand extends Command { 21 21 /** the list of resolved conflicts */ 22 private ConflictCollection resolvedConflicts;22 private final ConflictCollection resolvedConflicts; 23 23 24 24 /** -
trunk/src/org/openstreetmap/josm/command/conflict/CoordinateConflictResolveCommand.java
r8510 r8910 21 21 22 22 /** the conflict to resolve */ 23 private Conflict<? extends OsmPrimitive> conflict;23 private final Conflict<? extends OsmPrimitive> conflict; 24 24 25 25 /** the merge decision */ -
trunk/src/org/openstreetmap/josm/command/conflict/DeletedStateConflictResolveCommand.java
r8456 r8910 21 21 22 22 /** the conflict to resolve */ 23 private Conflict<? extends OsmPrimitive> conflict;23 private final Conflict<? extends OsmPrimitive> conflict; 24 24 25 25 /** the merge decision */ -
trunk/src/org/openstreetmap/josm/command/conflict/ModifiedConflictResolveCommand.java
r8510 r8910 22 22 23 23 /** the conflict to resolve */ 24 private Conflict<? extends OsmPrimitive> conflict;24 private final Conflict<? extends OsmPrimitive> conflict; 25 25 26 26 /** -
trunk/src/org/openstreetmap/josm/command/conflict/TagConflictResolveCommand.java
r8509 r8910 22 22 public class TagConflictResolveCommand extends ConflictResolveCommand { 23 23 /** the conflict to resolve */ 24 private Conflict<? extends OsmPrimitive> conflict;24 private final Conflict<? extends OsmPrimitive> conflict; 25 25 26 26 /** the list of merge decisions, represented as {@link TagMergeItem}s */ -
trunk/src/org/openstreetmap/josm/command/conflict/VersionConflictResolveCommand.java
r8510 r8910 22 22 23 23 /** the conflict to resolve */ 24 private Conflict<? extends OsmPrimitive> conflict;24 private final Conflict<? extends OsmPrimitive> conflict; 25 25 26 26 /** -
trunk/src/org/openstreetmap/josm/command/conflict/WayNodesConflictResolverCommand.java
r8456 r8910 22 22 public class WayNodesConflictResolverCommand extends ConflictResolveCommand { 23 23 /** the conflict to resolve */ 24 private Conflict<Way> conflict;24 private final Conflict<Way> conflict; 25 25 26 26 /** the list of merged nodes. This becomes the list of news of my way after the -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r8855 r8910 89 89 import org.openstreetmap.josm.gui.util.GuiHelper; 90 90 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 91 import org.openstreetmap.josm.tools.CheckParameterUtil; 91 92 import org.openstreetmap.josm.tools.FilteredCollection; 92 93 import org.openstreetmap.josm.tools.GBC; … … 246 247 */ 247 248 public static Color getBackgroundColor() { 248 return Main.pref .getColor(marktr("background"), Color.BLACK);249 return Main.pref != null ? Main.pref.getColor(marktr("background"), Color.BLACK) : Color.BLACK; 249 250 } 250 251 … … 254 255 */ 255 256 public static Color getOutsideColor() { 256 return Main.pref .getColor(marktr("outside downloaded area"), Color.YELLOW);257 return Main.pref != null ? Main.pref.getColor(marktr("outside downloaded area"), Color.YELLOW) : Color.YELLOW; 257 258 } 258 259 … … 281 282 public OsmDataLayer(final DataSet data, final String name, final File associatedFile) { 282 283 super(name); 284 CheckParameterUtil.ensureParameterNotNull(data, "data"); 283 285 this.data = data; 284 286 this.setAssociatedFile(associatedFile);
Note:
See TracChangeset
for help on using the changeset viewer.