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 286183
Collapse All | Expand All

(-)src/org/eclipse/swt/internal/widgets/displaykit/DisplayLCA.java (-3 lines)
Lines 135-141 Link Here
135
      writeClientDocument( display );
135
      writeClientDocument( display );
136
    } else {
136
    } else {
137
      response.setContentType( HTML.CONTENT_TEXT_JAVASCRIPT_UTF_8 );
137
      response.setContentType( HTML.CONTENT_TEXT_JAVASCRIPT_UTF_8 );
138
      out.write( "org.eclipse.swt.EventUtil.suspendEventHandling();" );
139
      out.write( getRequestCounter() );
138
      out.write( getRequestCounter() );
140
      disposeWidgets();
139
      disposeWidgets();
141
      writeTheme( display );
140
      writeTheme( display );
Lines 150-157 Link Here
150
      }
149
      }
151
      writeActiveControls( display );
150
      writeActiveControls( display );
152
      writeFocus( display );
151
      writeFocus( display );
153
      out.write( "qx.ui.core.Widget.flushGlobalQueues();" );
154
      out.write( "org.eclipse.swt.EventUtil.resumeEventHandling();" );
155
      markInitialized( display );
152
      markInitialized( display );
156
    }
153
    }
157
  }
154
  }
(-)js/org/eclipse/swt/Request.js (+3 lines)
Lines 296-302 Link Here
296
        var errorOccured = false;
296
        var errorOccured = false;
297
        try {
297
        try {
298
          if( text && text.length > 0 ) {
298
          if( text && text.length > 0 ) {
299
            org.eclipse.swt.EventUtil.suspendEventHandling();
299
            window.eval( text );
300
            window.eval( text );
301
            qx.ui.core.Widget.flushGlobalQueues();
302
            org.eclipse.swt.EventUtil.resumeEventHandling();
300
          }
303
          }
301
          this._runningRequestCount--;
304
          this._runningRequestCount--;
302
          this._hideWaitHint();
305
          this._hideWaitHint();
(-)src/org/eclipse/rwt/internal/lifecycle/RenderDispose_Test.java (-7 / +1 lines)
Lines 9-15 Link Here
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 *     EclipseSource - ongoing development
10
 *     EclipseSource - ongoing development
11
 ******************************************************************************/
11
 ******************************************************************************/
12
13
package org.eclipse.rwt.internal.lifecycle;
12
package org.eclipse.rwt.internal.lifecycle;
14
13
15
import junit.framework.TestCase;
14
import junit.framework.TestCase;
Lines 61-75 Link Here
61
    } );
60
    } );
62
    RWTFixture.executeLifeCycleFromServerThread( );
61
    RWTFixture.executeLifeCycleFromServerThread( );
63
    String expectedStart
62
    String expectedStart
64
      =   "org.eclipse.swt.EventUtil.suspendEventHandling();"
63
      =   "var req = org.eclipse.swt.Request.getInstance();"
65
        + "var req = org.eclipse.swt.Request.getInstance();"
66
        + "req.setRequestCounter(";
64
        + "req.setRequestCounter(";
67
    String expectedEnd
68
      =   ");qx.ui.core.Widget.flushGlobalQueues();"
69
        + "org.eclipse.swt.EventUtil.resumeEventHandling();";
70
    String allMarkup = Fixture.getAllMarkup();
65
    String allMarkup = Fixture.getAllMarkup();
71
    assertTrue( allMarkup.startsWith( expectedStart ) );
66
    assertTrue( allMarkup.startsWith( expectedStart ) );
72
    assertTrue( allMarkup.endsWith( expectedEnd ) );
73
  }
67
  }
74
68
75
  protected void setUp() throws Exception {
69
  protected void setUp() throws Exception {

Return to bug 286183