blob: 2a161d9c263cd66763a52f0ec2957b20ecdeae48 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 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 v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.common.frameworks.datamodel.tests.extended;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
public class AbstractIDataModelTestOperation extends AbstractDataModelOperation {
public AbstractIDataModelTestOperation() {
super();
}
public AbstractIDataModelTestOperation(IDataModel dm) {
super(dm);
}
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
ExtendedOperationTests.executionList.add(getClass().getName());
return OK_STATUS;
}
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
ExtendedOperationTests.executionList.add(getClass().getName());
return OK_STATUS;
}
public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
ExtendedOperationTests.executionList.add(getClass().getName());
return OK_STATUS;
}
}