diff --git a/platform/lang-impl/src/com/intellij/ide/todo/ChangeListTodosPanel.java b/platform/lang-impl/src/com/intellij/ide/todo/ChangeListTodosPanel.java index 2f732113e49b..39c2eee7640b 100644 --- a/platform/lang-impl/src/com/intellij/ide/todo/ChangeListTodosPanel.java +++ b/platform/lang-impl/src/com/intellij/ide/todo/ChangeListTodosPanel.java @@ -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