• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Wrapper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.ui.components.panels.Wrapper的典型用法代码示例。如果您正苦于以下问题:Java Wrapper类的具体用法?Java Wrapper怎么用?Java Wrapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Wrapper类属于com.intellij.ui.components.panels包,在下文中一共展示了Wrapper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: DiffPanelBase

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public DiffPanelBase(@Nullable Project project,
                     @NotNull DataProvider provider,
                     @NotNull DiffContext context) {
  super(new BorderLayout());
  myProject = project;
  myDataProvider = provider;
  myContext = context;

  myCardLayout = new CardLayout();
  myContentPanel = new JPanel(myCardLayout);

  myNotificationsPanel = new JPanel();
  myNotificationsPanel.setLayout(new BoxLayout(myNotificationsPanel, BoxLayout.Y_AXIS));

  myNorthPanel = new Wrapper();
  mySouthPanel = new Wrapper();

  add(myContentPanel, BorderLayout.CENTER);
  add(myNorthPanel, BorderLayout.NORTH);
  add(mySouthPanel, BorderLayout.SOUTH);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:DiffPanelBase.java


示例2: MyComponent

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private MyComponent(JComponent content, BalloonImpl balloon, EmptyBorder shapeBorder) {
  setOpaque(false);
  setLayout(null);
  myBalloon = balloon;

  setFocusCycleRoot(true);
  putClientProperty(Balloon.KEY, BalloonImpl.this);

  myContent = new JPanel(new BorderLayout(2, 2));
  Wrapper contentWrapper = new Wrapper(content);
  if (myTitle != null) {
    myTitleLabel = new JLabel(myTitle, SwingConstants.CENTER);
    myTitleLabel.setForeground(UIManager.getColor("List.background"));
    myTitleLabel.setBorder(new EmptyBorder(0, 4, 0, 4));
    myContent.add(myTitleLabel, BorderLayout.NORTH);
    contentWrapper.setBorder(new EmptyBorder(1, 1, 1, 1));
  }
  myContent.add(contentWrapper, BorderLayout.CENTER);
  myContent.setBorder(shapeBorder);
  myContent.setOpaque(false);

  add(myContent);


}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:BalloonImpl.java


示例3: getComponent

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
@NotNull
@Override
public JComponent getComponent() {
  if (myComponent == null) {
    myComponent = new MyNonOpaquePanel();

    myFocusProxy = new Wrapper.FocusHolder();
    myFocusProxy.setOpaque(false);
    myFocusProxy.setPreferredSize(JBUI.emptySize());

    MyContentComponent contentComponent = new MyContentComponent();
    contentComponent.setContent(myUI.getComponent());
    contentComponent.setFocusCycleRoot(true);

    myComponent.add(myFocusProxy, BorderLayout.NORTH);
    myComponent.add(contentComponent, BorderLayout.CENTER);
  }
  return myComponent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:ContentManagerImpl.java


示例4: queueShow

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private void queueShow(final JComponent c, final MouseEvent me, final boolean toCenter, int shift, int posChangeX, int posChangeY) {
  String aText = String.valueOf(c.getToolTipText(me));
  final IdeTooltip tooltip = new IdeTooltip(c, me.getPoint(), null, /*new Object()*/c, aText) {
    @Override
    protected boolean beforeShow() {
      myCurrentEvent = me;

      if (!c.isShowing()) return false;

      String text = c.getToolTipText(myCurrentEvent);
      if (text == null || text.trim().isEmpty()) return false;

      JLayeredPane layeredPane = IJSwingUtilities.findParentOfType(c, JLayeredPane.class);

      final JEditorPane pane = initPane(text, new HintHint(me).setAwtTooltip(true), layeredPane);
      final Wrapper wrapper = new Wrapper(pane);
      setTipComponent(wrapper);
      return true;
    }
  }.setToCenter(toCenter).setCalloutShift(shift).setPositionChangeShift(posChangeX, posChangeY).setLayer(Balloon.Layer.top);

  show(tooltip, false);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:IdeTooltipManager.java


示例5: VcsCommitInfoBalloon

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public VcsCommitInfoBalloon(@NotNull JTree tree) {
  myTree = tree;
  myEditorPane = new JEditorPane(UIUtil.HTML_MIME, "");
  myEditorPane.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
  myEditorPane.setEditable(false);
  myEditorPane.setBackground(HintUtil.INFORMATION_COLOR);
  myEditorPane.setFont(UIUtil.getToolTipFont());
  myEditorPane.setBorder(HintUtil.createHintBorder());
  Border margin = IdeBorderFactory.createEmptyBorder(3, 3, 3, 3);
  myEditorPane.setBorder(new CompoundBorder(myEditorPane.getBorder(), margin));
  myEditorPane.addHyperlinkListener(new HyperlinkAdapter() {
    @Override
    protected void hyperlinkActivated(HyperlinkEvent e) {
      BrowserUtil.browse(e.getURL());
    }
  });
  myWrapper = new Wrapper(myEditorPane);
  myPopupBuilder = JBPopupFactory.getInstance().createComponentPopupBuilder(myWrapper, null);
  myPopupBuilder.setCancelOnClickOutside(true).setResizable(true).setMovable(true).setRequestFocus(false)
    .setMinSize(new Dimension(80, 30));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:VcsCommitInfoBalloon.java


示例6: getTargets

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
@Override
public List<SwitchTarget> getTargets(boolean onlyVisible, boolean originalProvider) {
  List<SwitchTarget> result = new ArrayList<SwitchTarget>();

  result.addAll(myTabs.getTargets(true, false));
  GridImpl grid = getSelectedGrid();
  if (grid != null) {
    result.addAll(grid.getTargets(onlyVisible));
  }

  for (Wrapper wrapper : myMinimizedButtonsPlaceholder.values()) {
    if (!wrapper.isShowing()) continue;
    JComponent target = wrapper.getTargetComponent();
    if (target instanceof ActionToolbar) {
      ActionToolbar tb = (ActionToolbar)target;
      result.addAll(tb.getTargets(onlyVisible, false));
    }
  }

  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:RunnerContentUi.java


示例7: MyComponent

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private MyComponent(JComponent content, BalloonImpl balloon, EmptyBorder shapeBorder) {
  setOpaque(false);
  setLayout(null);
  myBalloon = balloon;

  setFocusCycleRoot(true);
  putClientProperty(Balloon.KEY, BalloonImpl.this);

  myContent = new JPanel(new BorderLayout(2, 2));
  Wrapper contentWrapper = new Wrapper(content);
  if (myTitle != null) {
    myTitleLabel = new JLabel(myTitle, CENTER);
    myTitleLabel.setForeground(UIManager.getColor("List.background"));
    myTitleLabel.setBorder(new EmptyBorder(0, 4, 0, 4));
    myContent.add(myTitleLabel, BorderLayout.NORTH);
    contentWrapper.setBorder(new EmptyBorder(1, 1, 1, 1));
  }
  myContent.add(contentWrapper, BorderLayout.CENTER);
  myContent.setBorder(shapeBorder);
  myContent.setOpaque(false);

  add(myContent);


}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:26,代码来源:BalloonImpl.java


示例8: queueShow

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private void queueShow(final JComponent c, final MouseEvent me, final boolean toCenter, int shift, int posChangeX, int posChangeY) {
  final IdeTooltip tooltip = new IdeTooltip(c, me.getPoint(), null, new Object()) {
    @Override
    protected boolean beforeShow() {
      myCurrentEvent = me;

      if (!c.isShowing()) return false;

      String text = c.getToolTipText(myCurrentEvent);
      if (text == null || text.trim().isEmpty()) return false;

      JLayeredPane layeredPane = IJSwingUtilities.findParentOfType(c, JLayeredPane.class);

      final JEditorPane pane = initPane(text, new HintHint(me).setAwtTooltip(true), layeredPane);
      final Wrapper wrapper = new Wrapper(pane);
      setTipComponent(wrapper);
      return true;
    }
  }.setToCenter(toCenter).setCalloutShift(shift).setPositionChangeShift(posChangeX, posChangeY).setLayer(Balloon.Layer.top);

  show(tooltip, false);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:23,代码来源:IdeTooltipManager.java


示例9: applyColors

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
/**
 * Apply current colors to all open Scenario Editors
 */
private static void applyColors() {
    Project[] openProjects = ProjectManager.getInstance().getOpenProjects();
    for (Project p : openProjects) {
        FileEditor[] allEditors = FileEditorManager.getInstance(p).getAllEditors();
        for (FileEditor e : allEditors) {
            //all scenario editors are wrapped by Intellij
            if (e.getName().equals("Designer") && e.getComponent() instanceof Wrapper) {
                JComponent targetComponent = ((Wrapper) e.getComponent()).getTargetComponent();
                if (targetComponent instanceof EditorPanel) {
                    ScenarioPanel scenarioPanel = ((EditorPanel) targetComponent).getScenarioPanel();
                    updateColorAdjustableTree(new Component[]{scenarioPanel});
                }
            }
        }
    }
}
 
开发者ID:PerfCake,项目名称:PerfCakeIDEA-deprecated,代码行数:20,代码来源:ColorComponents.java


示例10: DiffPanelBase

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public DiffPanelBase(@Nullable Project project,
                     @Nonnull DataProvider provider,
                     @Nonnull DiffContext context) {
  super(new BorderLayout());
  myProject = project;
  myDataProvider = provider;
  myContext = context;

  myCardLayout = new CardLayout();
  myContentPanel = new JPanel(myCardLayout);

  myNotificationsPanel = new JPanel();
  myNotificationsPanel.setLayout(new BoxLayout(myNotificationsPanel, BoxLayout.Y_AXIS));

  myNorthPanel = new Wrapper();
  mySouthPanel = new Wrapper();

  add(myContentPanel, BorderLayout.CENTER);
  add(myNorthPanel, BorderLayout.NORTH);
  add(mySouthPanel, BorderLayout.SOUTH);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:22,代码来源:DiffPanelBase.java


示例11: VcsCommitInfoBalloon

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public VcsCommitInfoBalloon(@Nonnull JTree tree) {
  myTree = tree;
  myEditorPane = new JEditorPane(UIUtil.HTML_MIME, "");
  myEditorPane.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
  myEditorPane.setEditable(false);
  myEditorPane.setBackground(HintUtil.INFORMATION_COLOR);
  myEditorPane.setFont(UIUtil.getToolTipFont());
  myEditorPane.setBorder(HintUtil.createHintBorder());
  Border margin = IdeBorderFactory.createEmptyBorder(3, 3, 3, 3);
  myEditorPane.setBorder(new CompoundBorder(myEditorPane.getBorder(), margin));
  myEditorPane.addHyperlinkListener(new HyperlinkAdapter() {
    @Override
    protected void hyperlinkActivated(HyperlinkEvent e) {
      BrowserUtil.browse(e.getURL());
    }
  });
  myWrapper = new Wrapper(myEditorPane);
  myPopupBuilder = JBPopupFactory.getInstance().createComponentPopupBuilder(myWrapper, null);
  myPopupBuilder.setCancelOnClickOutside(true).setResizable(true).setMovable(true).setRequestFocus(false)
          .setMinSize(new Dimension(80, 30));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:22,代码来源:VcsCommitInfoBalloon.java


示例12: getTargets

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
@Override
public List<SwitchTarget> getTargets(boolean onlyVisible, boolean originalProvider) {
  List<SwitchTarget> result = new ArrayList<>();

  result.addAll(myTabs.getTargets(true, false));
  GridImpl grid = getSelectedGrid();
  if (grid != null) {
    result.addAll(grid.getTargets(onlyVisible));
  }

  for (Wrapper wrapper : myMinimizedButtonsPlaceholder.values()) {
    if (!wrapper.isShowing()) continue;
    JComponent target = wrapper.getTargetComponent();
    if (target instanceof ActionToolbar) {
      ActionToolbar tb = (ActionToolbar)target;
      result.addAll(tb.getTargets(onlyVisible, false));
    }
  }

  return result;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:22,代码来源:RunnerContentUi.java


示例13: MergeRequestProcessor

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public MergeRequestProcessor(@Nullable Project project, @NotNull MergeRequest request) {
  myProject = project;
  myRequest = request;

  myContext = new MyDiffContext();
  myContext.putUserData(DiffUserDataKeys.PLACE, DiffPlaces.MERGE);

  myAvailableTools = DiffManagerEx.getInstance().getMergeTools();

  myMainPanel = new MyPanel();
  myContentPanel = new Wrapper();
  myToolbarPanel = new Wrapper();
  myToolbarPanel.setFocusable(true);
  myToolbarStatusPanel = new Wrapper();

  myPanel = JBUI.Panels.simplePanel(myMainPanel);

  JPanel topPanel = JBUI.Panels.simplePanel(myToolbarPanel).addToRight(myToolbarStatusPanel);

  myMainPanel.add(topPanel, BorderLayout.NORTH);
  myMainPanel.add(myContentPanel, BorderLayout.CENTER);

  myMainPanel.setFocusTraversalPolicyProvider(true);
  myMainPanel.setFocusTraversalPolicy(new MyFocusTraversalPolicy());

  MergeTool.MergeViewer viewer;
  try {
    viewer = getFittedTool().createComponent(myContext, myRequest);
  }
  catch (Throwable e) {
    LOG.error(e);
    viewer = ErrorMergeTool.INSTANCE.createComponent(myContext, myRequest);
  }

  myViewer = viewer;
  updateBottomActions();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:38,代码来源:MergeRequestProcessor.java


示例14: buildInProcessCount

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private void buildInProcessCount() {
  removeAll();
  setLayout(new BorderLayout());

  final JPanel progressCountPanel = new JPanel(new BorderLayout(0, 0));
  progressCountPanel.setOpaque(false);
  String processWord = myOriginals.size() == 1 ? " process" : " processes";
  final LinkLabel label = new LinkLabel(myOriginals.size() + processWord + " running...", null, new LinkListener() {
    @Override
    public void linkSelected(final LinkLabel aSource, final Object aLinkData) {
      triggerPopupShowing();
    }
  });

  if (SystemInfo.isMac) label.setFont(JBUI.Fonts.label(11));

  label.setOpaque(false);

  final Wrapper labelComp = new Wrapper(label);
  labelComp.setOpaque(false);
  progressCountPanel.add(labelComp, BorderLayout.CENTER);

  //myProgressIcon.setBorder(new IdeStatusBarImpl.MacStatusBarWidgetBorder());
  progressCountPanel.add(myProgressIcon, BorderLayout.WEST);

  add(myRefreshAndInfoPanel, BorderLayout.CENTER);

  progressCountPanel.setBorder(JBUI.Borders.emptyRight(4));
  add(progressCountPanel, BorderLayout.EAST);

  revalidate();
  repaint();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:34,代码来源:InfoAndProgressPanel.java


示例15: rebuildMinimizedActions

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private boolean rebuildMinimizedActions() {
  for (Map.Entry<GridImpl, Wrapper> entry : myMinimizedButtonsPlaceholder.entrySet()) {
    Wrapper eachPlaceholder = entry.getValue();
    ActionToolbar tb = myActionManager.createActionToolbar(ActionPlaces.DEBUGGER_TOOLBAR, myMinimizedViewActions, true);
    tb.getComponent().setBorder(null);
    tb.setReservePlaceAutoPopupIcon(false);
    JComponent minimized = tb.getComponent();
    eachPlaceholder.setContent(minimized);
  }

  myTabs.getComponent().revalidate();
  myTabs.getComponent().repaint();

  return myMinimizedViewActions.getChildrenCount() > 0;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:RunnerContentUi.java


示例16: removeEmptyBorder

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private static void removeEmptyBorder(@NotNull DetailsComponent details) {
  JComponent gutter = details.getContentGutter();
  for (Component child : gutter.getComponents()) {
    if (child instanceof Wrapper) {
      ((Wrapper)child).setBorder(null);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ProjectProfileSelectionDialog.java


示例17: SvnDiffViewer

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public SvnDiffViewer(@NotNull DiffContext context, @NotNull DiffRequest propertyRequest, @NotNull DiffViewer wrappingViewer) {
  myProject = context.getProject();
  myContext = context;
  myPropertyRequest = propertyRequest;
  myContentViewer = wrappingViewer;

  myPropertyRequest.onAssigned(true);

  mySettings = initSettings(context);

  mySplitter = new MySplitter("Property Changes");
  mySplitter.setProportion(mySettings.getSplitterProportion());
  mySplitter.setFirstComponent(myContentViewer.getComponent());

  myNotificationPanel = new Wrapper();

  MyPropertyContext propertyContext = initPropertyContext(context);
  myPropertiesViewer = createPropertiesViewer(propertyRequest, propertyContext);

  myPanel = new JPanel(new BorderLayout());
  myPanel.add(mySplitter, BorderLayout.CENTER);
  myPanel.add(myNotificationPanel, BorderLayout.SOUTH);
  DataManager.registerDataProvider(myPanel, new DataProvider() {
    @Override
    public Object getData(@NonNls String dataId) {
      DataProvider propertiesDataProvider = DataManagerImpl.getDataProviderEx(myPropertiesViewer.getComponent());
      DataProvider contentDataProvider = DataManagerImpl.getDataProviderEx(myContentViewer.getComponent());
      DataProvider defaultDP = myPropertiesViewerFocused ? propertiesDataProvider : contentDataProvider;
      DataProvider fallbackDP = myPropertiesViewerFocused ? contentDataProvider : propertiesDataProvider;
      return DiffUtil.getData(defaultDP, fallbackDP, dataId);
    }
  });

  updatePropertiesPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:36,代码来源:SvnDiffViewer.java


示例18: FramesPanel

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public FramesPanel(Project project, DebuggerStateManager stateManager) {
  super(project, stateManager);
  myStateManager = stateManager;

  setLayout(new BorderLayout());

  myThreadsCombo = new ComboBoxWithWidePopup();
  myThreadsCombo.setRenderer(new DebuggerComboBoxRenderer(myThreadsCombo.getRenderer()));
  myThreadsListener = new ThreadsListener();
  myThreadsCombo.addItemListener(myThreadsListener);

  myFramesList = new FramesList(project);
  myFramesListener = new FramesListener();
  myFramesList.addListSelectionListener(myFramesListener);

  myFramesList.addMouseListener(new MouseAdapter() {
    public void mousePressed(final MouseEvent e) {
      int index = myFramesList.locationToIndex(e.getPoint());
      if (index >= 0 && myFramesList.isSelectedIndex(index)) {
        processListValue(myFramesList.getModel().getElementAt(index));
      }
    }
  });

  registerThreadsPopupMenu(myFramesList);

  setBorder(null);

  final ActionToolbar toolbar = createToolbar();
  Wrapper threads = new Wrapper();
  CustomLineBorder border = new CustomLineBorder(CaptionPanel.CNT_ACTIVE_BORDER_COLOR, 0, 0, 1, 0);
  threads.setBorder(border);
  threads.add(toolbar.getComponent(), BorderLayout.EAST);
  threads.add(myThreadsCombo, BorderLayout.CENTER);
  add(threads, BorderLayout.NORTH);
  add(ScrollPaneFactory.createScrollPane(myFramesList), BorderLayout.CENTER);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:38,代码来源:FramesPanel.java


示例19: buildInProcessCount

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
private void buildInProcessCount() {
  removeAll();
  setLayout(new BorderLayout());

  final JPanel progressCountPanel = new JPanel(new BorderLayout(0, 0));
  progressCountPanel.setOpaque(false);
  String processWord = myOriginals.size() == 1 ? " process" : " processes";
  final LinkLabel label = new LinkLabel(myOriginals.size() + processWord + " running...", null, new LinkListener() {
    @Override
    public void linkSelected(final LinkLabel aSource, final Object aLinkData) {
      triggerPopupShowing();
    }
  });

  if (SystemInfo.isMac) label.setFont(UIUtil.getLabelFont().deriveFont(11.0f));

  label.setOpaque(false);

  final Wrapper labelComp = new Wrapper(label);
  labelComp.setOpaque(false);
  progressCountPanel.add(labelComp, BorderLayout.CENTER);

  //myProgressIcon.setBorder(new IdeStatusBarImpl.MacStatusBarWidgetBorder());
  progressCountPanel.add(myProgressIcon, BorderLayout.WEST);

  add(myRefreshAndInfoPanel, BorderLayout.CENTER);

  progressCountPanel.setBorder(new EmptyBorder(0, 0, 0, 4));
  add(progressCountPanel, BorderLayout.EAST);

  revalidate();
  repaint();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:34,代码来源:InfoAndProgressPanel.java


示例20: MergeRequestProcessor

import com.intellij.ui.components.panels.Wrapper; //导入依赖的package包/类
public MergeRequestProcessor(@javax.annotation.Nullable Project project, @Nonnull MergeRequest request) {
  myProject = project;
  myRequest = request;

  myContext = new MyDiffContext();
  myContext.putUserData(DiffUserDataKeys.PLACE, DiffPlaces.MERGE);

  myAvailableTools = DiffManagerEx.getInstance().getMergeTools();

  myMainPanel = new MyPanel();
  myContentPanel = new Wrapper();
  myToolbarPanel = new Wrapper();
  myToolbarPanel.setFocusable(true);
  myToolbarStatusPanel = new Wrapper();

  myPanel = JBUI.Panels.simplePanel(myMainPanel);

  JPanel topPanel = JBUI.Panels.simplePanel(myToolbarPanel).addToRight(myToolbarStatusPanel);

  myMainPanel.add(topPanel, BorderLayout.NORTH);
  myMainPanel.add(myContentPanel, BorderLayout.CENTER);

  myMainPanel.setFocusTraversalPolicyProvider(true);
  myMainPanel.setFocusTraversalPolicy(new MyFocusTraversalPolicy());

  MergeTool.MergeViewer viewer;
  try {
    viewer = getFittedTool().createComponent(myContext, myRequest);
  }
  catch (Throwable e) {
    LOG.error(e);
    viewer = ErrorMergeTool.INSTANCE.createComponent(myContext, myRequest);
  }

  myViewer = viewer;
  updateBottomActions();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:38,代码来源:MergeRequestProcessor.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CBUtil类代码示例发布时间:2022-05-22
下一篇:
Java SVNCancelException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap