Ignore:
Timestamp:
2021-04-12T21:16:40+02:00 (3 years ago)
Author:
simon04
Message:

fix #20750 - Explain * and ∅ in Layer info window (patch by Klumbumbus, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r17749 r17757  
    147147public class OsmDataLayer extends AbstractOsmDataLayer implements Listener, DataSelectionListener, HighlightUpdateListener {
    148148    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 = "*";
    149152    /** Property used to know if this layer has to be saved on disk */
    150153    public static final String REQUIRES_SAVE_TO_DISK_PROP = OsmDataLayer.class.getName() + ".requiresSaveToDisk";
     
    710713        addConditionalInformation(p, tr("Upload is discouraged"), isUploadDiscouraged());
    711714        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());
    712717
    713718        return p;
     
    10731078        String label = super.getLabel();
    10741079        if (this.isDirty()) {
    1075             label += " *";
     1080            label += " " + IS_DIRTY_SYMBOL;
    10761081        }
    10771082        if (this.getDataSet().isEmpty()) {
    1078             // U+2205 EMPTY SET
    1079             label += " \u2205";
     1083            label += " " + IS_EMPTY_SYMBOL;
    10801084        }
    10811085        return label;
     
    12141218            new ExtendedDialog(
    12151219                    MainApplication.getMainFrame(),
    1216                     tr("Empty document"),
     1220                    tr("Empty layer"),
    12171221                    tr("Save anyway"), tr("Cancel"))
    1218                 .setContent(tr("The document contains no data."))
     1222                .setContent(tr("The layer contains no data."))
    12191223                .setButtonIcons("save", "cancel")
    12201224                .showDialog().getValue()
Note: See TracChangeset for help on using the changeset viewer.