[udig-devel] Does anybody know another Selection Tool than "Box selection"?

Sergiy Doroshenko dorserg at gmail.com
Wed Mar 21 15:16:31 PDT 2007


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.


More information about the udig-devel mailing list