Search in sources :

Example 1 with FileEditorProviderManagerImpl

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();
    }
}
Also used : DockContainer(com.intellij.ui.docking.DockContainer) ComponentManagerImpl(com.intellij.openapi.components.impl.ComponentManagerImpl) FileEditorProviderManagerImpl(com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl)

Example 2 with FileEditorProviderManagerImpl

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();
}
Also used : FileEditorManager(com.intellij.openapi.fileEditor.FileEditorManager) DockManager(com.intellij.ui.docking.DockManager) FileEditorManagerImpl(com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl) FileEditorProviderManagerImpl(com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl)

Aggregations

FileEditorProviderManagerImpl (com.intellij.openapi.fileEditor.impl.FileEditorProviderManagerImpl)2 ComponentManagerImpl (com.intellij.openapi.components.impl.ComponentManagerImpl)1 FileEditorManager (com.intellij.openapi.fileEditor.FileEditorManager)1 FileEditorManagerImpl (com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl)1 DockContainer (com.intellij.ui.docking.DockContainer)1 DockManager (com.intellij.ui.docking.DockManager)1