8262462: IGV: cannot remove specific groups imported via network

Reviewed-by: neliasso
This commit is contained in:
Roberto Castañeda Lozano 2021-04-16 11:49:35 +00:00
parent 7137328006
commit 10ec38f80b

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -114,6 +114,7 @@ public final class OutlineTopComponent extends TopComponent implements ExplorerM
public void started(Group g) {
synchronized(OutlineTopComponent.this) {
getDocument().addElement(g);
g.setParent(getDocument());
}
}
};