2c2 < * @(#)ChangeConnectionEndHandle.java 5.2 --- > * @(#)ChangeConnectionEndHandle.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 8,9d13 < import java.awt.Point; < 10a15,18 > import CH.ifa.draw.standard.*; > import CH.ifa.draw.util.Undoable; > import CH.ifa.draw.util.UndoableAdapter; > import java.awt.Point; 14a23,24 > * > * @version <$CURRENT_VERSION$> 16d25 < 30c39 < return fConnection.end(); --- > return getConnection().getEndConnector(); 37c46 < fConnection.disconnectEnd(); --- > getConnection().disconnectEnd(); 44c53 < fConnection.connectEnd(c); --- > getConnection().connectEnd(c); 51c60 < fConnection.endPoint(x, y); --- > getConnection().endPoint(x, y); 58c67 < return fConnection.endPoint(); --- > return getConnection().endPoint(); 59a69,79 > > /** > * Factory method for undo activity > */ > protected Undoable createUndoActivity() { > return new ChangeConnectionEndHandle.UndoActivity(); > } > > public static class UndoActivity extends ChangeConnectionHandle.UndoActivity { > public UndoActivity() { > super(); 61a82,88 > protected Connector replaceConnector(ConnectionFigure connection) { > Connector tempEndConnector = connection.getEndConnector(); > connection.connectEnd(getOldConnector()); > return tempEndConnector; > } > } > }