2c2 < * @(#)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$> 24,33c34 < public abstract class Command { < < private String fName; < < /** < * Constructs a command with the given name. < */ < public Command(String name) { < fName = name; < } --- > public interface Command { 38c39 < public abstract void execute(); --- > public void execute(); 43,45c44 < public boolean isExecutable() { < return true; < } --- > public boolean isExecutable(); 50,52c49,55 < public String name() { < return fName; < } --- > public String name(); > > public DrawingView view(); > > public Undoable getUndoActivity(); > > public void setUndoActivity(Undoable newUndoableActivity);