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


Java FileEditorManagerEx.getSplitters方法代码示例

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


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

示例1: getAnchor

import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx; //导入方法依赖的package包/类
@NotNull
private static Component getAnchor(@NotNull JRootPane pane) {
  Component tabWrapper = UIUtil.findComponentOfType(pane, TabbedPaneWrapper.TabWrapper.class);
  if (tabWrapper != null) return tabWrapper;
  Component splitters = UIUtil.findComponentOfType(pane, EditorsSplitters.class);
  if (splitters != null) return splitters;
  FileEditorManagerEx ex = FileEditorManagerEx.getInstanceEx(ProjectUtil.guessCurrentProject(pane));
  return ex == null ? pane : ex.getSplitters();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:InfoAndProgressPanel.java

示例2: getSplittersToFocus

import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx; //导入方法依赖的package包/类
private EditorsSplitters getSplittersToFocus() {
  Window activeWindow = myWindowManager.getMostRecentFocusedWindow();

  if (activeWindow instanceof FloatingDecorator) {
    IdeFocusManager ideFocusManager = IdeFocusManager.findInstanceByComponent(activeWindow);
    IdeFrame lastFocusedFrame = ideFocusManager.getLastFocusedFrame();
    JComponent frameComponent = lastFocusedFrame != null ? lastFocusedFrame.getComponent() : null;
    Window lastFocusedWindow = frameComponent != null ? SwingUtilities.getWindowAncestor(frameComponent) : null;
    activeWindow = ObjectUtils.notNull(lastFocusedWindow, activeWindow);
  }

  FileEditorManagerEx fem = FileEditorManagerEx.getInstanceEx(myProject);
  EditorsSplitters splitters = activeWindow != null ? fem.getSplittersFor(activeWindow) : null;
  return splitters != null ? splitters : fem.getSplitters();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:ToolWindowManagerImpl.java

示例3: getAnchor

import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx; //导入方法依赖的package包/类
@Nonnull
private static Component getAnchor(@Nonnull JRootPane pane) {
  Component tabWrapper = UIUtil.findComponentOfType(pane, TabbedPaneWrapper.TabWrapper.class);
  if (tabWrapper != null && tabWrapper.isShowing()) return tabWrapper;
  DesktopEditorsSplitters splitters = UIUtil.findComponentOfType(pane, DesktopEditorsSplitters.class);
  if (splitters != null) {
    return splitters.isShowing() ? splitters : pane;
  }
  FileEditorManagerEx ex = FileEditorManagerEx.getInstanceEx(ProjectUtil.guessCurrentProject(pane));
  if (ex == null) return pane;
  splitters = (DesktopEditorsSplitters)ex.getSplitters();
  return splitters.isShowing() ? splitters : pane;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:InfoAndProgressPanel.java

示例4: getSplittersToFocus

import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx; //导入方法依赖的package包/类
private EditorSplitters getSplittersToFocus() {
  Window activeWindow = myWindowManager.getMostRecentFocusedWindow();

  if (activeWindow instanceof DesktopFloatingDecorator) {
    IdeFocusManager ideFocusManager = IdeFocusManager.findInstanceByComponent(activeWindow);
    IdeFrame lastFocusedFrame = ideFocusManager.getLastFocusedFrame();
    JComponent frameComponent = lastFocusedFrame != null ? lastFocusedFrame.getComponent() : null;
    Window lastFocusedWindow = frameComponent != null ? SwingUtilities.getWindowAncestor(frameComponent) : null;
    activeWindow = ObjectUtil.notNull(lastFocusedWindow, activeWindow);
  }

  FileEditorManagerEx fem = FileEditorManagerEx.getInstanceEx(myProject);
  EditorSplitters splitters = activeWindow != null ? fem.getSplittersFor(activeWindow) : null;
  return splitters != null ? splitters : fem.getSplitters();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:16,代码来源:DesktopToolWindowManagerImpl.java


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