本文整理汇总了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);
}
示例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();
}
示例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);
}
示例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());
}
示例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());
}
示例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);
}