Community
Participate
Working Groups
E4Application#stop() currently does nothing. As a result, if you trigger a shutdown of the OSGi runtime programmatically (e.g., getBundle(0).stop()), the UI workbench is not closed. Any subsequent clicking or interaction with the UI workbench triggers a cascade of errors. I think E4Application should hold onto the workbench in a field. The stop() method should call workbench.close().
Does calling stop() on the IPresentationEngine work?
(In reply to comment #1) > Does calling stop() on the IPresentationEngine work? IPE#stop() does work; in fact, E4Workbench#close() simply calls IPE#stop(). But E4Workbench#close() could have other things to do in the future. My workaround for now is to call IWorkbench#close() from the Exit command handler (org.eclipse.ui.file.exit).
Created attachment 189143 [details] patch to stash the workbench in a field and cause E4Application#stop() to call #close() Created a patch to stash the workbench in a field and cause E4Application#stop() to call E4Workbench#close()
Committed to HEAD