Refine search
private void start() { detach(); if (initTask == null) { initTask = RequestProcessor.getDefault().post(this); } }
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 void clear(int timeInMillis) { RequestProcessor.getDefault().post(new Runnable() { public void run() { if( text == getStatusText() ) setStatusText(""); } }, timeInMillis); }
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); } }
public void actionPerformed(ActionEvent e) { RequestProcessor.getDefault().post(new Runnable() { public void run() { DLightLogger.instance.info("StopDLightAction performed @ " + System.currentTimeMillis()); DLightManager.getDefault().stopActiveSession(); } }); }
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); } }); }
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 static void gc() { // Can be slow, would prefer not to block on it. RequestProcessor.getDefault().post(new Runnable() { public void run() { System.gc(); System.runFinalization(); System.gc(); } }); }
private static void gc() { // Can be slow, would prefer not to block on it. RequestProcessor.getDefault().post(new Runnable() { public void run() { System.gc(); System.runFinalization(); System.gc(); } }); }
@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; }
private void start() { detach(); if (initTask == null) { initTask = RequestProcessor.getDefault().post(this); } }
@Override public void fileChanged(FileEvent fe) { showWaitNode(); RequestProcessor.getDefault().post(POMInheritancePanel.this); } };
@Override protected void addNotify() { //set dummy loading node setKeys(new BuildPlanGroup[]{loading}); RequestProcessor.getDefault().post(new Runnable() { public void run() { BuildPlanGroup bpg = view.retrieveBuildPlanGroup(nmp); setKeys(new BuildPlanGroup[]{bpg}); } }); } }