use of com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl 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.fileEditor.impl.FileEditorProviderManagerImpl in project intellij-community by JetBrains.
the class FileEditorManagerTestCase method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
DockManager dockManager = DockManager.getInstance(getProject());
myOldDockContainers = dockManager.getContainers();
myManager = new FileEditorManagerImpl(getProject(), dockManager);
myOldManager = ((ComponentManagerImpl) getProject()).registerComponentInstance(FileEditorManager.class, myManager);
((FileEditorProviderManagerImpl) FileEditorProviderManager.getInstance()).clearSelectedProviders();
}
Aggregations