}
private void refreshProjectsUsingThisRuntime() {
try {
Set<IFacetedProject> facetedProjects = ProjectFacetsManager.getFacetedProjects();
IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
for (IFacetedProject facetedProject : facetedProjects) {
Set<IRuntime> targetedRuntimes = facetedProject.getTargetedRuntimes();
for (IRuntime runtime : targetedRuntimes) {
if (runtime.getName().equals(wc.getName())) {
facetedProject.removeTargetedRuntime(runtime, new NullProgressMonitor());
facetedProject.addTargetedRuntime(runtime, new NullProgressMonitor());
break;
}