Refine search
private void start() { detach(); if (initTask == null) { initTask = RequestProcessor.getDefault().post(this); } }
public void clear(int timeInMillis) { RequestProcessor.getDefault().post(new Runnable() { public void run() { if( text == getStatusText() ) setStatusText(""); } }, timeInMillis); }
private void loadImageInBackground(Image image) { synchronized (IMAGE_LOCK) { tempImage = image; // coalesce with previous task if hasn't really started yet if (loadPending) { return; } loadPending = true; } // 30ms is safety time to ensure code will run asynchronously RequestProcessor.getDefault().post(this, 30); }
private void start() { detach(); if (initTask == null) { initTask = RequestProcessor.getDefault().post(this); } }
public ET(Runnable run, String name, InputOutput io) { super(run); this.resultValue = resultValue; this.name = name; task = RequestProcessor.getDefault().post(this); }
public void actionPerformed(ActionEvent e) { RequestProcessor.getDefault().post(new Runnable() { @Override public void run() { k.logout(); } }); } });
public void actionPerformed(ActionEvent e) { RequestProcessor.getDefault().post(new Runnable() { public void run() { async(); } }); }
public Profile(Object profiler) { this.profiler = profiler; if (iteration == 1) { RequestProcessor.getDefault().post(this, (int) expectedTime * 2); } else { RequestProcessor.getDefault().post(this, (int) expectedTime); } }
@Override public void performAction() { RequestProcessor.getDefault().post(new Runnable() { public void run() { ProfilingSupport.getDefault().modifyProfiling(); } }); }
public void startLoadingDocument () { synchronized (this) { if (loaded || loading) return; loading = true; RequestProcessor.getDefault ().post (loader); } }
public void actionPerformed(ActionEvent e) { RequestProcessor.getDefault().post(new Runnable() { public void run() { try { project.getKenaiProject().getKenai().getProject(project.getId(), true); } catch (KenaiException ex) { Exceptions.printStackTrace(ex); } } }); } }
public void actionPerformed(ActionEvent e) { RequestProcessor.getDefault().post(new Runnable() { public void run() { DLightLogger.instance.info("StopDLightAction performed @ " + System.currentTimeMillis()); DLightManager.getDefault().stopActiveSession(); } }); }
private void loadImageInBackground (Image image) { synchronized (IMAGE_LOCK) { tempImage = image; // coalesce with previous task if hasn't really started yet if (loadPending) { return; } loadPending = true; } // 30ms is safety time to ensure code will run asynchronously RequestProcessor.getDefault().post(this, 30); }
public static void showInformationWhenHolding(final String msg, final String title){ RequestProcessor.getDefault().post(new Runnable() { public void run() { NotifyDescriptor d = new NotifyDescriptor.Message(msg, NotifyDescriptor.INFORMATION_MESSAGE); d.setTitle(title); DialogDisplayer.getDefault().notify(d); } }); }
@Override public void actionPerformed(ActionEvent ev) { // #16720 part 2: don't do this in the event thread... RequestProcessor.getDefault().post(this); }
/** Updates the keys. */ private void updateKeys () { // updateKeys can be called while holding Children.MUTEX // --> replan getNodes(true) to a new thread RequestProcessor.getDefault().post(new Runnable() { public void run() { doSetKeys (); } }); }
@Override public void actionPerformed (final @Nonnull ActionEvent event) { RequestProcessor.getDefault().post(new Runnable() { @Override public void run() { retrier.retry(); } }); }
private void initCombo() { cbCategory.setModel(new DefaultComboBoxModel(new String[]{NbBundle.getMessage(CategoryPicker.class, "LBL_Loading")})); RequestProcessor.getDefault().post(new Runnable() { @Override public void run() { initCategories(); } }); }
public void run() { if (!first) { RequestProcessor.getDefault().post(r); progressPanel.open(progressComponent, title); } else { first = false; SwingUtilities.invokeLater(this); } } });
private Evaluator getEvaluator() { if (evaluator == null) { evaluator = new Evaluator(0); org.openide.util.RequestProcessor.getDefault().post(evaluator); } return evaluator; }