if (keyFile.length() > 0) SVNUIPlugin.getPlugin().getRepositoryManager().getKeyFilesManager().addKeyFile(keyFile);
if (keyFile != null && keyFile.length() > 0) SVNUIPlugin.getPlugin().getRepositoryManager().getKeyFilesManager().addKeyFile(keyFile);
    protected void okPressed() {    	portError = false;    	try {    		sshPort = Integer.parseInt(sshPortText.getText().trim());    	} catch (Exception e) {    		portError = true;    		MessageDialog.openError(getShell(), Policy.bind("SSHPromptDialog.invalidPortTitle"), Policy.bind("SSHPromptDialog.invalidPortMessage")); //$NON-NLS-1$ //$NON-NLS-1$    	}    	if (portError) return;        username = userText.getText().trim();        password = passwordText.getText().trim();        keyFile = keyFileCombo.getText().trim();        passphrase = passphraseText.getText().trim();        if (maySave) save = saveButton.getSelection();        if (keyFile.length() > 0) SVNUIPlugin.getPlugin().getRepositoryManager().getKeyFilesManager().addKeyFile(keyFile);        super.okPressed();    }