Ignore:
Timestamp:
2016-01-28T00:23:22+01:00 (8 years ago)
Author:
Don-vip
Message:

GeoImageLayer: add unit test, fix sonar issues, add javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r9078 r9660  
    1111import java.awt.FlowLayout;
    1212import java.awt.Graphics;
     13import java.awt.GraphicsEnvironment;
    1314import java.awt.GridBagLayout;
    1415import java.awt.GridLayout;
     
    382383        this.setVisible(true);
    383384        titleBar.setVisible(false);
    384         detachedDialog = new DetachedDialog();
    385         detachedDialog.setVisible(true);
     385        if (!GraphicsEnvironment.isHeadless()) {
     386            detachedDialog = new DetachedDialog();
     387            detachedDialog.setVisible(true);
     388        }
    386389        setIsShowing(true);
    387390        setIsDocked(false);
Note: See TracChangeset for help on using the changeset viewer.