Java Code Examples for com.intellij.ide.ui.UISettings#PLACEMENT_EDITOR_TAB_BOTTOM

The following examples show how to use com.intellij.ide.ui.UISettings#PLACEMENT_EDITOR_TAB_BOTTOM . 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 vote down vote up
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: TabsPlacementAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
int getPlace() {
  return UISettings.PLACEMENT_EDITOR_TAB_BOTTOM;
}