Issue #697 Fixed recycling of grid vector resource, and made cursor change when drawing and only send clear_all if session leader
Change-Id: I78fbb17c7513e881ddf47d0bcd0ce8333e5740ff Former-commit-id:74b2579091
[formerly9d96a272ec
] [formerlye10ece6081
] [formerly048484f689
[formerlye10ece6081
[formerly 08d8389ea3b23e7fe209d12ff45275f86d3c5883]]] Former-commit-id:048484f689
Former-commit-id: 59103a0ff7438a9a26c1fc5ba0937180579bbe64 [formerly7df41dbc88
] Former-commit-id:6e55d73543
This commit is contained in:
parent
e215aa65cb
commit
9a15a558d4
3 changed files with 8 additions and 5 deletions
|
@ -131,10 +131,12 @@ public class CollaborationDrawingResource extends
|
|||
ColorableCapability colorable = getCapability(ColorableCapability.class);
|
||||
colorable.setSuppressingMenuItems(true);
|
||||
|
||||
CollaborationDrawingEvent event = new CollaborationDrawingEvent();
|
||||
event.setUserName(myUser);
|
||||
event.setType(CollaborationEventType.CLEAR_ALL);
|
||||
sendEvent(event);
|
||||
if (isSessionLeader()) {
|
||||
CollaborationDrawingEvent event = new CollaborationDrawingEvent();
|
||||
event.setUserName(myUser);
|
||||
event.setType(CollaborationEventType.CLEAR_ALL);
|
||||
sendEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
manager = new CollaborationDrawingUIManager(this);
|
||||
|
|
|
@ -200,7 +200,7 @@ public class DrawingToolUIManager extends InputAdapter {
|
|||
}
|
||||
|
||||
protected boolean canTellestrate(int mouseButton) {
|
||||
return handlingInput == false && mouseButton == 1
|
||||
return handlingInput == false && mouseButton <= 1
|
||||
&& drawingLayer.getDrawMode() != DrawMode.NONE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -843,6 +843,7 @@ public abstract class AbstractMapVectorResource extends
|
|||
}
|
||||
|
||||
getDataObjectMap().clear();
|
||||
retrievedAllData = false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue