issue #693 always allow to invite users after opening create session dialog

Former-commit-id: 179f2d7ffe [formerly 9f2d97fa68] [formerly b78d86bf04 [formerly 204c35530bbe8c7e39749d70331ceb93c4d4a790]]
Former-commit-id: b78d86bf04
Former-commit-id: 03ee9d8a90
This commit is contained in:
Matt Nash 2012-06-11 15:34:49 -05:00
parent 945b47e29e
commit 4b5af450d1
2 changed files with 40 additions and 45 deletions

View file

@ -1064,7 +1064,7 @@ public class CollaborationGroupView extends CaveFloatingView implements
}
CreateSessionDialog dialog = new CreateSessionDialog(Display
.getCurrent().getActiveShell(), getSelectedUsers().size() > 0);
.getCurrent().getActiveShell());
dialog.open();
CreateSessionData result = (CreateSessionData) dialog.getReturnValue();

View file

@ -76,15 +76,12 @@ public class CreateSessionDialog extends CaveSWTDialog {
private Button inviteUsers;
private boolean showInvite;
private StyledText inviteMessageTF;
private Label inviteLabel;
public CreateSessionDialog(Shell parentShell, boolean showInvite) {
public CreateSessionDialog(Shell parentShell) {
super(parentShell);
this.showInvite = showInvite;
setText("Create Session");
}
@ -122,7 +119,6 @@ public class CreateSessionDialog extends CaveSWTDialog {
sharedSessionDisplay.setLayoutData(gd);
sharedSessionDisplay.setText("Create Shared Display Session");
if (showInvite) {
inviteUsers = new Button(body, SWT.CHECK);
inviteUsers.setSelection(true);
gd = new GridData(SWT.DEFAULT, SWT.DEFAULT, false, false);
@ -164,7 +160,6 @@ public class CreateSessionDialog extends CaveSWTDialog {
});
inviteLabel.setVisible(true);
inviteMessageTF.setVisible(true);
}
return body;
}