Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 336015 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/equinox/internal/p2/ui/dialogs/PreselectedIUInstallWizard.java (-1 lines)
Lines 79-85 Link Here
79
		InstallOperation op = new InstallOperation(ui.getSession(), ElementUtils.elementsToIUs(elements));
79
		InstallOperation op = new InstallOperation(ui.getSession(), ElementUtils.elementsToIUs(elements));
80
		op.setProfileId(getProfileId());
80
		op.setProfileId(getProfileId());
81
		//		op.setRootMarkerKey(getRootMarkerKey());
81
		//		op.setRootMarkerKey(getRootMarkerKey());
82
		op.setProvisioningContext(getProvisioningContext());
83
		return op;
82
		return op;
84
	}
83
	}
85
}
84
}
(-)src/org/eclipse/equinox/internal/p2/ui/dialogs/ProvisioningOperationWizard.java (+6 lines)
Lines 60-65 Link Here
60
		this.repoPreloadJob = job;
60
		this.repoPreloadJob = job;
61
		setForcePreviousAndNextButtons(true);
61
		setForcePreviousAndNextButtons(true);
62
		setNeedsProgressMonitor(true);
62
		setNeedsProgressMonitor(true);
63
		if (operation != null) {
64
			provisioningContext = operation.getProvisioningContext();
65
		}
63
	}
66
	}
64
67
65
	/*
68
	/*
Lines 182-187 Link Here
182
	protected abstract void initializeResolutionModelElements(Object[] selectedElements);
185
	protected abstract void initializeResolutionModelElements(Object[] selectedElements);
183
186
184
	protected ProvisioningContext getProvisioningContext() {
187
	protected ProvisioningContext getProvisioningContext() {
188
		if (operation != null) {
189
			return operation.getProvisioningContext();
190
		}
185
		return new ProvisioningContext(ui.getSession().getProvisioningAgent());
191
		return new ProvisioningContext(ui.getSession().getProvisioningAgent());
186
	}
192
	}
187
193
(-)src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java (-2 lines)
Lines 137-144 Link Here
137
			operation = new UpdateOperation(ui.getSession(), getIUsToReplace(elements));
137
			operation = new UpdateOperation(ui.getSession(), getIUsToReplace(elements));
138
			operation.setProfileId(getProfileId());
138
			operation.setProfileId(getProfileId());
139
			//			operation.setRootMarkerKey(getRootMarkerKey());
139
			//			operation.setRootMarkerKey(getRootMarkerKey());
140
			operation.setProvisioningContext(getProvisioningContext());
141
142
		} else {
140
		} else {
143
			((UpdateOperation) operation).setSelectedUpdates(makeUpdatesFromElements(elements));
141
			((UpdateOperation) operation).setSelectedUpdates(makeUpdatesFromElements(elements));
144
		}
142
		}

Return to bug 336015