private void clearSelection() {
getMarkerSelection().clear();
}
private MarkerSelection getMarkerSelection() {
MapPerProject activeMap = CodemapCore.getPlugin().getActiveMap();
MarkerSelection selection = selectionCache.get(activeMap);
if (selection == null) {
selection = new MarkerSelection();
selectionCache.put(activeMap, selection);
MarkersOverlay markersOverlay = new MarkersOverlay();
markersOverlay.setMarkerSelection(selection);
activeMap.addSelectionLayer(markersOverlay, selection.getSelection());
}
return selection;
}