2c2 < * @(#)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 7a14,16 > import CH.ifa.draw.framework.*; > import CH.ifa.draw.util.UndoableTool; > import CH.ifa.draw.util.UndoableHandle; 10,11d18 < import java.util.Vector; < import CH.ifa.draw.framework.*; 25a33,34 > * > * @version <$CURRENT_VERSION$> 39,40c48 < public void mouseDown(MouseEvent e, int x, int y) < { --- > public void mouseDown(MouseEvent e, int x, int y) { 44c52 < if (fChild != null) --- > if (fChild != null) { 45a54 > } 65a75 > fChild.activate(); 73c83 < if (fChild != null) // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp --- > if (fChild != null) { // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp 75a86 > } 83c94 < if (fChild != null) // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp --- > if (fChild != null) { // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp 84a96 > fChild.deactivate(); 86a99 > } 92c105 < return new HandleTracker(view, handle); --- > return new HandleTracker(view, new UndoableHandle(handle, view)); 99c112 < return new DragTracker(view, f); --- > return new UndoableTool(new DragTracker(view, f));