| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2012 Wind River 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 |
* Wind River - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package org.eclipse.equinox.internal.p2.engine; |
| 15 |
|
| 16 |
import java.util.EventObject; |
| 17 |
|
| 18 |
public class PhaseEvent extends EventObject { |
| 19 |
|
| 20 |
private static final long serialVersionUID = 8971345257149340658L; |
| 21 |
|
| 22 |
public static final int TYPE_START = 1; |
| 23 |
public static final int TYPE_END = 2; |
| 24 |
|
| 25 |
private int type; |
| 26 |
|
| 27 |
private String phaseId; |
| 28 |
|
| 29 |
private Operand[] operands; |
| 30 |
|
| 31 |
public PhaseEvent(String phaseId, Operand[] operands, int type) { |
| 32 |
super(operands); |
| 33 |
this.phaseId = phaseId; |
| 34 |
this.type = type; |
| 35 |
this.operands = operands; |
| 36 |
} |
| 37 |
|
| 38 |
public String getPhaseId() { |
| 39 |
return phaseId; |
| 40 |
} |
| 41 |
|
| 42 |
public int getType() { |
| 43 |
return type; |
| 44 |
} |
| 45 |
|
| 46 |
public Operand[] getOperands() { |
| 47 |
return operands; |
| 48 |
} |
| 49 |
} |