Package org.openstreetmap.josm.gui.io

Examples of org.openstreetmap.josm.gui.io.CredentialDialog$SelectAllOnFocusHandler


        } else if (noSuccessWithLastResponse || username.isEmpty() || password.isEmpty()) {
            if (!GraphicsEnvironment.isHeadless()) {
                GuiHelper.runInEDTAndWait(new Runnable() {
                    @Override
                    public void run() {
                        CredentialDialog dialog = null;
                        if (requestorType.equals(RequestorType.PROXY))
                            dialog = CredentialDialog.getHttpProxyCredentialDialog(
                                    username, password, host, getSaveUsernameAndPasswordCheckboxText());
                        else
                            dialog = CredentialDialog.getOsmApiCredentialDialog(
                                    username, password, host, getSaveUsernameAndPasswordCheckboxText());
                        dialog.setVisible(true);
                        response.setCanceled(dialog.isCanceled());
                        if (dialog.isCanceled())
                            return;
                        response.setUsername(dialog.getUsername());
                        response.setPassword(dialog.getPassword());
                        response.setSaveCredentials(dialog.isSaveCredentials());
                    }
                });
            }
            if (response.isCanceled() || response.getUsername() == null || response.getPassword() == null) {
                return response;
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.io.CredentialDialog$SelectAllOnFocusHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.