mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-64495 - assert: ProjectViewImpl.changeViewCB
This commit is contained in:
@@ -992,12 +992,12 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
private final class MyPanel extends JPanel implements DataProvider {
|
||||
MyPanel() {
|
||||
super(new BorderLayout());
|
||||
|
||||
Collection<AbstractProjectViewPane> snapshot = new ArrayList<>(myId2Pane.values());
|
||||
UIUtil.putClientProperty(
|
||||
this, UIUtil.NOT_IN_HIERARCHY_COMPONENTS, new Iterable<JComponent>() {
|
||||
@Override
|
||||
public Iterator<JComponent> iterator() {
|
||||
return JBIterable.from(myId2Pane.values())
|
||||
return JBIterable.from(snapshot)
|
||||
.map(pane -> {
|
||||
JComponent last = null;
|
||||
for (Component c : UIUtil.uiParents(pane.getComponentToFocus(), false)) {
|
||||
|
||||
Reference in New Issue
Block a user