blob: 4aa1b9bf7b1cb370c5922e951a565d5c3d16a952 [file] [log] [blame]
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;
}
}