Minor changes.

This commit is contained in:
Evgeny Gerashchenko
2012-07-22 22:11:45 +04:00
parent 1d2e80b157
commit c2024b68e6
@@ -197,6 +197,9 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific
model.addLibraryEntry(library); model.addLibraryEntry(library);
model.commit(); model.commit();
} }
else {
model.dispose();
}
updateNotifications(); updateNotifications();
} }
} }
@@ -204,7 +207,7 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific
} }
private void updateNotifications() { private void updateNotifications() {
SwingUtilities.invokeLater(new Runnable() { ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override @Override
public void run() { public void run() {
EditorNotifications.getInstance(myProject).updateAllNotifications(); EditorNotifications.getInstance(myProject).updateAllNotifications();