2,2c2,2 < * @(#)SelectionTool.java 5.2 --- > * @(#)SelectionTool.java 3a4,9 > * Project: JHotdraw - a GUI framework for technical drawings > * http://www.jhotdraw.org > * http://jhotdraw.sourceforge.net > * Copyright: © by the original author(s) and all contributors > * License: Lesser GNU Public License (LGPL) > * http://www.opensource.org/licenses/lgpl-license.html 10,10d13 < import java.util.Vector; 11a15,16 > import CH.ifa.draw.util.UndoableTool; > import CH.ifa.draw.util.UndoableHandle; 11,11c14,14 < import CH.ifa.draw.framework.*; --- > import CH.ifa.draw.framework.*; 25a33,34 > * > * @version <$CURRENT_VERSION$> 39,39c48,48 < public void mouseDown(MouseEvent e, int x, int y) --- > public void mouseDown(MouseEvent e, int x, int y) { 40,40d48 < { 44,44c52,52 < if (fChild != null) --- > if (fChild != null) { 45a54,54 > } 65a75,75 > fChild.activate(); 73,73c83,83 < if (fChild != null) // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp --- > if (fChild != null) { // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp 75a86,86 > } 83,83c94,94 < if (fChild != null) // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp --- > if (fChild != null) { // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp 84a96,96 > fChild.deactivate(); 86a99,99 > } 92,92c105,105 < return new HandleTracker(view, handle); --- > return new HandleTracker(view, new UndoableHandle(handle, view)); 99,99c112,112 < return new DragTracker(view, f); --- > return new UndoableTool(new DragTracker(view, f));