| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2007, 2010 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* IBM Corporation - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package org.eclipse.equinox.internal.p2.engine; |
| 15 |
|
| 16 |
import org.eclipse.equinox.p2.engine.IEngine; |
| 17 |
import org.eclipse.equinox.p2.engine.IProfile; |
| 18 |
|
| 19 |
import org.eclipse.core.runtime.IStatus; |
| 20 |
|
| 21 |
/** |
| 22 |
* @since 2.0 |
| 23 |
*/ |
| 24 |
public class RollbackOperationEvent extends TransactionEvent { |
| 25 |
|
| 26 |
private static final long serialVersionUID = -2076492953949691215L; |
| 27 |
private IStatus cause; |
| 28 |
|
| 29 |
public RollbackOperationEvent(IProfile profile, PhaseSet phaseSet, Operand[] operands, IEngine engine, IStatus cause) { |
| 30 |
super(profile, phaseSet, operands, engine); |
| 31 |
this.cause = cause; |
| 32 |
} |
| 33 |
|
| 34 |
public IStatus getStatus() { |
| 35 |
return cause; |
| 36 |
} |
| 37 |
} |