Ignore:
Timestamp:
2018-10-08T01:00:47+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16816 - new option to show object version in lists, similar to object ID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java

    r14138 r14306  
    8282    private final JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup"));
    8383    private final JCheckBox showID = new JCheckBox(tr("Show object ID in selection lists"));
     84    private final JCheckBox showVersion = new JCheckBox(tr("Show object version in selection lists"));
    8485    private final JCheckBox showCoor = new JCheckBox(tr("Show node coordinates in selection lists"));
    8586    private final JCheckBox showLocalizedName = new JCheckBox(tr("Show localized name in selection lists"));
     
    133134        showID.setSelected(Config.getPref().getBoolean("osm-primitives.showid", false));
    134135
     136        // Show version in selection
     137        showVersion.setToolTipText(tr("Show object version in selection lists"));
     138        showVersion.setSelected(Config.getPref().getBoolean("osm-primitives.showversion", false));
     139
    135140        // Show Coordinates in selection
    136141        showCoor.setToolTipText(tr("Show node coordinates in selection lists"));
     
    147152
    148153        panel.add(showID, GBC.eop().insets(20, 0, 0, 0));
     154        panel.add(showVersion, GBC.eop().insets(20, 0, 0, 0));
    149155        panel.add(showCoor, GBC.eop().insets(20, 0, 0, 0));
    150156        panel.add(showLocalizedName, GBC.eop().insets(20, 0, 0, 0));
     
    211217        Config.getPref().putBoolean("draw.splashscreen", showSplashScreen.isSelected());
    212218        Config.getPref().putBoolean("osm-primitives.showid", showID.isSelected());
     219        Config.getPref().putBoolean("osm-primitives.showversion", showVersion.isSelected());
    213220        Config.getPref().putBoolean("osm-primitives.showcoor", showCoor.isSelected());
    214221        Config.getPref().putBoolean("osm-primitives.localize-name", showLocalizedName.isSelected());
Note: See TracChangeset for help on using the changeset viewer.