Java Code Examples for com.intellij.ide.ui.UISettings#PLACEMENT_EDITOR_TAB_TOP
The following examples show how to use
com.intellij.ide.ui.UISettings#PLACEMENT_EDITOR_TAB_TOP .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EditorTabbedContainer.java From consulo with Apache License 2.0 | 6 votes |
public void setTabPlacement(final int tabPlacement) { switch (tabPlacement) { case UISettings.PLACEMENT_EDITOR_TAB_TOP: myTabs.getPresentation().setTabsPosition(JBTabsPosition.top); break; case UISettings.PLACEMENT_EDITOR_TAB_BOTTOM: myTabs.getPresentation().setTabsPosition(JBTabsPosition.bottom); break; case UISettings.PLACEMENT_EDITOR_TAB_LEFT: myTabs.getPresentation().setTabsPosition(JBTabsPosition.left); break; case UISettings.PLACEMENT_EDITOR_TAB_RIGHT: myTabs.getPresentation().setTabsPosition(JBTabsPosition.right); break; default: throw new IllegalArgumentException("Unknown tab placement code=" + tabPlacement); } }
Example 2
Source File: EditorHeaderComponent.java From consulo with Apache License 2.0 | 4 votes |
public EditorHeaderComponent() { super(new BorderLayout(0, 0)); boolean topBorderRequired = !SystemInfo.isMac && UISettings.getInstance().EDITOR_TAB_PLACEMENT != UISettings.PLACEMENT_EDITOR_TAB_TOP && !(UISettings.getInstance().SHOW_MAIN_TOOLBAR && UISettings.getInstance().SHOW_NAVIGATION_BAR); setBorder(new CustomLineBorder(JBColor.border(), topBorderRequired ? 1 : 0, 0, 1, 0)); }
Example 3
Source File: TabsPlacementAction.java From consulo with Apache License 2.0 | 4 votes |
@Override int getPlace() { return UISettings.PLACEMENT_EDITOR_TAB_TOP; }