Java 类com.intellij.ui.ExcludingTraversalPolicy 实例源码

项目:intellij-ce-playground    文件:DirectoryHistoryDialog.java   
@Override
protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) {
  initChangesTree(root);

  JPanel p = new JPanel(new BorderLayout());

  myToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, createChangesTreeActions(root), true);
  JPanel toolBarPanel = new JPanel(new BorderLayout());
  toolBarPanel.add(myToolBar.getComponent(), BorderLayout.CENTER);

  if (showSearchField()) {
    SearchTextField search = createSearchBox(root);
    toolBarPanel.add(search, BorderLayout.EAST);
    traversalPolicy.exclude(search.getTextEditor());
  }

  p.add(toolBarPanel, BorderLayout.NORTH);
  p.add(myChangesTree, BorderLayout.CENTER);

  return Pair.create((JComponent)p, toolBarPanel.getPreferredSize());
}
项目:tools-idea    文件:DirectoryHistoryDialog.java   
@Override
protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) {
  initChangesTree(root);

  JPanel p = new JPanel(new BorderLayout());

  myToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, createChangesTreeActions(root), true);
  JPanel toolBarPanel = new JPanel(new BorderLayout());
  toolBarPanel.add(myToolBar.getComponent(), BorderLayout.CENTER);

  if (showSearchField()) {
    SearchTextField search = createSearchBox(root);
    toolBarPanel.add(search, BorderLayout.EAST);
    traversalPolicy.exclude(search.getTextEditor());
  }

  p.add(toolBarPanel, BorderLayout.NORTH);
  p.add(myChangesTree, BorderLayout.CENTER);

  return Pair.create((JComponent)p, toolBarPanel.getPreferredSize());
}
项目:tools-idea    文件:FileHistoryDialog.java   
@Override
protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) {
  myDiffPanel = DiffManager.getInstance().createDiffPanel(getFrame(), myProject, this, null);
  DiffPanelOptions o = ((DiffPanelEx)myDiffPanel).getOptions();
  o.setRequestFocusOnNewContent(false);
  return Pair.create((JComponent)myDiffPanel.getComponent(), null);
}
项目:intellij-ce-playground    文件:FileHistoryDialog.java   
@Override
protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) {
  myDiffPanel = DiffManager.getInstance().createRequestPanel(myProject, this, getFrame());
  return Pair.create((JComponent)myDiffPanel.getComponent(), null);
}
项目:consulo    文件:FileHistoryDialog.java   
@Override
protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) {
  myDiffPanel = DiffManager.getInstance().createRequestPanel(myProject, this, getFrame());
  return Pair.create((JComponent)myDiffPanel.getComponent(), null);
}