blob: 9b7138d908e793ef7276822207ed7e841a86b7d2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 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.bpel.common.ui.editmodel;
import org.eclipse.emf.ecore.resource.Resource;
/**
* All commands used within EditModelCommandStack must
* implement this interface. It enables the command stack
* to track dirty resources and support validate edit.
*/
public interface IEditModelCommand {
/**
* Returns the list of emf resource that this command my change.
* Called before the command is executed to validate edit.
*/
public abstract Resource[] getResources();
/**
* Returns a list of resource that this command has modified.
* Usually returns the same list as in <code>getResources</code>
* but it may return a subset if, for example, a compound command
* was not fully executed.
*/
public abstract Resource[] getModifiedResources();
}