private void updateGraph() { display.asyncExec( new Runnable() { public void run() { if ( !shell.isDisposed() && !canvas.isDisposed() ) { updateCanvas(); } } } ); }
@Override public void modifyText( ModifyEvent arg0 ) { // Now set the combo's shell.getDisplay().asyncExec( new Runnable() { @Override public void run() { setComboBoxes(); } } ); } } );
public void modifyText( ModifyEvent arg0 ) { // Now set the combo's shell.getDisplay().asyncExec( new Runnable() { public void run() { setComboBoxes(); } } ); } } );
@Override public void handleEvent( Event ev ) { shell.getDisplay().asyncExec( new Runnable() { @Override public void run() { readGaProfiles(); } } ); } } );
@Override public void handleEvent( Event ev ) { shell.getDisplay().asyncExec( new Runnable() { @Override public void run() { readGaSegments(); } } ); } } );
public void modifyText( ModifyEvent arg0 ) { // Now set the combo's shell.getDisplay().asyncExec( new Runnable() { public void run() { setComboBoxes(); } } ); } } );
@Override public void modifyText( ModifyEvent arg0 ) { // Now set the combo's shell.getDisplay().asyncExec( new Runnable() { @Override public void run() { setComboBoxes(); } } ); } } );
protected void asyncUpdatePreview() { Runnable update = new Runnable() { @Override public void run() { try { updatePreview(); } catch ( SWTException e ) { // Ignore widget disposed errors } } }; shell.getDisplay().asyncExec( update ); }
@Override public void pluginAdded( Object serviceObject ) { previousShowTrans = false; // hack to get the tree to reload Display.getDefault().asyncExec( new Runnable() { @Override public void run() { refreshCoreObjects(); } } ); }
protected void asyncRedraw() { spoon.getDisplay().asyncExec( new Runnable() { public void run() { if ( !isDisposed() ) { redraw(); } } } ); }
public void updateGraph() { jobGraph.getDisplay().asyncExec( new Runnable() { public void run() { if ( metricsComposite != null && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed() && jobMetricsTab != null && !jobMetricsTab.isDisposed() ) { if ( jobMetricsTab.isShowing() ) { canvas.redraw(); } } } } ); }
private void validateSelection() { Runnable fieldLoader = () -> { isConnectionSupported(); }; shell.getDisplay().asyncExec( fieldLoader ); }
protected void asyncRedraw() { spoon.getDisplay().asyncExec( new Runnable() { @Override public void run() { if ( !TransGraph.this.isDisposed() ) { TransGraph.this.redraw(); } } } ); }
public void run() { if ( display != null && !display.isDisposed() ) { display.asyncExec( new Runnable() { public void run() { refreshViewAndLog(); } } ); } } };
@Override public void pluginRemoved( Object serviceObject ) { previousShowTrans = false; // hack to get the tree to reload Display.getDefault().asyncExec( new Runnable() { @Override public void run() { refreshCoreObjects(); } } ); }
public void updateGraph() { transGraph.getDisplay().asyncExec( new Runnable() { public void run() { if ( metricsComposite != null && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed() && transMetricsTab != null && !transMetricsTab.isDisposed() ) { if ( transMetricsTab.isShowing() ) { canvas.redraw(); } } } } ); }
public boolean deleteDatabaseConnection( String database ) { CompletableFuture<Boolean> future = new CompletableFuture<>(); spoonSupplier.get().getShell().getDisplay().asyncExec( () -> { removeDatabase( database ); future.complete( true ); } ); try { return future.get(); } catch ( Exception e ) { return false; } }
public boolean help() { spoonSupplier.get().getShell().getDisplay().asyncExec( () -> HelpUtils.openHelpDialog( this.parentShell, BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Tile" ), HELP_URL, BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Header" ) ) ); return true; }
public void run() { if ( !spoon.getDisplay().isDisposed() ) { spoon.getDisplay().asyncExec( TransGridDelegate.this::refreshView ); } } };
public boolean openRecentFile( String repo, String id ) { // does the file exist? if ( getSpoon().recentRepoFileExists( repo, id ) ) { getSpoon().getDisplay().asyncExec( () -> { getSpoon().lastRepoFileSelect( repo, id ); } ); return true; } else { return false; } }