mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: Refactor "CommittedChangesPanel" - use more generic type
This commit is contained in:
+2
-10
@@ -146,16 +146,8 @@ public class CommittedChangesPanel extends JPanel implements TypeSafeDataProvide
|
||||
@Override
|
||||
public void run(@NotNull final ProgressIndicator indicator) {
|
||||
try {
|
||||
final AsynchConsumer<List<CommittedChangeList>> appender = new AsynchConsumer<List<CommittedChangeList>>() {
|
||||
@Override
|
||||
public void finished() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void consume(final List<CommittedChangeList> list) {
|
||||
runOrInvokeLaterAboveProgress(() -> myBrowser.append(list), ModalityState.stateForComponent(myBrowser), myProject);
|
||||
}
|
||||
};
|
||||
Consumer<List<CommittedChangeList>> appender = list ->
|
||||
runOrInvokeLaterAboveProgress(() -> myBrowser.append(list), ModalityState.stateForComponent(myBrowser), myProject);
|
||||
final BufferedListConsumer<CommittedChangeList> bufferedListConsumer = new BufferedListConsumer<>(30, appender, -1);
|
||||
|
||||
myProvider.loadCommittedChanges(mySettings, myLocation, myMaxCount, new AsynchConsumer<CommittedChangeList>() {
|
||||
|
||||
Reference in New Issue
Block a user