use of com.intellij.openapi.components.impl.ComponentManagerImpl in project intellij-community by JetBrains.
the class NonProjectFileAccessTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
EditorNotifications notifications = new EditorNotificationsImpl(getProject());
((ComponentManagerImpl) getProject()).registerComponentInstance(EditorNotifications.class, notifications);
NonProjectFileWritingAccessProvider.enableChecksInTests(getProject());
ProjectManagerEx.getInstanceEx().blockReloadingProjectOnExternalChanges();
}
use of com.intellij.openapi.components.impl.ComponentManagerImpl in project intellij-community by JetBrains.
the class ReformatOnlyVcsChangedTextTest method registerChangeListManager.
private static void registerChangeListManager(@NotNull ChangeListManager manager) {
Project project = getProject();
assert (project instanceof ComponentManagerImpl);
ComponentManagerImpl projectComponentManager = (ComponentManagerImpl) project;
projectComponentManager.registerComponentInstance(ChangeListManager.class, manager);
}
use of com.intellij.openapi.components.impl.ComponentManagerImpl in project intellij-community by JetBrains.
the class FileEditorManagerTestCase method tearDown.
@Override
protected void tearDown() throws Exception {
try {
for (DockContainer container : DockManager.getInstance(getProject()).getContainers()) {
if (!myOldDockContainers.contains(container)) {
Disposer.dispose(container);
}
}
myOldDockContainers = null;
((ComponentManagerImpl) getProject()).registerComponentInstance(FileEditorManager.class, myOldManager);
myManager.closeAllFiles();
((FileEditorProviderManagerImpl) FileEditorProviderManager.getInstance()).clearSelectedProviders();
} finally {
myManager = null;
myOldManager = null;
super.tearDown();
}
}
use of com.intellij.openapi.components.impl.ComponentManagerImpl in project intellij-community by JetBrains.
the class HeavyFileEditorManagerTestCase method setUp.
public void setUp() throws Exception {
super.setUp();
myManager = new FileEditorManagerImpl(getProject(), DockManager.getInstance(getProject()));
((ComponentManagerImpl) getProject()).registerComponentInstance(FileEditorManager.class, myManager);
}
Aggregations