Changeset 1329 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-01-24T13:49:02+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r1326 r1329 5 5 6 6 import java.awt.Color; 7 import java.awt.datatransfer.DataFlavor; 8 import java.awt.datatransfer.Transferable; 9 import java.awt.event.ActionEvent; 10 import java.awt.event.InputEvent; 11 import java.awt.event.KeyEvent; 7 import java.awt.datatransfer.DataFlavor; 8 import java.awt.datatransfer.Transferable; 9 import java.awt.event.ActionEvent; 10 import java.awt.event.InputEvent; 11 import java.awt.event.KeyEvent; 12 12 import java.awt.Font; 13 13 import java.awt.GridBagLayout; … … 104 104 downloadSelections.add(new TileSelection()); 105 105 downloadSelections.add(new BookmarkSelection()); 106 downloadSelections.add(new PlaceSelection()); 106 107 downloadSelections.add(new WorldChooser()); 107 108 … … 154 155 sizeCheck.setFont(labelFont.deriveFont(Font.PLAIN, labelFont.getSize())); 155 156 add(sizeCheck, GBC.eop().insets(0,5,5,10)); 156 157 getInputMap(WHEN_IN_FOCUSED_WINDOW).put( 158 KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK), "checkClipboardContents"); 159 160 getActionMap().put("checkClipboardContents", new AbstractAction() { 161 public void actionPerformed(ActionEvent e) { 162 checkClipboardContents(); 163 } 164 }); 165 } 166 167 private void checkClipboardContents() { 168 String result = ""; 169 Transferable contents = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); 170 171 if(contents == null || !contents.isDataFlavorSupported(DataFlavor.stringFlavor)) 172 return; 173 174 try { 175 result = (String)contents.getTransferData(DataFlavor.stringFlavor); 176 } 177 catch(Exception ex) { 178 return; 179 } 180 181 Bounds b = OsmUrlToBounds.parse(result); 182 if (b != null) { 183 minlon = b.min.lon(); 184 minlat = b.min.lat(); 185 maxlon = b.max.lon(); 186 maxlat = b.max.lat(); 187 boundingBoxChanged(null); 188 } 189 } 157 158 getInputMap(WHEN_IN_FOCUSED_WINDOW).put( 159 KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_MASK), "checkClipboardContents"); 160 161 getActionMap().put("checkClipboardContents", new AbstractAction() { 162 public void actionPerformed(ActionEvent e) { 163 checkClipboardContents(); 164 } 165 }); 166 } 167 168 private void checkClipboardContents() { 169 String result = ""; 170 Transferable contents = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); 171 172 if(contents == null || !contents.isDataFlavorSupported(DataFlavor.stringFlavor)) 173 return; 174 175 try { 176 result = (String)contents.getTransferData(DataFlavor.stringFlavor); 177 } 178 catch(Exception ex) { 179 return; 180 } 181 182 Bounds b = OsmUrlToBounds.parse(result); 183 if (b != null) { 184 minlon = b.min.lon(); 185 minlat = b.min.lat(); 186 maxlon = b.max.lon(); 187 maxlat = b.max.lat(); 188 boundingBoxChanged(null); 189 } 190 } 190 191 191 192 private void updateSizeCheck() { -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r1326 r1329 57 57 String [] oldplugins = new String[] {"mappaint", "unglueplugin", 58 58 "lang-de", "lang-en_GB", "lang-fr", "lang-it", "lang-pl", "lang-ro", 59 "lang-ru", "ewmsplugin", "ywms", "tways-0.2", "geotagged", "landsat"}; 59 "lang-ru", "ewmsplugin", "ywms", "tways-0.2", "geotagged", "landsat", 60 "namefinder", "waypoints"}; 60 61 for (String p : oldplugins) { 61 62 if (plugins.contains(p)) {
Note:
See TracChangeset
for help on using the changeset viewer.