### Eclipse Workspace Patch 1.0 #P org.guvnor.tools Index: src/org/guvnor/tools/properties/RepositoryElementPropsDialog.java =================================================================== --- src/org/guvnor/tools/properties/RepositoryElementPropsDialog.java (revision 32436) +++ src/org/guvnor/tools/properties/RepositoryElementPropsDialog.java (working copy) @@ -91,12 +91,12 @@ new Label(composite, SWT.NONE).setText(Messages.getString("user.name")); //$NON-NLS-1$ unField = new Text(composite, SWT.SINGLE | SWT.BORDER); unField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - unField.setEditable(false); + unField.setEditable(true); new Label(composite, SWT.NONE).setText(Messages.getString("password")); //$NON-NLS-1$ pwField = new Text(composite, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD); pwField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - pwField.setEditable(false); + pwField.setEditable(true); populateSecuritySettings(); } @@ -134,4 +134,16 @@ .getString("guvnor.resource.properties.title")); //$NON-NLS-1$ } + @Override + protected void okPressed() { + try { + PlatformUtils.getInstance().updateAuthentication(node.getGuvnorRepository().getLocation(), unField.getText(), pwField.getText(), true); + } catch (Exception e) { + Activator.getDefault().writeLog(IStatus.ERROR, e.getMessage(), e); + } + + super.okPressed(); + } + + }