blob: 1f9400b7999723a9500492f783183a4da08f0ae2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.command.internal.env.core;
import org.eclipse.wst.command.internal.env.core.data.DataMappingRegistry;
/**
* CommandManagers help manage the lifecycle of Commands.
*/
public interface CommandManager
{
/**
* Returns true if this CommandManager is capable of undoing
* Commands. Some CommandManagers and Environments may be of
* a sort that will never undo() Commands. Command.execute()
* methods should take advantage of this method to optimize
* out any caching logic whenever this method returns false.
*/
public boolean isUndoEnabled ();
// There's probably more, like factory methods for creating
// Undo/Redo stacks and stuff like that.
public DataMappingRegistry getMappingRegistry();
}