mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-08 02:53:12 +02:00
Bug fix
This commit is contained in:
parent
d31413d1fd
commit
f50fe22020
1 changed files with 3 additions and 5 deletions
|
@ -147,10 +147,9 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
|
||||||
dialog.setInitialElementSelections(lst);
|
dialog.setInitialElementSelections(lst);
|
||||||
|
|
||||||
if (dialog.open() == Window.OK) {
|
if (dialog.open() == Window.OK) {
|
||||||
Object[] selected = dialog.getResult();
|
Object[] selected = dialog.getResult(); // may be empty
|
||||||
if (selected != null && selected.length > 0) {
|
Iterator it2 = objects.iterator();
|
||||||
Iterator it2 = objects.iterator();
|
outer:
|
||||||
outer:
|
|
||||||
while(it2.hasNext()) {
|
while(it2.hasNext()) {
|
||||||
IResource res = (IResource)it2.next();
|
IResource res = (IResource)it2.next();
|
||||||
IProject p = res.getProject();
|
IProject p = res.getProject();
|
||||||
|
@ -186,7 +185,6 @@ outer:
|
||||||
} catch (CoreException e) {}
|
} catch (CoreException e) {}
|
||||||
AbstractPage.updateViews(res);
|
AbstractPage.updateViews(res);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue