Skip to content

Commit

Permalink
un-showed the edit-user-dialog when creating new user if no plug-in that
Browse files Browse the repository at this point in the history
needs it is added
  • Loading branch information
KlasJoensson committed Sep 5, 2012
1 parent 3d50399 commit b70b147
Showing 1 changed file with 18 additions and 15 deletions.
Expand Up @@ -128,24 +128,27 @@ protected Control createDialogArea(Composite parent) {
public void widgetSelected(SelectionEvent e) {

CreateUserDialog createDialog =
new CreateUserDialog( PlatformUI
.getWorkbench()
.getActiveWorkbenchWindow()
.getShell(),
userContainer );
new CreateUserDialog( PlatformUI
.getWorkbench()
.getActiveWorkbenchWindow()
.getShell(),
userContainer );
createDialog.open();
if(createDialog.getReturnCode() == Window.OK) {
close();
EditUserDialog dialog =
new EditUserDialog( PlatformUI
.getWorkbench()
.getActiveWorkbenchWindow()
.getShell(),
userContainer );
dialog.open();
if(dialog.getReturnCode() == Window.OK) {
userContainerEdited = true;
}
if (userContainer.getAvailableAccountTypes().length != 0) {
EditUserDialog dialog =
new EditUserDialog( PlatformUI
.getWorkbench()
.getActiveWorkbenchWindow()
.getShell(),
userContainer );
dialog.open();
if(dialog.getReturnCode() == Window.OK) {
userContainerEdited = true;
}
} else
userContainerEdited = true;
}
}
});
Expand Down

0 comments on commit b70b147

Please sign in to comment.