Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 310593
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/Workbench.java (-1 / +1 lines)
Lines 126-132 Link Here
126
      
126
      
127
      private static final class ShutdownHandler implements Listener {
127
      private static final class ShutdownHandler implements Listener {
128
        public void handleEvent( Event event ){
128
        public void handleEvent( Event event ){
129
          if( Workbench.getInstance().started ) {
129
          if( Workbench.getInstance().started && Platform.isRunning() ) {
130
            Workbench.getInstance().sessionInvalidated = true;
130
            Workbench.getInstance().sessionInvalidated = true;
131
            Workbench.getInstance().close();
131
            Workbench.getInstance().close();
132
          }
132
          }

Return to bug 310593