mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ES: merge frequent importing requests for the same project
This commit is contained in:
+2
-1
@@ -81,6 +81,7 @@ public class ExternalSystemProjectsWatcherImpl extends ExternalSystemTaskNotific
|
||||
private static final Key<Long> CRC_WITHOUT_SPACES_BEFORE_LAST_IMPORT =
|
||||
Key.create("ExternalSystemProjectsWatcher.CRC_WITHOUT_SPACES_BEFORE_LAST_IMPORT");
|
||||
private static final int DOCUMENT_SAVE_DELAY = 1000;
|
||||
private static final int REFRESH_MERGING_TIME_SPAN = 2000;
|
||||
|
||||
private final Project myProject;
|
||||
private final Set<Document> myChangedDocuments = new THashSet<>();
|
||||
@@ -99,7 +100,7 @@ public class ExternalSystemProjectsWatcherImpl extends ExternalSystemTaskNotific
|
||||
DOCUMENT_SAVE_DELAY, false, ANY_COMPONENT, myProject);
|
||||
|
||||
myRefreshRequestsQueue = new MergingUpdateQueue("ExternalSystemProjectsWatcher: Refresh requests queue",
|
||||
0, false, ANY_COMPONENT, myProject, null, false);
|
||||
REFRESH_MERGING_TIME_SPAN, false, ANY_COMPONENT, myProject, null, false);
|
||||
|
||||
myImportAwareManagers = ContainerUtil.newArrayList();
|
||||
for (ExternalSystemManager<?, ?, ?, ?, ?> manager : ExternalSystemApiUtil.getAllManagers()) {
|
||||
|
||||
Reference in New Issue
Block a user