Changeset 12682 in josm


Ignore:
Timestamp:
2017-08-28T11:50:49+02:00 (4 weeks ago)
Author:
Don-vip
Message:

see #15182 - move GuiSizesHelper from gui.util to tools (only called from there)

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/GuiSizesHelper.java

    r12681 r12682  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.gui.util;
     2package org.openstreetmap.josm.tools;
    33
    44import java.awt.Dimension;
     
    1212 * This is needed, because display resolution may vary a lot and a common set
    1313 * of sizes wont work for all users alike.
     14 * @since 12682 (moved from {@code gui.util} package)
    1415 * @since 10358
    1516 */
     
    2930    private static float getScreenDPI() {
    3031        if (screenDPI == -1) {
    31             synchronized (GuiHelper.class) {
     32            synchronized (GuiSizesHelper.class) {
    3233                if (screenDPI == -1) {
    3334                    float scalePref = (float) Main.pref.getDouble("gui.scale", 1.0);
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r12620 r12682  
    7070import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
    7171import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets;
    72 import org.openstreetmap.josm.gui.util.GuiSizesHelper;
    7372import org.openstreetmap.josm.io.CachedFile;
    7473import org.openstreetmap.josm.plugins.PluginHandler;
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r10755 r12682  
    1515import javax.swing.JPanel;
    1616import javax.swing.UIManager;
    17 
    18 import org.openstreetmap.josm.gui.util.GuiSizesHelper;
    1917
    2018import com.kitfox.svg.SVGDiagram;
Note: See TracChangeset for help on using the changeset viewer.