mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-83957 No scrollbars in Settings->Version Control
This commit is contained in:
+21
-32
@@ -360,36 +360,25 @@ public class VcsDirectoryConfigurationPanel extends PanelWithButtons implements
|
||||
removeMapping();
|
||||
updateRootCheckers();
|
||||
}
|
||||
}).setAddActionUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
return !myIsDisabled;
|
||||
}
|
||||
}).setEditActionUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
final boolean hasSelection = myDirectoryMappingTable.getSelectedObject() != null;
|
||||
return (!myIsDisabled) && hasSelection;
|
||||
}
|
||||
}).setRemoveActionUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
final boolean hasSelection = myDirectoryMappingTable.getSelectedObject() != null;
|
||||
return (!myIsDisabled) && hasSelection;
|
||||
}
|
||||
}).disableUpDownActions().createPanel();
|
||||
|
||||
AnActionButton addButton = ToolbarDecorator.findAddButton(panelForTable);
|
||||
assert addButton != null;
|
||||
addButton.addCustomUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
return !myIsDisabled;
|
||||
}
|
||||
});
|
||||
|
||||
AnActionButton editButton = ToolbarDecorator.findEditButton(panelForTable);
|
||||
assert editButton != null;
|
||||
editButton.addCustomUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
final boolean hasSelection = myDirectoryMappingTable.getSelectedObject() != null;
|
||||
return (!myIsDisabled) && hasSelection;
|
||||
}
|
||||
});
|
||||
|
||||
AnActionButton removeButton = ToolbarDecorator.findRemoveButton(panelForTable);
|
||||
assert removeButton != null;
|
||||
removeButton.addCustomUpdater(new AnActionButtonUpdater() {
|
||||
@Override
|
||||
public boolean isEnabled(AnActionEvent e) {
|
||||
final boolean hasSelection = myDirectoryMappingTable.getSelectedObject() != null;
|
||||
return (!myIsDisabled) && hasSelection;
|
||||
}
|
||||
});
|
||||
panelForTable.setPreferredSize(new Dimension(-1, 200));
|
||||
return panelForTable;
|
||||
}
|
||||
|
||||
@@ -523,8 +512,9 @@ public class VcsDirectoryConfigurationPanel extends PanelWithButtons implements
|
||||
VcsRootErrorLabel(String title) {
|
||||
super(new BorderLayout(DEFAULT_HGAP, DEFAULT_VGAP));
|
||||
|
||||
CompoundBorder outsideBorder = BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(5, 0, 5, 0, UIUtil.getPanelBackground()),
|
||||
BorderFactory.createLineBorder(UIUtil.getPanelBackground().darker()));
|
||||
CompoundBorder outsideBorder =
|
||||
BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(5, 0, 5, 0, UIUtil.getPanelBackground()),
|
||||
BorderFactory.createLineBorder(UIUtil.getPanelBackground().darker()));
|
||||
setBorder(BorderFactory.createCompoundBorder(outsideBorder, BorderFactory.createEmptyBorder(DEFAULT_VGAP, DEFAULT_HGAP,
|
||||
DEFAULT_VGAP, DEFAULT_HGAP)));
|
||||
setOpaque(true);
|
||||
@@ -553,5 +543,4 @@ public class VcsDirectoryConfigurationPanel extends PanelWithButtons implements
|
||||
}, null);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class VcsManagerConfigurable extends SearchableConfigurable.Parent.Abstract implements Configurable.NoScroll {
|
||||
public class VcsManagerConfigurable extends SearchableConfigurable.Parent.Abstract {
|
||||
public static final Icon ICON = IconLoader.getIcon("/general/configurableVcs.png");
|
||||
private final Project myProject;
|
||||
private VcsDirectoryConfigurationPanel myMappings;
|
||||
|
||||
Reference in New Issue
Block a user