Community
Participate
Working Groups
build 20030611 When I first started the workbench with the new build (changing from 20030605) I got an error message about update/install perspective no being restored because of errors. I don't recall having this perspective open. The following was in the command line console: Could not create view: 'org.eclipse.update.ui.ConfigurationView'. Could not create view: 'org.eclipse.update.ui.ItemsView'. Could not create view: 'org.eclipse.update.ui.UpdatesView'. Could not create view: 'org.eclipse.update.ui.DetailsView'. Unhandled exception caught in event loop. Reason: java.lang.NullPointerException
Created attachment 5164 [details] log file
I went back to the 0605 build, opened the Install/Update perspective and then started 0611. I got the same "Cannot restore perspective" dialog when starting Eclipse with the 0611 build. When I click on the perspective icon that used to be the Install/Update perspective (now just an empty "window" icon) I get the same error dialog again. At this point the error messages I quote above, except for the NPE, are printed in the (Windows) console. I cannot reproduce the NPE.
The install/update perspective is gone as of M1. Looks like the workbench could definitely be handling this better.
Fixed the code that caused the NPE (was able to reproduce it). How the workbench handles missing perspectives, views, editors, actions, etc definitions (because a plugin is missing or invalid), should be improved. I see no reason why we want to display the ids to the users...it means probably nothing to them. I think providing a message along indicates some perspectives/views/editors/actions were not restored because they no longer exist in the application (or something along those lines). We could add more details information in the .log file. I've opened a new bug report to capture this problem that has yet to be done. See bug 39037