Thanks, Jesse!
At this moment we can make the tool working by little cheat.
I comment and uncomment something in sendSelectionCommand method:
ILayer selectedLayer = getContext().getSelectedLayer();
if (!e.isShiftDown() && !e.isControlDown()) {
command =
getContext().getSelectionFactory().createSelectCommand(
selectedLayer, getNewFilter(bounds,
false));
// command = getContext().getSelectionFactory()
// .createBBoxSelectionCommand(bounds,
// BBoxSelectionCommand.NONE);
} else {
command =
getContext().getSelectionFactory().createSelectCommand(
selectedLayer, getNewFilter(bounds,
true));
// command = getContext().getSelectionFactory()
// .createBBoxSelectionCommand(bounds,
// BBoxSelectionCommand.ADD);
}
Now the tool works well.
May be it's not very good for productivity? But problem isn't
straightforward therefore now I use this modified tool.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel