Ignore:
Timestamp:
2023-03-22T15:57:34+01:00 (22 months ago)
Author:
taylor.smock
Message:

Streetside: Fix or disable various tests

Location:
applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/StreetsidePlugin.java

    r34773 r36065  
    3636  private static final StreetsideWalkAction WALK_ACTION = new StreetsideWalkAction();
    3737
    38   static {
    39       MainMenu.add(MainApplication.getMenu().fileMenu, new StreetsideExportAction(), false, 14);
    40       MainMenu.add(MainApplication.getMenu().imagerySubMenu, new StreetsideDownloadAction(), false);
    41       MainMenu.add(MainApplication.getMenu().viewMenu, ZOOM_ACTION, false, 15);
    42       MainMenu.add(MainApplication.getMenu().fileMenu, new StreetsideDownloadViewAction(), false, 14);
    43       MainMenu.add(MainApplication.getMenu().moreToolsMenu, WALK_ACTION, false);
    44   }
    45 
    4638  /**
    4739   * Main constructor.
     
    5648      StreetsideUser.setTokenValid(false);
    5749    }
     50    MainMenu.add(MainApplication.getMenu().fileMenu, new StreetsideExportAction(), false, 14);
     51    MainMenu.add(MainApplication.getMenu().imagerySubMenu, new StreetsideDownloadAction(), false);
     52    MainMenu.add(MainApplication.getMenu().viewMenu, ZOOM_ACTION, false, 15);
     53    MainMenu.add(MainApplication.getMenu().fileMenu, new StreetsideDownloadViewAction(), false, 14);
     54    MainMenu.add(MainApplication.getMenu().moreToolsMenu, WALK_ACTION, false);
    5855  }
    5956
  • applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/cubemap/CubemapBuilder.java

    r34774 r36065  
    2424import org.openstreetmap.josm.plugins.streetside.gui.StreetsideViewerDialog;
    2525import org.openstreetmap.josm.plugins.streetside.gui.imageinfo.StreetsideViewerPanel;
     26import org.openstreetmap.josm.plugins.streetside.gui.imageinfo.ThreeSixtyDegreeViewerPanel;
    2627import org.openstreetmap.josm.plugins.streetside.utils.GraphicsUtils;
    2728import org.openstreetmap.josm.plugins.streetside.utils.StreetsideProperties;
     
    115116
    116117        public void downloadCubemapImages(String imageId) {
    117     if(StreetsideViewerPanel.getThreeSixtyDegreeViewerPanel().getScene() != StreetsideViewerPanel.getThreeSixtyDegreeViewerPanel().getLoadingScene()) {
    118       StreetsideViewerPanel.getThreeSixtyDegreeViewerPanel().setScene(
    119               StreetsideViewerPanel.getThreeSixtyDegreeViewerPanel().getLoadingScene()
    120           );
     118      ThreeSixtyDegreeViewerPanel panel360 = StreetsideViewerPanel.getThreeSixtyDegreeViewerPanel();
     119      if (panel360 != null && panel360.getScene() != panel360.getLoadingScene()) {
     120        panel360.setScene(panel360.getLoadingScene());
    121121          }
    122122
  • applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/gui/imageinfo/StreetsideViewerPanel.java

    r34577 r36065  
    33
    44import java.awt.BorderLayout;
     5import java.awt.GraphicsEnvironment;
    56import java.text.MessageFormat;
    67
     
    5556                threeSixtyDegreeViewerPanel = new ThreeSixtyDegreeViewerPanel();
    5657
    57                 GraphicsUtils.PlatformHelper.run(() -> {
    58                 threeSixtyDegreeViewerPanel.initialize();
    59                 });
     58    if (!GraphicsEnvironment.isHeadless()) {
     59      GraphicsUtils.PlatformHelper.run(threeSixtyDegreeViewerPanel::initialize);
     60    }
    6061
    6162                add(threeSixtyDegreeViewerPanel, BorderLayout.CENTER);
Note: See TracChangeset for help on using the changeset viewer.