2,2c2,2 < * @(#)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 7a15,17 > import CH.ifa.draw.standard.*; > import CH.ifa.draw.util.Undoable; > import CH.ifa.draw.util.UndoableAdapter; 8,8c18,18 < import java.awt.Point; --- > import java.awt.Point; 9,9d18 < 14a23,24 > * > * @version <$CURRENT_VERSION$> 16,16d25 < 29a39,39 > return getConnection().getEndConnector(); 30,30d38 < return fConnection.end(); 37,37c46,46 < fConnection.disconnectEnd(); --- > getConnection().disconnectEnd(); 44,44c53,53 < fConnection.connectEnd(c); --- > getConnection().connectEnd(c); 51,51c60,60 < fConnection.endPoint(x, y); --- > getConnection().endPoint(x, y); 58,58c67,67 < 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; > } > } > }