Bus
This method is called during workbench shutdown after all windows have been closed.
118119120121122123124125126127128
synchronized (this) { state = BusState.SHUTDOWN; notifyAll(); } if (null != lifeCycleManager) { lifeCycleManager.postShutdown(); } if (BusFactory.getDefaultBus(false) == this) { BusFactory.setDefaultBus(null); } }
218219220221222223224225226227228
synchronized (this) { state = BusState.SHUTDOWN; notifyAll(); } if (null != lifeCycleManager) { lifeCycleManager.postShutdown(); } if (BusFactory.getDefaultBus(false) == this) { BusFactory.setDefaultBus(null); }
231232233234235236237238239240241
324325326327328329330331332333334
237238239240241242243244245246247
319320321322323324325326327328329
197198199200201202203204205206207
250251252253254255256257258259260
722723724725726727728729730731732
Object list[] = workbenchListeners.getListeners(); for (int i = 0; i < list.length; i++) { final IWorkbenchListener l = (IWorkbenchListener) list[i]; SafeRunnable.run(new SafeRunnable() { public void run() { l.postShutdown(Workbench.this); } }); } }
4748495051525354555657
EasyMock.replay(listener1); mgr.preShutdown(); EasyMock.verify(listener1); EasyMock.reset(listener1); listener1.postShutdown(); EasyMock.replay(listener1); mgr.postShutdown(); EasyMock.verify(listener1); }