Changeset 9081 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r9069 r9081 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Dimension;7 6 import java.awt.GridBagLayout; 8 7 import java.awt.Point; … … 25 24 26 25 import javax.swing.JPanel; 26 import javax.swing.JScrollPane; 27 27 import javax.swing.JTable; 28 28 import javax.swing.ListSelectionModel; … … 200 200 } 201 201 }); 202 this.list.setPreferredSize(new Dimension(400, 400));203 202 this.list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 204 203 this.list.setRowSelectionAllowed(true); 205 204 this.list.setColumnSelectionAllowed(false); 206 205 JPanel panel = new JPanel(new GridBagLayout()); 207 panel.add( this.list, GBC.eol().fill());206 panel.add(new JScrollPane(this.list), GBC.eol().fill()); 208 207 setContent(panel); 209 208 } -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r8857 r9081 30 30 private ImageryInfo testImageryWALLONIE = getImagery("test/data/wmts/WMTSCapabilities-Wallonie.xml"); 31 31 private ImageryInfo testImageryOntario = getImagery("test/data/wmts/WMTSCapabilities-Ontario.xml"); 32 private ImageryInfo testLotsOfLayers = getImagery("test/data/wmts/getCapabilities-lots-of-layers.xml"); 32 33 33 34 /** … … 101 102 } 102 103 103 //TODO: @Test - disable this test, needs further working 104 // XXX - disable this test, needs further working 105 // @Test 104 106 public void testWALLONIENoMatrixDimension() throws MalformedURLException, IOException { 105 107 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); … … 208 210 } 209 211 210 // disabled as this needs user action211 // 212 // XXX: disabled as this needs user action 213 //@Test 212 214 public void testTwoTileSetsForOneProjection() throws Exception { 213 215 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); … … 216 218 verifyTile(new LatLon(45.4105023, -75.7153702), testSource, 303751, 375502, 12); 217 219 verifyTile(new LatLon(45.4601306, -75.7617187), testSource, 1186, 1466, 4); 220 221 } 222 223 // XXX: disabled as this needs user action 224 // @Test 225 public void testManyLayersScrollbars() throws Exception { 226 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 227 WMTSTileSource testSource = new WMTSTileSource(testLotsOfLayers); 228 testSource.initProjection(Main.getProjection()); 218 229 219 230 }
Note:
See TracChangeset
for help on using the changeset viewer.