Changeset 2804 in josm


Ignore:
Timestamp:
Jan 10, 2010 12:46:10 PM (3 years ago)
Author:
stoecker
Message:

typos

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java

    r2801 r2804  
    3434    private JTextField tfRequestTokenURL; 
    3535    private JTextField tfAccessTokenURL; 
    36     private JTextField tfAutoriseURL; 
     36    private JTextField tfAuthoriseURL; 
    3737    private UseDefaultItemListener ilUseDefault; 
    3838 
     
    9595 
    9696 
    97         // -- autorise URL 
     97        // -- authorise URL 
    9898        gc.gridy = 5; 
    9999        gc.gridx = 0; 
    100100        gc.weightx = 0.0; 
    101         add(new JLabel(tr("Autorise URL:")), gc); 
    102  
    103         gc.gridx = 1; 
    104         gc.weightx = 1.0; 
    105         add(tfAutoriseURL = new JTextField(), gc); 
    106         SelectAllOnFocusGainedDecorator.decorate(tfAutoriseURL); 
     101        add(new JLabel(tr("Authorise URL:")), gc); 
     102 
     103        gc.gridx = 1; 
     104        gc.weightx = 1.0; 
     105        add(tfAuthoriseURL = new JTextField(), gc); 
     106        SelectAllOnFocusGainedDecorator.decorate(tfAuthoriseURL); 
    107107 
    108108        cbUseDefaults.addItemListener(ilUseDefault = new UseDefaultItemListener()); 
     
    115115        || ! tfRequestTokenURL.getText().equals( OAuthParameters.DEFAULT_REQUEST_TOKEN_URL) 
    116116        || ! tfAccessTokenURL.getText().equals( OAuthParameters.DEFAULT_ACCESS_TOKEN_URL) 
    117         || ! tfAutoriseURL.getText().equals( OAuthParameters.DEFAULT_AUTHORISE_URL); 
     117        || ! tfAuthoriseURL.getText().equals( OAuthParameters.DEFAULT_AUTHORISE_URL); 
    118118    } 
    119119 
     
    156156        tfRequestTokenURL.setText(OAuthParameters.DEFAULT_REQUEST_TOKEN_URL); 
    157157        tfAccessTokenURL.setText(OAuthParameters.DEFAULT_ACCESS_TOKEN_URL); 
    158         tfAutoriseURL.setText(OAuthParameters.DEFAULT_AUTHORISE_URL); 
     158        tfAuthoriseURL.setText(OAuthParameters.DEFAULT_AUTHORISE_URL); 
    159159 
    160160        setChildComponentsEnabled(false); 
     
    182182        parameters.setRequestTokenUrl(tfRequestTokenURL.getText()); 
    183183        parameters.setAccessTokenUrl(tfAccessTokenURL.getText()); 
    184         parameters.setAuthoriseUrl(tfAutoriseURL.getText()); 
     184        parameters.setAuthoriseUrl(tfAuthoriseURL.getText()); 
    185185        return parameters; 
    186186    } 
     
    204204            tfRequestTokenURL.setText(parameters.getRequestTokenUrl() == null ? "" : parameters.getRequestTokenUrl()); 
    205205            tfAccessTokenURL.setText(parameters.getAccessTokenUrl() == null ? "" : parameters.getAccessTokenUrl()); 
    206             tfAutoriseURL.setText(parameters.getAuthoriseUrl() == null ? "" : parameters.getAuthoriseUrl()); 
     206            tfAuthoriseURL.setText(parameters.getAuthoriseUrl() == null ? "" : parameters.getAuthoriseUrl()); 
    207207        } 
    208208    } 
     
    230230            tfRequestTokenURL.setText(pref.get("oauth.settings.request-token-url", "")); 
    231231            tfAccessTokenURL.setText(pref.get("oauth.settings.access-token-url", "")); 
    232             tfAutoriseURL.setText(pref.get("oauth.settings.authorise-url", "")); 
     232            tfAuthoriseURL.setText(pref.get("oauth.settings.authorise-url", "")); 
    233233            setChildComponentsEnabled(true); 
    234234        } 
     
    256256            pref.put("oauth.settings.request-token-url", tfRequestTokenURL.getText().trim()); 
    257257            pref.put("oauth.settings.access-token-url", tfAccessTokenURL.getText().trim()); 
    258             pref.put("oauth.settings.authorise-url", tfAutoriseURL.getText().trim()); 
     258            pref.put("oauth.settings.authorise-url", tfAuthoriseURL.getText().trim()); 
    259259        } 
    260260    } 
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorisationUI.java

    r2801 r2804  
    451451        protected void finish() {} 
    452452 
    453         protected void alertAutorisationFailed(OsmOAuthAuthorisationException e) { 
     453        protected void alertAuthorisationFailed(OsmOAuthAuthorisationException e) { 
    454454            HelpAwareOptionPane.showOptionDialog( 
    455455                    FullyAutomaticAuthorisationUI.this, 
     
    463463                    tr("OAuth authorisation failed"), 
    464464                    JOptionPane.ERROR_MESSAGE, 
    465                     HelpUtil.ht("/Dialog/OAuthAutorisationWizard#FullyAutomaticProcessFailed") 
     465                    HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") 
    466466            ); 
    467467        } 
     
    473473                            + "The automatic process for retrieving an OAuth Access Token<br>" 
    474474                            + "from the OSM server failed because JOSM wasn't able to build<br>" 
    475                             + "a valid login URL from the OAuth Autorise Endpoint URL ''{0}''.<br><br>" 
     475                            + "a valid login URL from the OAuth Authorise Endpoint URL ''{0}''.<br><br>" 
    476476                            + "Please check your advanced setting and try again." 
    477477                            +"</html>", 
     
    480480                    tr("OAuth authorisation failed"), 
    481481                    JOptionPane.ERROR_MESSAGE, 
    482                     HelpUtil.ht("/Dialog/OAuthAutorisationWizard#FullyAutomaticProcessFailed") 
     482                    HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") 
    483483            ); 
    484484        } 
     
    505505                    tr("OAuth authorisation failed"), 
    506506                    JOptionPane.ERROR_MESSAGE, 
    507                     HelpUtil.ht("/Dialog/OAuthAutorisationWizard#FullyAutomaticProcessFailed") 
     507                    HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") 
    508508            ); 
    509509        } 
     
    515515                        alertLoginFailed((OsmLoginFailedException)e); 
    516516                    } else { 
    517                         alertAutorisationFailed(e); 
     517                        alertAuthorisationFailed(e); 
    518518                    } 
    519519                } 
  • trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorisationClient.java

    r2801 r2804  
    435435            int retCode = connection.getResponseCode(); 
    436436            if (retCode != HttpURLConnection.HTTP_MOVED_TEMP) 
    437                 throw new OsmOAuthAuthorisationException(tr("Failed to autorise OAuth request  ''{0}''", requestToken.getKey())); 
     437                throw new OsmOAuthAuthorisationException(tr("Failed to authorise OAuth request  ''{0}''", requestToken.getKey())); 
    438438        } catch(MalformedURLException e) { 
    439439            throw new OsmOAuthAuthorisationException(e); 
  • trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorisationUI.java

    r2801 r2804  
    234234            gc.weightx = 0.0; 
    235235            gc.gridwidth = 1; 
    236             pnl.add(new JLabel(tr("Autorise URL:")), gc); 
     236            pnl.add(new JLabel(tr("Authorise URL:")), gc); 
    237237 
    238238            gc.gridx = 1; 
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java

    r2801 r2804  
    4848 
    4949    private JPanel pnlAuthorisationMessage; 
    50     private NotYetAuthorisedPanel pnlNotYetAutorised; 
    51     private AlreadyAuthorisedPanel pnlAlreadyAutorised; 
     50    private NotYetAuthorisedPanel pnlNotYetAuthorised; 
     51    private AlreadyAuthorisedPanel pnlAlreadyAuthorised; 
    5252    private AdvancedOAuthPropertiesPanel pnlAdvancedProperties; 
    5353    private String apiUrl; 
     
    123123        // create these two panels, they are going to be used later in refreshView 
    124124        // 
    125         pnlAlreadyAutorised = new AlreadyAuthorisedPanel(); 
    126         pnlNotYetAutorised = new NotYetAuthorisedPanel(); 
     125        pnlAlreadyAuthorised = new AlreadyAuthorisedPanel(); 
     126        pnlNotYetAuthorised = new NotYetAuthorisedPanel(); 
    127127    } 
    128128 
     
    130130        pnlAuthorisationMessage.removeAll(); 
    131131        if (OAuthAccessTokenHolder.getInstance().containsAccessToken()) { 
    132             pnlAuthorisationMessage.add(pnlAlreadyAutorised, BorderLayout.CENTER); 
    133             pnlAlreadyAutorised.refreshView(); 
    134             pnlAlreadyAutorised.revalidate(); 
     132            pnlAuthorisationMessage.add(pnlAlreadyAuthorised, BorderLayout.CENTER); 
     133            pnlAlreadyAuthorised.refreshView(); 
     134            pnlAlreadyAuthorised.revalidate(); 
    135135        } else { 
    136             pnlAuthorisationMessage.add(pnlNotYetAutorised, BorderLayout.CENTER); 
    137             pnlNotYetAutorised.revalidate(); 
     136            pnlAuthorisationMessage.add(pnlNotYetAuthorised, BorderLayout.CENTER); 
     137            pnlNotYetAuthorised.revalidate(); 
    138138        } 
    139139        repaint(); 
Note: See TracChangeset for help on using the changeset viewer.