Issue #429 change name of editor sharing
Former-commit-id:ac3b674bf3
[formerly9b7a839cdd
[formerly 199c8c6af547dc66e8cb068e2617a96f3b68d515]] Former-commit-id:9b7a839cdd
Former-commit-id:dfba9a1d0d
This commit is contained in:
parent
69675cf20b
commit
6e59bde3d7
6 changed files with 23 additions and 22 deletions
|
@ -275,7 +275,8 @@ public class CollaborationDataManager implements IRosterEventSubscriber {
|
||||||
SessionContainer container = SharedDisplaySessionMgr
|
SessionContainer container = SharedDisplaySessionMgr
|
||||||
.getSessionContainer(session.getSessionId());
|
.getSessionContainer(session.getSessionId());
|
||||||
container.setCollaborationEditor(editor);
|
container.setCollaborationEditor(editor);
|
||||||
editor.setTabTitle(((IVenueSession) session).getSubject());
|
editor.setTabTitle(((IVenueSession) session).getVenue().getInfo()
|
||||||
|
.getVenueDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -172,7 +172,10 @@ public class EditorSetup {
|
||||||
desc.getResourceList().instantiateResources(desc, true);
|
desc.getResourceList().instantiateResources(desc, true);
|
||||||
SharedEditorIndicatorRsc rsc = (SharedEditorIndicatorRsc) rp
|
SharedEditorIndicatorRsc rsc = (SharedEditorIndicatorRsc) rp
|
||||||
.getResource();
|
.getResource();
|
||||||
rsc.setSubject(((IVenueSession) session).getSubject());
|
rsc.setRoomName(((IVenueSession) session).getVenue().getInfo()
|
||||||
|
.getVenueDescription());
|
||||||
|
rsc.setSubject(((IVenueSession) session).getVenue().getInfo()
|
||||||
|
.getVenueSubject());
|
||||||
|
|
||||||
// TODO we need to track editors associated with a session
|
// TODO we need to track editors associated with a session
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,8 @@ import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
||||||
public class SharedEditorIndicatorRsc extends
|
public class SharedEditorIndicatorRsc extends
|
||||||
AbstractVizResource<GenericResourceData, IDescriptor> {
|
AbstractVizResource<GenericResourceData, IDescriptor> {
|
||||||
|
|
||||||
|
protected String roomName;
|
||||||
|
|
||||||
protected String subject;
|
protected String subject;
|
||||||
|
|
||||||
public SharedEditorIndicatorRsc(GenericResourceData resourceData,
|
public SharedEditorIndicatorRsc(GenericResourceData resourceData,
|
||||||
|
@ -75,7 +77,15 @@ public class SharedEditorIndicatorRsc extends
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "Sharing with " + subject;
|
String text = "Sharing with " + roomName;
|
||||||
|
if (!"".equals(subject)) {
|
||||||
|
text += " (" + subject + ")";
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoomName(String name) {
|
||||||
|
this.roomName = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSubject(String subject) {
|
public void setSubject(String subject) {
|
||||||
|
|
|
@ -80,21 +80,6 @@ public interface IVenueSession extends ISession, IEventPublisher {
|
||||||
*/
|
*/
|
||||||
boolean hasRole(ParticipantRole role);
|
boolean hasRole(ParticipantRole role);
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the subject of this collaboration venue conversation.
|
|
||||||
*
|
|
||||||
* @param subject
|
|
||||||
* The subject.
|
|
||||||
*/
|
|
||||||
void setSubject(String subject);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the subject of this collaboration venue conversation.
|
|
||||||
*
|
|
||||||
* @return The subject.
|
|
||||||
*/
|
|
||||||
String getSubject();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a Collaboration message.
|
* Send a Collaboration message.
|
||||||
*
|
*
|
||||||
|
|
|
@ -801,5 +801,4 @@ public class VenueSession extends BaseSession implements IVenueSession,
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,9 +227,12 @@ public class PathDrawingTool extends AbstractDrawingTool {
|
||||||
|
|
||||||
editor.unregisterMouseHandler(getMouseHandler());
|
editor.unregisterMouseHandler(getMouseHandler());
|
||||||
// change the cursor back
|
// change the cursor back
|
||||||
Cursor cursor = new Cursor(Display.getCurrent(), SWT.CURSOR_ARROW);
|
if (Display.getCurrent() != null
|
||||||
Display.getCurrent().getActiveShell().setCursor(cursor);
|
&& Display.getCurrent().getActiveShell() != null) {
|
||||||
cursor.dispose();
|
Cursor cursor = new Cursor(Display.getCurrent(), SWT.CURSOR_ARROW);
|
||||||
|
Display.getCurrent().getActiveShell().setCursor(cursor);
|
||||||
|
cursor.dispose();
|
||||||
|
}
|
||||||
theDrawingLayer = null;
|
theDrawingLayer = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue