public void updateDisplay() { shell.getDisplay().update(); }
display.update();
private void stopWaiting () { waitCount--; if ( waitCount < 1 ) statusBar.clearInfo(); shell.getDisplay().update(); //if ( log.inProgress() ) log.endProcess(null); //if ( startLogWasRequested && ( log.getErrorAndWarningCount() > 0 )) log.show(); //startLogWasRequested = false; }
int OnProgressChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (long /*int*/ aWebProgress, long /*int*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (int /*long*/ aWebProgress, int /*long*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (long /*int*/ aWebProgress, long /*int*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange (int /*long*/ aWebProgress, int /*long*/ aRequest, int aCurSelfProgress, int aMaxSelfProgress, int aCurTotalProgress, int aMaxTotalProgress) { int currentKBytes = aCurTotalProgress / 1024; int totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Integer (currentKBytes), new Integer (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
int OnProgressChange64 (int /*long*/ aWebProgress, int /*long*/ aRequest, long aCurSelfProgress, long aMaxSelfProgress, long aCurTotalProgress, long aMaxTotalProgress) { long currentKBytes = aCurTotalProgress / 1024; long totalKBytes = aMaxTotalProgress / 1024; if (shell != null && !shell.isDisposed ()) { Object[] arguments = {new Long (currentKBytes), new Long (totalKBytes)}; String statusMsg = Compatibility.getMessage ("SWT_Download_Status", arguments); //$NON-NLS-1$ status.setText (statusMsg); shell.layout (true); shell.getDisplay ().update (); } return XPCOM.NS_OK; }
private void processOutstandingEvents() { Display display= getDisplay(); if (display != null && !display.isDisposed()) display.update(); }
private void processOutstandingEvents() { Display display= getDisplay(); if (display != null && !display.isDisposed()) display.update(); }
private void processOutstandingEvents() { Display display= getDisplay(); if (display != null && !display.isDisposed()) display.update(); }
void update () { if (parent != null) { if (parent.isDisposed ()) return; parent.getShell ().update (); } else { display.update (); } }
void update () { if (parent != null) { if (parent.isDisposed ()) return; parent.getShell ().update (); } else { display.update (); } }
void update () { if (hwndOpaque != 0) return; if (parent != null) { if (parent.isDisposed ()) return; Shell shell = parent.getShell (); shell.update (true); } else { display.update (); } }
void update () { if (parent != null) { if (parent.isDisposed ()) return; parent.getShell ().update (); } else { display.update (); } }
protected void dragHorizontal(Composite composite, Point p) { int dx = p.x - curPos.x; Rectangle bounds = composite.getBounds(); if (isFixed(SWT.RIGHT)) { bounds.x += dx; bounds.width -= dx; } else { bounds.width += dx; } composite.setBounds(bounds); composite.getDisplay().update(); curPos = p; }
public void run(){ if(!control.isDisposed()){ control.getDisplay().update(); control.update(); control.redraw(); } } }
private void defineRegion() { Region rgn = new Region(); for (Rectangle r : rects) { rgn.add(r); rgn.subtract(r.x + 2, r.y + 2, r.width - 4, r.height - 4); } if (feedbackShell.getRegion() != null && !feedbackShell.getRegion().isDisposed()) feedbackShell.getRegion().dispose(); feedbackShell.setRegion(rgn); feedbackShell.redraw(); display.update(); }