Java 类com.intellij.openapi.util.BusyObject 实例源码

项目:intellij-ce-playground    文件:UiActivityMonitorImpl.java   
@NotNull
@Override
public BusyObject getBusy(@NotNull Project project, @NotNull UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(project, toWatch);
}
项目:intellij-ce-playground    文件:UiActivityMonitorImpl.java   
@NotNull
@Override
public BusyObject getBusy(@NotNull UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(null, toWatch);
}
项目:intellij-ce-playground    文件:ActivityMonitorTest.java   
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]);
}
项目:tools-idea    文件:ActivityMonitorTest.java   
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]);
}
项目:consulo    文件:ActivityMonitorTest.java   
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]);
}
项目:intellij-ce-playground    文件:Content.java   
@Nullable
BusyObject getBusyObject();
项目:intellij-ce-playground    文件:UiActivityMonitor.java   
@NotNull
public abstract BusyObject getBusy(@NotNull Project project, @NotNull UiActivity ... toWatch);
项目:intellij-ce-playground    文件:UiActivityMonitor.java   
@NotNull
public abstract BusyObject getBusy(@NotNull UiActivity ... toWatch);
项目:intellij-ce-playground    文件:ContentImpl.java   
@Override
public void setBusyObject(BusyObject object) {
  myBusyObject = object;
}
项目:intellij-ce-playground    文件:ContentImpl.java   
@Override
public BusyObject getBusyObject() {
  return myBusyObject;
}
项目:intellij-ce-playground    文件:ActivityMonitorTest.java   
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());
}
项目:tools-idea    文件:Content.java   
@Nullable
BusyObject getBusyObject();
项目:tools-idea    文件:ContentImpl.java   
@Override
public void setBusyObject(BusyObject object) {
  myBusyObject = object;
}
项目:tools-idea    文件:ContentImpl.java   
@Override
public BusyObject getBusyObject() {
  return myBusyObject;
}
项目:tools-idea    文件:UiActivityMonitorImpl.java   
@Override
public BusyObject getBusy(@NotNull Project project, UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(project, toWatch);
}
项目:tools-idea    文件:UiActivityMonitorImpl.java   
@Override
public BusyObject getBusy(UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(null, toWatch);
}
项目:tools-idea    文件:ActivityMonitorTest.java   
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());
}
项目:consulo    文件:ActivityMonitorTest.java   
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());
}
项目:consulo    文件:Content.java   
@Nullable
BusyObject getBusyObject();
项目:consulo    文件:UnifiedContentImpl.java   
@Override
public void setBusyObject(BusyObject object) {
  myBusyObject = object;
}
项目:consulo    文件:UnifiedContentImpl.java   
@Override
public BusyObject getBusyObject() {
  return myBusyObject;
}
项目:consulo    文件:ContentImpl.java   
@Override
public void setBusyObject(BusyObject object) {
  myBusyObject = object;
}
项目:consulo    文件:ContentImpl.java   
@Override
public BusyObject getBusyObject() {
  return myBusyObject;
}
项目:consulo    文件:UiActivityMonitorImpl.java   
@Override
public BusyObject getBusy(@Nonnull Project project, UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(project, toWatch);
}
项目:consulo    文件:UiActivityMonitorImpl.java   
@Override
public BusyObject getBusy(UiActivity... toWatch) {
  if (!isActive()) return myEmptyBusy;

  return _getBusy(null, toWatch);
}
项目:intellij-ce-playground    文件:Content.java   
void setBusyObject(BusyObject object);
项目:tools-idea    文件:Content.java   
void setBusyObject(BusyObject object);
项目:tools-idea    文件:UiActivityMonitor.java   
public abstract BusyObject getBusy(@NotNull Project project, UiActivity ... toWatch);
项目:tools-idea    文件:UiActivityMonitor.java   
public abstract BusyObject getBusy(UiActivity ... toWatch);
项目:consulo    文件:Content.java   
void setBusyObject(BusyObject object);
项目:consulo    文件:UiActivityMonitor.java   
public abstract BusyObject getBusy(@Nonnull Project project, UiActivity ... toWatch);
项目:consulo    文件:UiActivityMonitor.java   
public abstract BusyObject getBusy(UiActivity ... toWatch);