2,2c2,2 < * @(#)Command.java 5.2 --- > * @(#)Command.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,15 > import CH.ifa.draw.framework.DrawingView; > 22a31,32 > * > * @version <$CURRENT_VERSION$> 23a34,34 > public interface Command { 24,33d33 < public abstract class Command { < < private String fName; < < /** < * Constructs a command with the given name. < */ < public Command(String name) { < fName = name; < } 38,38c39,39 < public abstract void execute(); --- > public void execute(); 43,43c44,44 < public boolean isExecutable() { --- > public boolean isExecutable(); 44,45d44 < return true; < } 49a49,55 > public String name(); > > public DrawingView view(); > > public Undoable getUndoActivity(); > > public void setUndoActivity(Undoable newUndoableActivity); 50,52d48 < public String name() { < return fName; < }