Examples of PasswordDialog


Examples of com.barrybecker4.ui.dialogs.PasswordDialog

    /**
     * Allow user to edit the current story if they know the password.
     */
    public void editStory() {
        // show password dialog.
        PasswordDialog pwDlg = new PasswordDialog(PASSWORD);
        boolean canceled = pwDlg.showDialog();
        if ( canceled ) return;

        StoryEditorDialog storyEditor = new StoryEditorDialog(story_);
        boolean editingCanceled = storyEditor.showDialog();
        if (!editingCanceled) {
View Full Code Here

Examples of it.baeyens.arduino.ui.PasswordDialog

      if (root.nodeExists(nodename)) {
    myPassword = node.get("password", null);
    myLogin = node.get("login", null);
      }
      if (myPassword == null) {
    PasswordDialog dialog = new PasswordDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (myLogin != null)
        dialog.setUser(myLogin);
    dialog.sethost(host);
    // get the new values from the dialog
    if (dialog.open() == Window.OK) {
        myLogin = dialog.getUser();
        myPassword = dialog.getPassword();
        node.put("login", myLogin, false);
        node.put("password", myPassword, true);
    } else {
        return false;
    }
View Full Code Here

Examples of name.abuchen.portfolio.ui.dialogs.PasswordDialog

        File localFile = new File(path);
        char[] password = null;

        if (ClientFactory.isEncrypted(localFile))
        {
            PasswordDialog pwdDialog = new PasswordDialog(shell);
            if (pwdDialog.open() != PasswordDialog.OK)
                return;
            password = pwdDialog.getPassword().toCharArray();
        }

        try
        {
            clientFile = localFile;
View Full Code Here

Examples of net.ftb.gui.dialogs.PasswordDialog

    private void doLogin (final String username, String password, String mojangData, String selectedProfile) {
        if (ModPack.getSelectedPack().getDisclaimer() != null && !ModPack.getSelectedPack().getDisclaimer().isEmpty()) {
            ErrorUtils.tossError(ModPack.getSelectedPack().getDisclaimer());
        }
        if ((mojangData == null || mojangData.isEmpty()) && password.isEmpty()) {
            PasswordDialog p = new PasswordDialog(this, true);
            p.setVisible(true);
            if (tempPass.isEmpty()) {
                enableObjects();
                return;
            }
            password = tempPass;
View Full Code Here

Examples of net.ftb.gui.dialogs.PasswordDialog

        }

        if (hasMojangData) {
            Logger.logError("Failed to authenticate with mojang data, attempting to use username & password");
            if (!hasPassword) {
                new PasswordDialog(LaunchFrame.getInstance(), true).setVisible(true);
                if (LaunchFrame.tempPass.isEmpty()) {
                    return null;
                }
                pass = LaunchFrame.tempPass;
            }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.PasswordDialog

        {
            PasswordValueEditorRawValueWrapper wrapper = ( PasswordValueEditorRawValueWrapper ) value;
            if ( wrapper.password != null && wrapper.password instanceof byte[] )
            {
                byte[] pw = ( byte[] ) wrapper.password;
                PasswordDialog dialog = new PasswordDialog( shell, pw, wrapper.entry );
                if ( dialog.open() == TextDialog.OK )
                {
                    setValue( dialog.getNewPassword() );
                    return true;
                }
            }
        }
        return false;
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.PasswordDialog

        {
            PasswordValueEditorRawValueWrapper wrapper = ( PasswordValueEditorRawValueWrapper ) value;
            if ( wrapper.password != null && wrapper.password instanceof byte[] )
            {
                byte[] pw = ( byte[] ) wrapper.password;
                PasswordDialog dialog = new PasswordDialog( shell, pw, wrapper.entry );
                if ( dialog.open() == TextDialog.OK )
                {
                    setValue( dialog.getNewPassword() );
                    return true;
                }
            }
        }
        return false;
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.PasswordDialog

        PlatformUI.getWorkbench().getDisplay().syncExec( new Runnable()
        {
            public void run()
            {
                PasswordDialog dialog = new PasswordDialog(
                    PlatformUI.getWorkbench().getDisplay().getActiveShell(),
                    NLS.bind(
                        Messages.getString( "UIAuthHandler.EnterPasswordFor" ), new String[] { connectionParameter.getName() } ), //$NON-NLS-1$
                    NLS.bind(
                        Messages.getString( "UIAuthHandler.PleaseEnterPasswordOfUser" ), connectionParameter.getBindPrincipal() ), "" ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$

                if ( dialog.open() == PasswordDialog.OK )
                {
                    password[0] = dialog.getPassword();
                }
            }
        } );

        if ( password[0] != null )
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.PasswordDialog

                {
                    // Getting the shell
                    Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();

                    // We ask the user for the keystore password
                    PasswordDialog passwordDialog = new PasswordDialog( shell, Messages
                        .getString( "PasswordsKeyStoreManagerUtils.VerifyMasterPassword" ), //$NON-NLS-1$
                        Messages.getString( "PasswordsKeyStoreManagerUtils.PleaseEnterMasterPassword" ), null ); //$NON-NLS-1$

                    if ( passwordDialog.open() == PasswordDialog.CANCEL )
                    {
                        // The user cancelled the action
                        keystoreLoaded[0] = false;
                        return;
                    }

                    // Getting the password
                    String masterPassword = passwordDialog.getPassword();

                    // Checking the password
                    Exception checkPasswordException = null;
                    try
                    {
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.PasswordDialog

            connectionsPasswordsBackup.clear();

            while ( true )
            {
                // We ask the user for the keystore password
                PasswordDialog passwordDialog = new PasswordDialog(
                    enableKeystoreCheckbox.getShell(),
                    Messages.getString( "PasswordsKeystorePreferencePage.VerifyMasterPassword" ), Messages.getString( "PasswordsKeystorePreferencePage.PleaseEnterYourMasterPassword" ), //$NON-NLS-1$ //$NON-NLS-2$
                    null );

                if ( passwordDialog.open() == PasswordDialog.CANCEL )
                {
                    // The user cancelled the action
                    return false;
                }

                // Getting the password
                String password = passwordDialog.getPassword();

                // Checking the password
                Exception checkPasswordException = null;
                try
                {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.