mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ public abstract class SyntaxHighlighterFactory {
|
||||
*
|
||||
* @param project might be necessary to gather various project settings from.
|
||||
* @param virtualFile might be necessary to collect file specific settings
|
||||
* @return <code>SyntaxHighlighter</code> interface implementation for this particular language.
|
||||
* @return {@code SyntaxHighlighter} interface implementation for this particular language.
|
||||
*/
|
||||
@NotNull
|
||||
public abstract SyntaxHighlighter getSyntaxHighlighter(@Nullable Project project, @Nullable VirtualFile virtualFile);
|
||||
|
||||
+4
-4
@@ -44,9 +44,9 @@ public class ProgressManagerImpl extends CoreProgressManager implements Disposab
|
||||
|
||||
public ProgressManagerImpl() {
|
||||
HeavyProcessLatch.INSTANCE.addUIActivityListener(new HeavyProcessLatch.HeavyProcessListener() {
|
||||
CheckCanceledHook sleepHook = indicator -> sleepIfNeededToGivePriorityToAnotherThread();
|
||||
AtomicBoolean scheduled = new AtomicBoolean();
|
||||
Runnable addHookLater = () -> {
|
||||
private final CheckCanceledHook sleepHook = indicator -> sleepIfNeededToGivePriorityToAnotherThread();
|
||||
private final AtomicBoolean scheduled = new AtomicBoolean();
|
||||
private final Runnable addHookLater = () -> {
|
||||
scheduled.set(false);
|
||||
if (HeavyProcessLatch.INSTANCE.hasPrioritizedThread()) {
|
||||
addCheckCanceledHook(sleepHook);
|
||||
@@ -100,7 +100,7 @@ public class ProgressManagerImpl extends CoreProgressManager implements Disposab
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void runWithAlwaysCheckingCanceled(@NotNull Runnable runnable) {
|
||||
public static void __testWhileAlwaysCheckingCanceled(@NotNull Runnable runnable) {
|
||||
Thread fake = new Thread("fake");
|
||||
try {
|
||||
threadsUnderCanceledIndicator.add(fake);
|
||||
|
||||
Reference in New Issue
Block a user