@Override public void runSupport() { Utils.getOffOfSWTThread(new AERunnable() { @Override public void runSupport() { updateSelectedContent(); } }); } }, 250 );
@Override public void run() { try{ runSupport(); }catch( Throwable e ){ DebugLight.printStackTrace(e); } }
@Override public void perform( TimerEvent event ) { try{ target.run(); }finally{ } } });
public AllocateColor(String sName, final Color colorDefault, Color colorOld) { this.sName = sName; Utils.execSWTThread(new AERunnable() { @Override public void runSupport() { if (!colorDefault.isDisposed()) AllocateColor.this.rgbDefault = colorDefault.getRGB(); else AllocateColor.this.rgbDefault = new RGB(0, 0, 0); } }, false); }
@Override public void runSupport() { synchronized( this ){ if ( running ){ pending = true; return; } running = true; } try{ old_target.runSupport(); }finally{ boolean was_pending; synchronized( this ){ running = false; was_pending = pending; pending = false; } if ( was_pending ){ dispatch(); } } } };
@Override public void runSupport() { long now = SystemTime.getMonotonousTime(); synchronized( FrequencyLimitedDispatcher.this ){ last_run = now; delay_event = null; } target.run(); } });
@Override public void runSupport() { expandItem.setExpanded(expand); setExpandedVariable(expand); Utils.execSWTThreadLater(0, new AERunnable() { @Override public void runSupport() { SWTSkinObjectExpandBar soExpandBar = (SWTSkinObjectExpandBar) parent; soExpandBar.handleResize(expandItem); } }); } });
to_run.runSupport();
protected void runIt( AERunnable runnable ) { if ( log_cpu ){ long start_cpu = log_cpu?AEJavaManagement.getThreadCPUTime():0; long start_time = SystemTime.getHighPrecisionCounter(); runnable.run(); if ( start_cpu > 0 ){ long end_cpu = log_cpu?AEJavaManagement.getThreadCPUTime():0; long diff_cpu = ( end_cpu - start_cpu ) / 1000000; long end_time = SystemTime.getHighPrecisionCounter(); long diff_millis = ( end_time - start_time ) / 1000000; if ( diff_cpu > 10 || diff_millis > 10){ System.out.println( TimeFormatter.milliStamp() + ": Thread: " + Thread.currentThread().getName() + ": " + runnable + " -> " + diff_cpu + "/" + diff_millis ); } } }else{ runnable.run(); } }
@Override public void runSupport() { if ( prepareForKeepAlive( true )){ keep_alive_pool.run( new AERunnable() { @Override public void runSupport() { GenericMessageConnectionIndirect.this.keepAlive(); } }); } } });
}catch( Throwable e ){ if ( deleteFailed != null ){ deleteFailed.runSupport();
target.run();
Utils.execSWTThread(new AERunnable() { @Override public void runSupport() {
launch.runSupport();
deleteFailed.runSupport(); deleteFailed.runSupport();