if (source instanceof MouseEvent) {
releasedEvent = ((MouseEvent) source).getID() == MouseEvent.MOUSE_RELEASED;
} else if (source instanceof Boolean) {
releasedEvent = (Boolean) source;
}
<BUG>boolean isMultiSelection = false; // default is single selection</BUG>
List<Graphic> selectedGraphics =
view2d == null ? Collections.emptyList() : view2d.getGraphicManager().getSelectedGraphics();
<BUG>isMultiSelection = selectedGraphics.size() > 1;
</BUG>
List<MeasureItem> measList = null;

if (source instanceof MouseEvent) {
releasedEvent = ((MouseEvent) source).getID() == MouseEvent.MOUSE_RELEASED;
} else if (source instanceof Boolean) {
releasedEvent = (Boolean) source;
}
List<Graphic> selectedGraphics =
view2d == null ? Collections.emptyList() : view2d.getGraphicManager().getSelectedGraphics();
boolean isMultiSelection = selectedGraphics.size() > 1;
List<MeasureItem> measList = null;
