diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/PhaseEvent.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/PhaseEvent.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/PhaseEvent.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/PhaseEvent.java new file mode 100644 index 000000000..2461242a2 --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/PhaseEvent.java @@ -0,0 +1,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; + } +} |