Changeset 36065 in osm for applications/editors/josm/plugins/MicrosoftStreetside/src
- Timestamp:
- 2023-03-22T15:57:34+01:00 (22 months ago)
- 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 36 36 private static final StreetsideWalkAction WALK_ACTION = new StreetsideWalkAction(); 37 37 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 46 38 /** 47 39 * Main constructor. … … 56 48 StreetsideUser.setTokenValid(false); 57 49 } 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); 58 55 } 59 56 -
applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/cubemap/CubemapBuilder.java
r34774 r36065 24 24 import org.openstreetmap.josm.plugins.streetside.gui.StreetsideViewerDialog; 25 25 import org.openstreetmap.josm.plugins.streetside.gui.imageinfo.StreetsideViewerPanel; 26 import org.openstreetmap.josm.plugins.streetside.gui.imageinfo.ThreeSixtyDegreeViewerPanel; 26 27 import org.openstreetmap.josm.plugins.streetside.utils.GraphicsUtils; 27 28 import org.openstreetmap.josm.plugins.streetside.utils.StreetsideProperties; … … 115 116 116 117 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()); 121 121 } 122 122 -
applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/gui/imageinfo/StreetsideViewerPanel.java
r34577 r36065 3 3 4 4 import java.awt.BorderLayout; 5 import java.awt.GraphicsEnvironment; 5 6 import java.text.MessageFormat; 6 7 … … 55 56 threeSixtyDegreeViewerPanel = new ThreeSixtyDegreeViewerPanel(); 56 57 57 GraphicsUtils.PlatformHelper.run(() ->{58 threeSixtyDegreeViewerPanel.initialize();59 }); 58 if (!GraphicsEnvironment.isHeadless()) { 59 GraphicsUtils.PlatformHelper.run(threeSixtyDegreeViewerPanel::initialize); 60 } 60 61 61 62 add(threeSixtyDegreeViewerPanel, BorderLayout.CENTER);
Note:
See TracChangeset
for help on using the changeset viewer.