Community
Participate
Working Groups
When switching perspective, EmptyWorkspaceHelper is supposed to recreate the empty workspace by calling recreateEmptyArea(). However this simply calls createEmptyArea() which checks if projectWizardActions is null. Since it's not null (the actions were created by the first call to createEmptyArea()), the same actions are displayed in the empty workspace. To fix, it looks like projectWizardActions should be cleared by recreateEmptyArea() before calling createEmptyArea() again.
Greg, please provide a Gerrit for the fix.
New Gerrit change created: https://git.eclipse.org/r/149217
New Gerrit change created: https://git.eclipse.org/r/149218
(In reply to Greg Watson from comment #0) > When switching perspective, EmptyWorkspaceHelper is supposed to recreate the > empty workspace by calling recreateEmptyArea(). However this simply calls > createEmptyArea() which checks if projectWizardActions is null. Since it's > not null (the actions were created by the first call to createEmptyArea()), > the same actions are displayed in the empty workspace. > > To fix, it looks like projectWizardActions should be cleared by > recreateEmptyArea() before calling createEmptyArea() again. Can you provide steps to reproduce this issue?
Open IDE with empty workspace to show actions. Switch to a different perspective that has different actions. The original actions will still be displayed.
(In reply to Eclipse Genie from comment #3) > New Gerrit change created: https://git.eclipse.org/r/149218 I can't see how this change causes a regression. I see that this test has caused problems in the past, but I don't know what to do here.
(In reply to Greg Watson from comment #5) > Open IDE with empty workspace to show actions. Switch to a different > perspective that has different actions. The original actions will still be > displayed. I see. But your change does not fix this completely. I used the navigator view and switched from java perspective to the plug-in dev perspective. This is fine now. But when I now switch back to java it's not correct any more. Can you pls. see how that can be fixed also?
New Gerrit change created: https://git.eclipse.org/r/149259
New Gerrit change created: https://git.eclipse.org/r/149321
Can this be merged?
(In reply to Greg Watson from comment #10) > Can this be merged? I just retested this with the current master branch. By using the navigator view and switching between java and plug-in development perspective in an empty workspace. I don't see an error here as this was fixed with bug 552374 *** This bug has been marked as a duplicate of bug 552374 ***