com.intellij.openapi.project.PossiblyDumbAware Java Examples
The following examples show how to use
com.intellij.openapi.project.PossiblyDumbAware.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DisposeAwareRunnable.java From consulo with Apache License 2.0 | 5 votes |
private static Runnable create(@Nonnull Runnable delegate, @Nullable Object disposable) { if (disposable == null) { return delegate; } if (delegate instanceof DumbAware) { return new DumbAwareRunnable(delegate, disposable); } if (delegate instanceof PossiblyDumbAware) { return new PossiblyDumbAwareRunnable(delegate, disposable); } return new DisposeAwareRunnable(delegate, disposable); }
Example #2
Source File: DisposeAwareRunnable.java From consulo with Apache License 2.0 | 4 votes |
@Override public boolean isDumbAware() { return ((PossiblyDumbAware)myDelegate).isDumbAware(); }