Changeset 17757 in josm for trunk/src/org
- Timestamp:
- 2021-04-12T21:16:40+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r17749 r17757 147 147 public class OsmDataLayer extends AbstractOsmDataLayer implements Listener, DataSelectionListener, HighlightUpdateListener { 148 148 private static final int HATCHED_SIZE = 15; 149 // U+2205 EMPTY SET 150 private static final String IS_EMPTY_SYMBOL = "\u2205"; 151 private static final String IS_DIRTY_SYMBOL = "*"; 149 152 /** Property used to know if this layer has to be saved on disk */ 150 153 public static final String REQUIRES_SAVE_TO_DISK_PROP = OsmDataLayer.class.getName() + ".requiresSaveToDisk"; … … 710 713 addConditionalInformation(p, tr("Upload is discouraged"), isUploadDiscouraged()); 711 714 addConditionalInformation(p, tr("Upload is blocked"), data.getUploadPolicy() == UploadPolicy.BLOCKED); 715 addConditionalInformation(p, IS_EMPTY_SYMBOL + " " + tr("Empty layer"), this.getDataSet().isEmpty()); 716 addConditionalInformation(p, IS_DIRTY_SYMBOL + " " + tr("Unsaved changes"), this.isDirty()); 712 717 713 718 return p; … … 1073 1078 String label = super.getLabel(); 1074 1079 if (this.isDirty()) { 1075 label += " *";1080 label += " " + IS_DIRTY_SYMBOL; 1076 1081 } 1077 1082 if (this.getDataSet().isEmpty()) { 1078 // U+2205 EMPTY SET 1079 label += " \u2205"; 1083 label += " " + IS_EMPTY_SYMBOL; 1080 1084 } 1081 1085 return label; … … 1214 1218 new ExtendedDialog( 1215 1219 MainApplication.getMainFrame(), 1216 tr("Empty document"),1220 tr("Empty layer"), 1217 1221 tr("Save anyway"), tr("Cancel")) 1218 .setContent(tr("The documentcontains no data."))1222 .setContent(tr("The layer contains no data.")) 1219 1223 .setButtonIcons("save", "cancel") 1220 1224 .showDialog().getValue()
Note:
See TracChangeset
for help on using the changeset viewer.