-
Bug
-
Resolution: Done
-
Major
-
6.0.0
Description of problem:
If an user deletes all tabs in view "Projects" and switch the system to another one than he never achieves the same functionality.
The reasons are:
- if the user opens perspective "Projects" again, so the perspective is empty, no tabs in perspective.
(system saves the empty perspective into .niogit/system.git/.metadata/.user/<username>/.<perspectivename>/.Projects.perspective)
- the user adds a new tab Project Explorer (menu items Explore/Projects), but this tab has not got the same behaviour.
See the attached video.
Version-Release number of selected component (if applicable):
6.0.0 DR6
How reproducible:
Steps to Reproduce (done in attached video):
Normal situation
----------------
1. open perspective "Projects"
2. open any file in the repository
3. switch system to another perspective (example "Administration")
4. open perspective "Projects" again.
Problem situation
-----------------
5. delete all tabs in perspective
6. switch system to another perspective
7. open perspective "Projects" again
Workaround
----------
8. add new panel "Project Explorer" (menu item Explore/Projects)
9. open any file in the repository
10. move new file to the new tab container
11. switch system to another perspective
12. open "Projects" perspective
13. open any file in the repository
14. move new file to the right tab container
Actual results:
After step 2: The tab is open in the right tab container.
After step 4: The perspective contains all tabs, which was opened when the user left this perspective.
After step 7: The perspective is empty. There is not any tab (Why does the user need an empty perspective?)
After step 9,13: The tab is open in the same tab container as Project Explorer.
Compare files ProjectsStep4.perspective and ProjectsStep12.perspective:
- find string "org.kie.guvnor.explorer" and compare the xpath of this element (/root/children/PanelDefinitionImpl/parts X /root/parts/)
Expected results:
There are two options:
- The first idea is that if the perspective is empty then the default setting is load (In this case - Projects Explorer). Steps for workaround are deprecated
(After step 7: The perspective contains the default tabs)
(Step 8 - 14 are deprecated)
- The second idea is that the perspective stays empty and the user can restore the default setting of tabs.
(After step 9, 13: The tab is open in the right tab container.)
(Files ProjectsStep4.perspective and ProjectsStep12.perspective must be identical in structure)
Additional info: