@NotNull @Override public BusyObject getBusy(@NotNull Project project, @NotNull UiActivity... toWatch) { if (!isActive()) return myEmptyBusy; return _getBusy(project, toWatch); }
@NotNull @Override public BusyObject getBusy(@NotNull UiActivity... toWatch) { if (!isActive()) return myEmptyBusy; return _getBusy(null, toWatch); }
private void assertReady(@Nullable Project key, @NotNull UiActivity ... activities) { UIUtil.dispatchAllInvocationEvents(); BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertTrue("Must be READY, but was: BUSY", busy.isReady()); final boolean[] done = {false}; busy.getReady(this).doWhenDone(new Runnable() { @Override public void run() { done[0] = true; } }); assertTrue(done[0]); }
private void assertReady(@Nullable Project key, UiActivity ... activities) { BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertTrue("Must be READY, but was: BUSY", busy.isReady()); final boolean[] done = new boolean[] {false}; busy.getReady(this).doWhenDone(new Runnable() { @Override public void run() { done[0] = true; } }); assertTrue(done[0]); }
private void assertReady(@Nullable Project key, @Nonnull UiActivity ... activities) { UIUtil.dispatchAllInvocationEvents(); BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertTrue("Must be READY, but was: BUSY", busy.isReady()); final boolean[] done = {false}; busy.getReady(this).doWhenDone(() -> done[0] = true); assertTrue(done[0]); }
@Nullable BusyObject getBusyObject();
@NotNull public abstract BusyObject getBusy(@NotNull Project project, @NotNull UiActivity ... toWatch);
@NotNull public abstract BusyObject getBusy(@NotNull UiActivity ... toWatch);
@Override public void setBusyObject(BusyObject object) { myBusyObject = object; }
@Override public BusyObject getBusyObject() { return myBusyObject; }
private void assertBusy(@Nullable Project key, @NotNull UiActivity ... activities) { UIUtil.dispatchAllInvocationEvents(); BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertFalse("Must be BUSY, but was: READY", busy.isReady()); }
@Override public BusyObject getBusy(@NotNull Project project, UiActivity... toWatch) { if (!isActive()) return myEmptyBusy; return _getBusy(project, toWatch); }
@Override public BusyObject getBusy(UiActivity... toWatch) { if (!isActive()) return myEmptyBusy; return _getBusy(null, toWatch); }
private void assertBusy(@Nullable Project key, UiActivity ... activities) { BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertFalse("Must be BUSY, but was: READY", busy.isReady()); }
private void assertBusy(@Nullable Project key, @Nonnull UiActivity ... activities) { UIUtil.dispatchAllInvocationEvents(); BusyObject.Impl busy = (BusyObject.Impl)(key != null ? myMonitor.getBusy(key, activities) : myMonitor.getBusy(activities)); assertFalse("Must be BUSY, but was: READY", busy.isReady()); }
@Override public BusyObject getBusy(@Nonnull Project project, UiActivity... toWatch) { if (!isActive()) return myEmptyBusy; return _getBusy(project, toWatch); }
void setBusyObject(BusyObject object);
public abstract BusyObject getBusy(@NotNull Project project, UiActivity ... toWatch);
public abstract BusyObject getBusy(UiActivity ... toWatch);
public abstract BusyObject getBusy(@Nonnull Project project, UiActivity ... toWatch);