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


Java DockManager.register方法代码示例

本文整理汇总了Java中com.intellij.ui.docking.DockManager.register方法的典型用法代码示例。如果您正苦于以下问题:Java DockManager.register方法的具体用法?Java DockManager.register怎么用?Java DockManager.register使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ui.docking.DockManager的用法示例。


在下文中一共展示了DockManager.register方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EditorsSplitters

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
EditorsSplitters(final FileEditorManagerImpl manager, DockManager dockManager, boolean createOwnDockableContainer) {
  super(new BorderLayout());
  myManager = manager;
  myFocusWatcher = new MyFocusWatcher();
  setFocusTraversalPolicy(new MyFocusTraversalPolicy());
  clear();

  if (createOwnDockableContainer) {
    DockableEditorTabbedContainer dockable = new DockableEditorTabbedContainer(myManager.getProject(), this, false);
    Disposer.register(manager.getProject(), dockable);
    dockManager.register(dockable);
  }
  KeymapManagerListener keymapListener = new KeymapManagerListener() {
    @Override
    public void activeKeymapChanged(Keymap keymap) {
      invalidate();
      repaint();
    }
  };
  KeymapManager.getInstance().addKeymapManagerListener(keymapListener, this);
  UISettings.getInstance().addUISettingsListener(this, this);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:EditorsSplitters.java

示例2: EditorsSplitters

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public EditorsSplitters(final FileEditorManagerImpl manager, DockManager dockManager, boolean createOwnDockableContainer) {
  super(new BorderLayout());
  setOpaque(false);
  myManager = manager;
  myFocusWatcher = new MyFocusWatcher();
  setFocusTraversalPolicy(new MyFocusTraversalPolicy());
  setTransferHandler(new MyTransferHandler());
  clear();

  if (createOwnDockableContainer) {
    DockableEditorTabbedContainer dockable = new DockableEditorTabbedContainer(myManager.getProject(), this, false);
    Disposer.register(manager.getProject(), dockable);
    dockManager.register(dockable);
  }

  UISettings.getInstance().addUISettingsListener(new UISettingsListener() {
    @Override
    public void uiSettingsChanged(UISettings source) {
      updateBackground();
    }
  }, manager.getProject());
  updateBackground();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:24,代码来源:EditorsSplitters.java

示例3: DesktopEditorsSplitters

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
DesktopEditorsSplitters(final FileEditorManagerImpl manager, DockManager dockManager, boolean createOwnDockableContainer) {
  super(new BorderLayout());
  myManager = manager;
  myFocusWatcher = new MyFocusWatcher();
  setFocusTraversalPolicy(new MyFocusTraversalPolicy());
  setTransferHandler(new MyTransferHandler());
  clear();

  if (createOwnDockableContainer) {
    DockableEditorTabbedContainer dockable = new DockableEditorTabbedContainer(myManager.getProject(), this, false);
    Disposer.register(manager.getProject(), dockable);
    dockManager.register(dockable);
  }
  KeymapManagerListener keymapListener = keymap -> {
    invalidate();
    repaint();
  };
  KeymapManager.getInstance().addKeymapManagerListener(keymapListener, this);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:20,代码来源:DesktopEditorsSplitters.java

示例4: RunContentManagerImpl

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public RunContentManagerImpl(@NotNull Project project, @NotNull DockManager dockManager) {
  myProject = project;
  DockableGridContainerFactory containerFactory = new DockableGridContainerFactory();
  dockManager.register(DockableGridContainerFactory.TYPE, containerFactory);
  Disposer.register(myProject, containerFactory);

  AppUIUtil.invokeOnEdt(new Runnable() {
    @Override
    public void run() {
      init();
    }
  }, myProject.getDisposed());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:RunContentManagerImpl.java

示例5: RunContentManagerImpl

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public RunContentManagerImpl(@Nonnull Project project, @Nonnull DockManager dockManager) {
  myProject = project;
  DockableGridContainerFactory containerFactory = new DockableGridContainerFactory();
  dockManager.register(DockableGridContainerFactory.TYPE, containerFactory);
  Disposer.register(myProject, containerFactory);

  AppUIUtil.invokeOnEdt(() -> init(), myProject.getDisposed());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:RunContentManagerImpl.java

示例6: RunContentManagerImpl

import com.intellij.ui.docking.DockManager; //导入方法依赖的package包/类
public RunContentManagerImpl(Project project, DockManager dockManager) {
  myProject = project;
  myContentFactory = new DockableGridContainerFactory();
  dockManager.register(DockableGridContainerFactory.TYPE, myContentFactory);
  Disposer.register(myProject, myContentFactory);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:RunContentManagerImpl.java


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