// so we have to handle them separately.
repaintIfRequired(newHighlights, parameters.nearestSegment);
} else {
// don't call buildDeleteCommands for DeleteMode.segment because it doesn't support
// silent operation and SplitWayAction will show dialogs. A lot.
Command delCmd = buildDeleteCommands(e, modifiers, true);
if(delCmd != null) {
// all other cases delete OsmPrimitives directly, so we can
// safely do the following
for(OsmPrimitive osm : delCmd.getParticipatingPrimitives()) {
newHighlights.add(osm);
}
}
repaintIfRequired(newHighlights, null);
}