Community
Participate
Working Groups
When a project state is changed from open to closed or vice versa its selection disappears in the CView. This affects all views, actions, etc. depending on the project selection state. The CView tries to preserve the current selection (see StructuredViewer.preservingSelection), but that seems to fail because a closed project appears in the tree as an IProject, while an open project appears as a CProject (even though the closed project is still a CProject). This effect on its turn seems to be caused by the DeltaProcessor.elementClosed()/elementOpened() methods that convert project closure/opening into removal/addition deltas. solution 1 might be to convince the selection preserver that an IProject is the same as its CProject. solution 2 might be to change the DeltaProcessor elementOpened/Closed() methods to just generate opened/closed deltas (instead of add/remove).