mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
v8 profiling, expand fixes: delay width recalculation (do it for group of events, not for every event), send data changed event also for group of events for tree table adapter
use notification method for batch expands (cancel widths recalculation while doing batch expand)
This commit is contained in:
@@ -20,6 +20,7 @@ import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.ModalityState;
|
||||
import com.intellij.openapi.progress.SomeQueue;
|
||||
import com.intellij.util.Alarm;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@SomeQueue
|
||||
public class ZipperUpdater {
|
||||
@@ -44,11 +45,11 @@ public class ZipperUpdater {
|
||||
myAlarm = new Alarm(threadToUse, parentDisposable);
|
||||
}
|
||||
|
||||
public void queue(final Runnable runnable) {
|
||||
public void queue(@NotNull final Runnable runnable) {
|
||||
queue(runnable, false);
|
||||
}
|
||||
|
||||
public void queue(final Runnable runnable, final boolean urgent) {
|
||||
public void queue(@NotNull final Runnable runnable, final boolean urgent) {
|
||||
synchronized (myLock) {
|
||||
if (myAlarm.isDisposed()) return;
|
||||
final boolean wasRaised = myRaised;
|
||||
|
||||
Reference in New Issue
Block a user