Issue #697 fixed join issues with GFE
Change-Id: Idaaa9782865cd2299ba9fc8e18305df215f1d012 Former-commit-id:6b9d13211d
[formerlydac8374f52
] [formerly6b9d13211d
[formerlydac8374f52
] [formerly576dbcf340
[formerly e648206c2e8129b2d63b9309f67e1ce46a1edbf0]]] Former-commit-id:576dbcf340
Former-commit-id:86f4c94dc3
[formerly475623fe22
] Former-commit-id:8a0626ec3f
This commit is contained in:
parent
e3596980f5
commit
d915360713
2 changed files with 28 additions and 4 deletions
|
@ -97,19 +97,33 @@ public class SharedEditorsManager implements IRemoteDisplayContainer {
|
||||||
for (UserId uid : session.getVenue().getParticipants()) {
|
for (UserId uid : session.getVenue().getParticipants()) {
|
||||||
if (uid.getFQName().equals(userId)) {
|
if (uid.getFQName().equals(userId)) {
|
||||||
user = uid;
|
user = uid;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
int displayId = event.getDisplayId();
|
int displayId = event.getDisplayId();
|
||||||
|
RemoteDisplay requested = null;
|
||||||
for (DisplayData data : displayData.values()) {
|
for (DisplayData data : displayData.values()) {
|
||||||
if (data.displayId == displayId) {
|
if (data.displayId == displayId) {
|
||||||
CreateRemoteDisplay creation = new CreateRemoteDisplay();
|
requested = new RemoteDisplay(data.displayId,
|
||||||
creation.setDisplayId(displayId);
|
data.display);
|
||||||
creation.setDisplay(createRemoteDisplay(data.display));
|
|
||||||
sendEvent(creation);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (requested == null) {
|
||||||
|
requested = getActiveDisplay();
|
||||||
|
if (requested != null) {
|
||||||
|
ActivateRemoteDisplay activate = new ActivateRemoteDisplay();
|
||||||
|
activate.setDisplayId(requested.getDisplayId());
|
||||||
|
sendEvent(activate);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
CreateRemoteDisplay creation = new CreateRemoteDisplay();
|
||||||
|
creation.setDisplayId(requested.getDisplayId());
|
||||||
|
creation.setDisplay(createRemoteDisplay(requested
|
||||||
|
.getDisplay()));
|
||||||
|
sendEvent(creation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,6 +119,16 @@ public class CollaborationEditor extends EditorPart implements
|
||||||
@Override
|
@Override
|
||||||
public void createPartControl(Composite parent) {
|
public void createPartControl(Composite parent) {
|
||||||
paneManager.initializeComponents(paneManager, parent);
|
paneManager.initializeComponents(paneManager, parent);
|
||||||
|
|
||||||
|
RemoteDisplayRequested request = new RemoteDisplayRequested();
|
||||||
|
request.setDisplayId(-1);
|
||||||
|
request.setUserId(session.getUserID().getFQName());
|
||||||
|
try {
|
||||||
|
session.sendObjectToPeer(session.getCurrentDataProvider(), request);
|
||||||
|
} catch (CollaborationException e) {
|
||||||
|
Activator.statusHandler.handle(Priority.PROBLEM,
|
||||||
|
e.getLocalizedMessage(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue