Ignore:
Timestamp:
2009-06-17T09:01:52+02:00 (15 years ago)
Author:
stoecker
Message:

fixed typos

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Help_WMSmenuAction.java

    r13497 r15960  
    1212
    1313    /**
    14      * 
     14     *
    1515     */
    16    
     16
    1717
    1818    public Help_WMSmenuAction() {
    1919        //super("Help / About");
    2020        super(tr("help"), "help", tr("Help / About"), null, false);
    21        
     21
    2222    }
    23    
     23
    2424    public void actionPerformed(ActionEvent e) {
    25         //todo - put this into a txt file? 
    26           String helptext = 
     25        //todo - put this into a txt file?
     26          String helptext =
    2727            tr("You can add, edit and delete WMS entries in the WMSplugin Preference Tab - "  +
    2828            "these will then show up in the WMS menu.\n\n"+
    29            
     29
    3030            "You can also do this manually in the Advanced Preferences, using the following schema:\n"+
    3131            "wmsplugin.url.1.name=Landsat\n"+
    3232            "wmsplugin.url.1.url=http://onearth.jpl.nasa.gov....\n"+
    3333            "wmsplugin.url.2.name=NPE Maps... etc\n\n"+
    34                    
     34
    3535            "Full WMS URL input format example (landsat)\n"+
    3636            "http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&\n"+
    37             "layers=global_mosaic&styles=&srs=EPSG:4326&\n"+
    38             "format=image/jpeg \n\n"+
    39            
     37            "layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg\n\n"+
     38
    4039            "For Metacarta's Map Rectifier http://labs.metacarta.com/rectifier/ , you only need to input the relevant 'id'.\n" +
    41             "To add a Metacarta Map Rectifier menu item, manually create the URL like in this example," +
    42             "replacing 73 with your image id: \n" +
     40            "To add a Metacarta Map Rectifier menu item, manually create the URL like in this example, " +
     41            "replacing 73 with your image id:\n" +
    4342            "http://labs.metacarta.com/rectifier/wms.cgi?id=73\n" +
    44             "&srs=EPSG:4326&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png\n" +
    45             " \n" +
     43            "&srs=EPSG:4326&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png\n\n" +
     44
    4645            "Note: Make sure the image is suitable, copyright-wise, if in doubt, don't use.");
    47        
     46
    4847        JTextPane tp = new JTextPane();
    4948          JScrollPane js = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
    5049                  JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    51          
    52          
     50
     51
    5352          js.getViewport().add(tp);
    5453          JFrame jf = new JFrame(tr("WMS Plugin Help"));
     
    5655          jf.pack();
    5756          jf.setSize(400,500);
    58           jf.setVisible(true); 
     57          jf.setVisible(true);
    5958          tp.setText(helptext);
    6059    }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java

    r13584 r15960  
    1 package wmsplugin; 
     1package wmsplugin;
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     
    2525
    2626    public WMSAdjustAction(MapFrame mapFrame) {
    27         super(tr("Adjust WMS"), "adjustwms", 
    28                         tr("Adjust the position of the selected WMS layer"), mapFrame, 
     27        super(tr("Adjust WMS"), "adjustwms",
     28                        tr("Adjust the position of the selected WMS layer"), mapFrame,
    2929                        ImageProvider.getCursor("normal", "move"));
    3030    }
     
    4545        if (e.getButton() != MouseEvent.BUTTON1)
    4646            return;
    47        
     47
    4848        Layer layer=Main.map.mapView.getActiveLayer();
    4949        if (layer.visible && layer instanceof WMSLayer) {
     
    6363                    Main.map.mapView.getEastNorth(e.getX(),e.getY());
    6464            selectedLayer.displace(
    65                 eastNorth.east()-prevEastNorth.east(), 
     65                eastNorth.east()-prevEastNorth.east(),
    6666                eastNorth.north()-prevEastNorth.north()
    6767            );
     
    7474        Main.map.mapView.repaint();
    7575        Main.map.mapView.setCursor(Cursor.getDefaultCursor());
    76         selectedImage = null;   
     76        selectedImage = null;
    7777        prevEastNorth = null;
    7878        selectedLayer = null;
     
    8888    @Override public void mouseClicked(MouseEvent e) {
    8989    }
    90    
     90
    9191    // This only makes the buttons look disabled, but since no keyboard shortcut is
    9292    // provided there aren't any other means to activate this tool
Note: See TracChangeset for help on using the changeset viewer.