UnknownSdkTracker - split presentation from logic, componentize

GitOrigin-RevId: 28d753b3e038d04d3bb9ee23273194bea1537830
This commit is contained in:
Eugene Petrenko
2019-12-18 10:32:28 +00:00
committed by intellij-monorepo-bot
parent b2a226a6d3
commit b9cd59380d
7 changed files with 329 additions and 278 deletions
@@ -9,7 +9,7 @@ import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx;
import com.intellij.openapi.projectRoots.ProjectJdkTable;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.projectRoots.impl.UnknownSdkTracker;
import com.intellij.openapi.projectRoots.impl.UnknownSdkEditorNotification;
import com.intellij.openapi.roots.ModuleRootModificationUtil;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.util.Disposer;
@@ -87,7 +87,7 @@ public class SdkSetupNotificationTest extends JavaCodeInsightFixtureTestCase {
AssertionsForClassTypes.assertThat(editors).hasSize(1);
EditorNotificationsImpl.completeAsyncTasks();
List<? extends EditorNotificationPanel> data = editors[0].getUserData(UnknownSdkTracker.GlobalEditorNotification.NOTIFICATIONS);
List<? extends EditorNotificationPanel> data = editors[0].getUserData(UnknownSdkEditorNotification.NOTIFICATIONS);
if (data == null) return null;
Assert.assertEquals("Only one notification was expected, but were " + data, 1, data.size());
return data.iterator().next();