Java Code Examples for com.intellij.util.ui.UIUtil#removeScrollBorder()
The following examples show how to use
com.intellij.util.ui.UIUtil#removeScrollBorder() .
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: DiffUtil.java From consulo with Apache License 2.0 | 6 votes |
@Nonnull public static EditorEx createEditor(@Nonnull Document document, @Nullable Project project, boolean isViewer, boolean enableFolding) { EditorFactory factory = EditorFactory.getInstance(); EditorEx editor = (EditorEx)(isViewer ? factory.createViewer(document, project) : factory.createEditor(document, project)); editor.putUserData(DiffManagerImpl.EDITOR_IS_DIFF_KEY, Boolean.TRUE); editor.getSettings().setShowIntentionBulb(false); ((EditorMarkupModel)editor.getMarkupModel()).setErrorStripeVisible(true); editor.getGutterComponentEx().setShowDefaultGutterPopup(false); if (enableFolding) { setFoldingModelSupport(editor); } else { editor.getSettings().setFoldingOutlineShown(false); editor.getFoldingModel().setFoldingEnabled(false); } UIUtil.removeScrollBorder(editor.getComponent()); return editor; }
Example 2
Source File: SimpleToolWindowPanel.java From react-native-console with BSD 3-Clause "New" or "Revised" License | 5 votes |
public void setContent(JComponent c) { myContent = c; add(c, BorderLayout.CENTER); if (myBorderless) { UIUtil.removeScrollBorder(c); } revalidate(); repaint(); }
Example 3
Source File: SimpleToolWindowPanel.java From consulo with Apache License 2.0 | 5 votes |
public void setContent(JComponent c) { myContent = c; add(c, BorderLayout.CENTER); if (myBorderless) { UIUtil.removeScrollBorder(c); } revalidate(); repaint(); }
Example 4
Source File: JBTabsImpl.java From consulo with Apache License 2.0 | 4 votes |
private void adjust(final TabInfo each) { UIUtil.removeScrollBorder(each.getComponent()); }
Example 5
Source File: ProjectViewImpl.java From consulo with Apache License 2.0 | 4 votes |
private void showPane(@Nonnull AbstractProjectViewPane newPane) { AbstractProjectViewPane currentPane = getCurrentProjectViewPane(); PsiElement selectedPsiElement = null; if (currentPane != null) { if (currentPane != newPane) { currentPane.saveExpandedPaths(); } final PsiElement[] elements = currentPane.getSelectedPSIElements(); if (elements.length > 0) { selectedPsiElement = elements[0]; } } myViewContentPanel.removeAll(); JComponent component = newPane.createComponent(); UIUtil.removeScrollBorder(component); myViewContentPanel.setLayout(new BorderLayout()); myViewContentPanel.add(component, BorderLayout.CENTER); myCurrentViewId = newPane.getId(); String newSubId = myCurrentViewSubId = newPane.getSubId(); myViewContentPanel.revalidate(); myViewContentPanel.repaint(); createToolbarActions(); myAutoScrollToSourceHandler.install(newPane.myTree); IdeFocusManager.getInstance(myProject).requestFocusInProject(newPane.getComponentToFocus(), myProject); newPane.restoreExpandedPaths(); if (selectedPsiElement != null && newSubId != null) { final VirtualFile virtualFile = PsiUtilCore.getVirtualFile(selectedPsiElement); ProjectViewSelectInTarget target = virtualFile == null ? null : getProjectViewSelectInTarget(newPane); if (target != null && target.isSubIdSelectable(newSubId, new SelectInContext() { @Override @Nonnull public Project getProject() { return myProject; } @Override @Nonnull public VirtualFile getVirtualFile() { return virtualFile; } @Override public Object getSelectorInFile() { return null; } })) { newPane.select(selectedPsiElement, virtualFile, true); } } myAutoScrollToSourceHandler.onMouseClicked(newPane.myTree); }