use of com.intellij.util.ui.components.BorderLayoutPanel in project intellij-community by JetBrains.
the class XDebuggerEditorBase method decorate.
protected JPanel decorate(JComponent component, boolean multiline, boolean showEditor) {
BorderLayoutPanel panel = JBUI.Panels.simplePanel();
JPanel factoryPanel = JBUI.Panels.simplePanel();
factoryPanel.add(myChooseFactory, multiline ? BorderLayout.NORTH : BorderLayout.CENTER);
panel.add(factoryPanel, BorderLayout.WEST);
if (!multiline && showEditor) {
component = addMultilineButton(component);
}
panel.addToCenter(component);
return panel;
}
use of com.intellij.util.ui.components.BorderLayoutPanel in project intellij-community by JetBrains.
the class XDebuggerEditorBase method addChooser.
protected JComponent addChooser(JComponent component) {
BorderLayoutPanel panel = JBUI.Panels.simplePanel(component);
panel.setBackground(component.getBackground());
panel.addToRight(myChooseFactory);
return panel;
}
use of com.intellij.util.ui.components.BorderLayoutPanel in project intellij-community by JetBrains.
the class GitRebaseUnstructuredEditor method createCenterPanel.
protected JComponent createCenterPanel() {
BorderLayoutPanel rootPanel = JBUI.Panels.simplePanel(UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP);
rootPanel.addToTop(myRootLabel);
rootPanel.addToCenter(myTextEditor.getComponent());
return rootPanel;
}
use of com.intellij.util.ui.components.BorderLayoutPanel in project intellij-community by JetBrains.
the class IntersectingLocalChangesPanel method createPanel.
@NotNull
private BorderLayoutPanel createPanel(@NotNull JLabel label, @NotNull JTree tree) {
BorderLayoutPanel panel = JBUI.Panels.simplePanel();
panel.setBackground(UIUtil.getTextFieldBackground());
panel.addToTop(label).addToCenter(tree);
new EditSourceAction().registerCustomShortcutSet(CommonShortcuts.getEditSource(), panel);
DataManager.registerDataProvider(panel, dataId -> {
if (CommonDataKeys.NAVIGATABLE_ARRAY.is(dataId)) {
return getNavigatableArray(myProject, stream(tree.getSelectionPaths()).map(TreePath::getLastPathComponent).map(node -> (ChangesBrowserNode<?>) node).flatMap(ChangesBrowserNode::getFilePathsUnderStream).map(FilePath::getVirtualFile).filter(Objects::nonNull).distinct());
}
return null;
});
return panel;
}
use of com.intellij.util.ui.components.BorderLayoutPanel in project intellij-plugins by StepicOrg.
the class StudyToolWindow method createToolbarPanel.
private JPanel createToolbarPanel(ActionGroup group) {
final ActionToolbar actionToolBar = ActionManager.getInstance().createActionToolbar("Study", group, true);
BorderLayoutPanel toolBar = JBUI.Panels.simplePanel(actionToolBar.getComponent());
toolBar.addToRight(rightPanel);
return toolBar;
}
Aggregations