当前位置: 首页>>代码示例>>Java>>正文


Java DockManager.getInstance方法代码示例

本文整理汇总了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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FileEditorManagerTestCase.java

示例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();
  }
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:29,代码来源:EditorsContextTest.java

示例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();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:HeavyFileEditorManagerTestCase.java

示例4: getDockManager

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManager getDockManager() {
  return DockManager.getInstance(myProject);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:EditorTabbedContainer.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:HeavyFileEditorManagerTestCase.java

示例6: getDockManager

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManagerImpl getDockManager() {
  return (DockManagerImpl)DockManager.getInstance(myProject);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:RunnerContentUi.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:FileEditorManagerTestCase.java

示例8: getDockManager

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
private DockManager getDockManager()
{
	return DockManager.getInstance(myProject);
}
 
开发者ID:consulo,项目名称:consulo-terminal,代码行数:5,代码来源:JBTabbedTerminalWidget.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:HeavyFileEditorManagerTestCase.java


注:本文中的com.intellij.ui.docking.DockManager.getInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。