package org.eclipse.update.internal.ui.model; | |
/* | |
* (c) Copyright IBM Corp. 2000, 2001. | |
* All Rights Reserved. | |
*/ | |
import org.eclipse.update.core.*; | |
import java.util.*; | |
import org.eclipse.core.runtime.*; | |
public class PendingChange extends SimpleFeatureAdapter { | |
public static final int INSTALL = 0x1; | |
public static final int UNINSTALL = 0x2; | |
public static final int CONFIGURE = 0x3; | |
public static final int UNCONFIGURE = 0x4; | |
private int jobType; | |
private IFeature oldFeature; | |
public PendingChange(IFeature feature, int jobType) { | |
super(feature); | |
this.jobType = jobType; | |
} | |
public PendingChange(IFeature oldFeature, IFeature newFeature) { | |
this(newFeature, INSTALL); | |
this.oldFeature = oldFeature; | |
} | |
public int getJobType() { | |
return jobType; | |
} | |
public IFeature getFeature() { | |
return feature; | |
} | |
public IFeature getOldFeature() { | |
return oldFeature; | |
} | |
} |