mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] refresh action does soft refresh
This commit is contained in:
@@ -256,6 +256,14 @@ public class VcsLogData implements Disposable, VcsLogDataProvider {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Refreshes all the roots.
|
||||
* In contrast to refreshCompletely, does not re-read all log but rather the most recent commits.
|
||||
*/
|
||||
public void refreshSoftly() {
|
||||
myRefresher.refresh(myLogProviders.keySet());
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes the log perform refresh for the given root.
|
||||
* This refresh can be optimized, i. e. it can query VCS just for the part of the log.
|
||||
|
||||
@@ -54,7 +54,7 @@ public class RefreshLogAction extends RefreshAction {
|
||||
}
|
||||
}
|
||||
|
||||
logManager.getDataManager().refreshCompletely();
|
||||
logManager.getDataManager().refreshSoftly();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user