本文整理汇总了Java中com.intellij.ui.docking.DockManager.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java DockManager.getInstance方法的具体用法?Java DockManager.getInstance怎么用?Java DockManager.getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ui.docking.DockManager
的用法示例。
在下文中一共展示了DockManager.getInstance方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
DockManager dockManager = DockManager.getInstance(getProject());
myOldDockContainers = dockManager.getContainers();
myManager = new FileEditorManagerImpl(getProject(), dockManager, EditorHistoryManager.getInstance(getProject()));
myOldManager = ((ComponentManagerImpl)getProject()).registerComponentInstance(FileEditorManager.class, myManager);
((FileEditorProviderManagerImpl)FileEditorProviderManager.getInstance()).clearSelectedProviders();
}
示例2: testDockableContainer
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public void testDockableContainer() throws Exception {
VirtualFile file = getFile("/foo.txt");
myManager.openFile(file, false);
DockManager dockManager = DockManager.getInstance(getProject());
assertEquals(1, dockManager.getContainers().size());
myManager.initDockableContentFactory();
myManager.openFileInNewWindow(file);
assertEquals(2, dockManager.getContainers().size());
Element context = new Element("context");
WorkingContextManager contextManager = WorkingContextManager.getInstance(getProject());
contextManager.saveContext(context);
assertEquals(2, context.getChild("editors").getChildren().size());
assertEquals(2, EditorFactory.getInstance().getAllEditors().length);
contextManager.clearContext();
assertEquals(1, dockManager.getContainers().size());
assertEquals(0, EditorFactory.getInstance().getAllEditors().length);
//contextManager.loadContext(context);
//assertEquals(2, dockManager.getContainers().size());
//Editor[] editors = EditorFactory.getInstance().getAllEditors();
//assertEquals(2, editors.length);
//
//contextManager.clearContext();
}
示例3: setUp
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public void setUp() throws Exception {
super.setUp();
myManager = new FileEditorManagerImpl(getProject(), DockManager.getInstance(getProject()));
((ComponentManagerImpl)getProject()).registerComponentInstance(FileEditorManager.class, myManager);
((IdeDocumentHistoryImpl)IdeDocumentHistory.getInstance(getProject())).projectOpened();
EditorHistoryManager.getInstance(getProject()).projectOpened();
}
示例4: getDockManager
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManager getDockManager() {
return DockManager.getInstance(myProject);
}
示例5: setUp
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public void setUp() throws Exception {
super.setUp();
myManager = new FileEditorManagerImpl(getProject(), DockManager.getInstance(getProject()), EditorHistoryManager.getInstance(getProject()));
((ComponentManagerImpl)getProject()).registerComponentInstance(FileEditorManager.class, myManager);
}
示例6: getDockManager
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManagerImpl getDockManager() {
return (DockManagerImpl)DockManager.getInstance(myProject);
}
示例7: setUp
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public void setUp() throws Exception {
super.setUp();
myManager = new FileEditorManagerImpl(getProject(), DockManager.getInstance(getProject()));
myOldManager = ((ComponentManagerImpl)getProject()).registerComponentInstance(FileEditorManager.class, myManager);
}
示例8: getDockManager
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManager getDockManager()
{
return DockManager.getInstance(myProject);
}
示例9: setUp
import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public void setUp() throws Exception
{
super.setUp();
myManager = new FileEditorManagerImpl(getProject(), DockManager.getInstance(getProject()));
((ComponentManagerImpl) getProject()).registerComponentInstance(FileEditorManager.class, myManager);
}