mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-122949 ChangeListTodosPanel should update GUI on EDT
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,6 +21,7 @@
|
||||
package com.intellij.ide.todo;
|
||||
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.vcs.changes.Change;
|
||||
@@ -28,6 +29,7 @@ import com.intellij.openapi.vcs.changes.ChangeList;
|
||||
import com.intellij.openapi.vcs.changes.ChangeListAdapter;
|
||||
import com.intellij.openapi.vcs.changes.ChangeListManager;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.ui.AppUIUtil;
|
||||
import com.intellij.ui.content.Content;
|
||||
import com.intellij.util.Alarm;
|
||||
|
||||
@@ -54,7 +56,12 @@ public abstract class ChangeListTodosPanel extends TodoPanel{
|
||||
@Override
|
||||
public void defaultListChanged(final ChangeList oldDefaultList, final ChangeList newDefaultList) {
|
||||
rebuildWithAlarm(myAlarm);
|
||||
setDisplayName(IdeBundle.message("changelist.todo.title", newDefaultList.getName()));
|
||||
AppUIUtil.invokeOnEdt(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
setDisplayName(IdeBundle.message("changelist.todo.title", newDefaultList.getName()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user