Issue #429 alert of new messages when in background
Former-commit-id: 8e8fbe73b41f6457c085ab11939fdbd1242d4383
This commit is contained in:
parent
328d7e1287
commit
f314b2475d
2 changed files with 6 additions and 3 deletions
|
@ -44,6 +44,7 @@ import org.eclipse.swt.widgets.Label;
|
|||
import org.eclipse.ui.IPartListener;
|
||||
import org.eclipse.ui.IWorkbenchPart;
|
||||
import org.eclipse.ui.part.ViewPart;
|
||||
import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
|
||||
|
||||
import com.raytheon.uf.viz.collaboration.comm.identity.IMessage;
|
||||
import com.raytheon.uf.viz.collaboration.comm.identity.user.ParticipantRole;
|
||||
|
@ -245,6 +246,10 @@ public abstract class AbstractSessionView extends ViewPart implements
|
|||
|
||||
public void appendMessage(String fqName, String name, long timestamp,
|
||||
String body) {
|
||||
IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) getSite()
|
||||
.getAdapter(IWorkbenchSiteProgressService.class);
|
||||
service.warnOfContentChange();
|
||||
|
||||
// String fqName = message.getFrom().getFQName();
|
||||
// String name = message.getFrom().getName();
|
||||
if (name == null) {
|
||||
|
@ -349,8 +354,6 @@ public abstract class AbstractSessionView extends ViewPart implements
|
|||
*/
|
||||
@Override
|
||||
public void partBroughtToTop(IWorkbenchPart part) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -155,9 +155,9 @@ public class CollaborationDrawingLayer extends DrawingLayer {
|
|||
public void handle(IDisplayEvent event) {
|
||||
if (event instanceof ClearDrawingEvent) {
|
||||
resetTemp();
|
||||
clearSelfShapes(((ClearDrawingEvent) event).getUserName());
|
||||
// TODO check if session leader, otherwise only remove my wireframe
|
||||
// shapes
|
||||
clearSelfShapes(((ClearDrawingEvent) event).getUserName());
|
||||
if (/* if session leader */false) {
|
||||
disposeInternal();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue