User Experience Insights
context menu error of project explorer view in ADT
Dear community, after upgrading my Eclipse installation 2021-09 with ABAP Developement Tools from 2021-09 to 2021-12, I had some serious problems with my right click context menu in Project Explorer view.
The menu was unnecessary long and had many more entries then expected. Some entries were shown 4 times with the same name (for example “SOA Manager”) and there were broken entries (for example “%fragment.menu.srv”) . To put it briefly: It was a big mess.
After some investigation and some more own research and some more time and even more more time I had really no clue what the cause was. A typical situation for developers, as you sometimes experience every day, on some days even several times. You’re almost tempted to reinstall everything 😉
My solution was to define a new workspace in Eclipse (“File->Switch Workspace”). Sadly with many impacts. The good news was: Context menu in Project Explorer view was afterwards ok. But…
As the documentation about workspaces in Eclipse tells: “The workspace is a directory on the disk where the Eclipse platform and all the installed plug-ins store preferences, configurations and temporary information.” I can confirm that now: It’s really true…
I lost the projects in Project Explorer view and my preferences, for example the ABAP keyword color settings.
The good thing is, you can switch to your old workspace (File->Switch Workspace) and you can export the color settings separately (check buttons in section “ABAP Keyword Colors”). Then import in your new workspace.
The export oft all preferences somehow didn’t work in my case (“File->Export/Import” or “Window->Preferences->Export/Import”).
Ok, that blog was just for the case anyone else will encounter same issue and wants to save some time 🙂
Best regards, thanks for reading and stay healthy
Michael
Hey SAP Community, after publishing this blog, I've got another solution from a SAP Community member. Here it is:
"In case you're experiencing issues with the context-menu in the Project Explorer view in Eclipse after the upgrade (due to an uninstalled plugin), please proceed as follows:
1) Create a backup of your current workspace folder
2) Run Eclipse with the options "-clean -clearPersistedState" (copy the link from the start menu to your desktop and adjust the "Target" field)
3) Start modified eclipse with the workspace folder
Effect: This should rebuild the context menu, but also resets your perspectives settings. But keeps your colour settings, favourites and mylyn tasks.
Reason is the context menu still hold references to uninstalled plugins, which makes it fail.
You can see this in the error log. This time for me it was the removed UI5 plugin I think. Error log says something linke plugin not found if I remember correctly."
Many thanks for this detailed solution!