Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2461242a21f418b2bcb24fd15b0f09809e1e7200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2012 Wind River and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Wind River - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.internal.p2.engine;

import java.util.EventObject;

public class PhaseEvent extends EventObject {

	private static final long serialVersionUID = 8971345257149340658L;

	public static final int TYPE_START = 1;
	public static final int TYPE_END = 2;

	private int type;

	private String phaseId;

	private Operand[] operands;

	public PhaseEvent(String phaseId, Operand[] operands, int type) {
		super(operands);
		this.phaseId = phaseId;
		this.type = type;
		this.operands = operands;
	}

	public String getPhaseId() {
		return phaseId;
	}

	public int getType() {
		return type;
	}

	public Operand[] getOperands() {
		return operands;
	}
}

Back to the top