// boolean zoomToSelection = SelectPlugin.getDefault().getPreferenceStore()
// .getBoolean(SelectionToolPreferencePage.ZOOM_TO_SELECTION);
boolean isNavigate = SelectPlugin.getDefault().getPreferenceStore()
.getBoolean(SelectionToolPreferencePage.NAVIGATE_SELECTION);
AOILayerStrategy strategy = getAOILayerStrategy();
ILayer activeLayer = strategy.getActiveLayer();
ILayer previousLayer = strategy.getPreviousLayer();
ILayer nextLayer = strategy.getNextLayer();
ILayer selectedLayer = activeLayer;
// change the layer we are looking at based on navigation
Geometry geometry = strategy.getGeometry();
Polygon testLocation = JTS.toGeometry(this.bbox);
if(isNavigate && (mouseEvent.button == MapMouseEvent.BUTTON3)){
if( previousLayer != null ){
selectedLayer = previousLayer;
}