Bug 407522 - Perspective reset not working correctly
Summary: Perspective reset not working correctly
Status: CLOSED DUPLICATE of bug 383569
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 420956
  Show dependency tree
 
Reported: 2013-05-08 08:28 EDT by Velimir Topaloski CLA
Modified: 2015-01-07 04:32 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Velimir Topaloski CLA 2013-05-08 08:28:50 EDT
I am experiencing problems with enable/disable ActionSets and when I do perspective reset from within the Eclipse.

I am using Eclipse IDE for C/C++ Developers for Linux 64bit with no additional pluggins installed.

How to reproduce:
1. Start Eclipse.
2. Select/create brand new empty workspace.
3. Open "Debug" Perspective.
   [Before jumping to conclusions, this can be reproduced with other perspectives e.g. Resource perspective, using different ActionSets e.g. "Editor Presentation"]
4. Please observe on main toolbar presence of "Debug" and "Run" dropdown buttons.
5. Open "Customize Perspective..."
6. Go to "Tool Bar Visibility" tab and expand "Launch" item.
7. Please observe that both "Debug" and "Run" items are checked.
8. Remove checkmark from "Run" item and press "OK" to close the dialog.
9. [CORRECT] The "Run" dropdown button from the main toolbar disappeared.
10. Open "Customize Perspective..."
11. Go to "Tool Bar Visibility" tab and expand "Launch" item.
12. [PROBLEM] Please observe that "Run" item is checked.
13. Remove checkmarks from both "Debug" and "Run" items and press "OK" to close the dialog.
14. [CORRECT] The "Debug" and "Run" dropdown buttons from the main toolbar disappeared.
15. Execute "Reset Perspective..." and press "OK" on the dialog that follows.
16. [PROBLEM] "Debug" and "Run" dropdown buttons are still invisible.
17. Open "Customize Perspective..."
18. Go to "Tool Bar Visibility" tab and expand "Launch" item.
19. [PROBLEM] Please observe that "Debug" and "Run" items are checked.

This is only one simple scenario how to reproduce this or similar issues. 
It can be repeated and reproduced with any Perspective and many ActionsSets.

It gets even nastier if one starts tinkering with enabling/disabling the ActionSets themselves...

I have discovered this while trying to programmatically disable ActionSets for a given perspective from within a plugin.

Thanks,
Comment 1 Nobody - feel free to take it CLA 2013-07-15 14:18:13 EDT
Proposed fix in review: https://git.eclipse.org/r/#/c/14570/
Comment 2 Paul Webster CLA 2013-07-23 09:38:48 EDT
(In reply to comment #1)
> Proposed fix in review: https://git.eclipse.org/r/#/c/14570/

I've released this as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7bb898866f6f90ba29528d372f38aa7250d183fc

Thanks Tom.

That fixes the checkbox in the CPD.  This is still open because we need a fix for the resetPerspective.

PW
Comment 3 Andrey Loskutov CLA 2013-11-03 04:52:11 EST
Dup of bug 383569?
Comment 4 Noopur Gupta CLA 2015-01-07 04:32:15 EST

*** This bug has been marked as a duplicate of bug 383569 ***