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

Former-commit-id: 9f2d97fa68 [formerly 9f2d97fa68 [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 3a82f9690b
commit 3e54a2fd18
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 CreateSessionDialog dialog = new CreateSessionDialog(Display
.getCurrent().getActiveShell(), getSelectedUsers().size() > 0); .getCurrent().getActiveShell());
dialog.open(); dialog.open();
CreateSessionData result = (CreateSessionData) dialog.getReturnValue(); CreateSessionData result = (CreateSessionData) dialog.getReturnValue();

View file

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