Commit 299345e
committed
Don't try to remove elements that are not in the tree #3525
Moving an item from one project to another in the Project Explorer,
might break the tree structure, resulting in a phantom tree item in the
source project.
This is because the Project Explorer provides an extension point that
allows modifications by external projects (here JDT). When an element is
moved, its old position in the tree viewer is removed and its new
position added.
This removal is done both by the Platform and JDT. But when the element
is removed a second time, it no longer exists in the tree and instead a
dummy value is created.
To reproduce:
- Create a new project "Project A" and "Project B"
- Create a new text file "test" in "Project A"
- Move "test" to "Project B"
Closes #35251 parent 39d028e commit 299345e
File tree
1 file changed
+4
-0
lines changed- bundles/org.eclipse.jface/src/org/eclipse/jface/viewers
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2065 | 2069 | | |
2066 | 2070 | | |
2067 | 2071 | | |
| |||
0 commit comments