[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Command.java,NONE,1.1
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-01-11 10:04:44
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4080/src/net/sourceforge/bprocessor/model Added Files: Command.java Log Message: Command interface for undo/redo --- NEW FILE: Command.java --- //--------------------------------------------------------------------------------- // $Id: Command.java,v 1.1 2006/01/11 10:04:36 henryml Exp $ // // Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net) // Released under the Lesser GNU Public License v2.1 //--------------------------------------------------------------------------------- package net.sourceforge.bprocessor.model; /** * Command interface for representing undoable commands. */ public interface Command { /** * Apply this Command */ public void apply(); /** * Undo this Command */ public void undo(); /** * Redo this Command */ public void redo(); /** * Return the name for display in menues etc. * @return The display name */ public String name(); } |