Merge remote-tracking branch 'origin/master'

This commit is contained in:
Alexey Utkin
2017-02-27 17:19:29 +03:00
6 changed files with 22 additions and 13 deletions
@@ -122,13 +122,20 @@ public class CodeStyleMainPanel extends JPanel implements TabbedLanguageCodeStyl
JLabel link = new SwingActionLink(mySetFromAction);
link.setVerticalAlignment(SwingConstants.BOTTOM);
JPanel top = new JPanel(new BorderLayout());
JPanel top = new JPanel();
top.setLayout(new BoxLayout(top, BoxLayout.X_AXIS));
if (mySchemesPanelEnabled) {
top.add(BorderLayout.WEST, mySchemesPanel);
top.add(BorderLayout.EAST, link);
JPanel linkPanel = new JPanel();
linkPanel.setLayout(new BoxLayout(linkPanel, BoxLayout.Y_AXIS));
linkPanel.add(Box.createVerticalGlue());
linkPanel.add(link);
top.add(mySchemesPanel);
top.add(Box.createRigidArea(new Dimension(10,0)));
top.add(linkPanel);
}
top.setBorder(JBUI.Borders.empty(10));
top.setBorder(JBUI.Borders.empty(10, 10, 0, 10));
add(top, BorderLayout.NORTH);
add(mySettingsPanel, BorderLayout.CENTER);
@@ -255,7 +255,7 @@ public abstract class AbstractSchemeActions<T extends Scheme> {
@NotNull Collection<String> actionNames,
@NotNull BiFunction<String, String, AnAction> createActionByName) {
if (actionNames.size() == 1) {
return createActionByName.apply(ContainerUtil.getFirstItem(actionNames), groupName);
return createActionByName.apply(ContainerUtil.getFirstItem(actionNames), groupName + "...");
} else {
return new ImportExportActionGroup(groupName, actionNames) {
@NotNull
@@ -72,8 +72,9 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
mySchemesCombo = new EditableSchemesCombo<>(this);
controlsPanel.add(mySchemesCombo.getComponent());
myToolbar = createToolbar();
controlsPanel.add(Box.createRigidArea(new Dimension(6, 0)));
controlsPanel.add(myToolbar);
controlsPanel.add(Box.createRigidArea(new Dimension(15, 0)));
controlsPanel.add(Box.createRigidArea(new Dimension(9, 0)));
myInfoComponent = createInfoComponent();
controlsPanel.add(myInfoComponent);
controlsPanel.add(Box.createHorizontalGlue());
@@ -87,7 +88,7 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
private JComponent createToolbar() {
DefaultActionGroup toolbarActionGroup = new DefaultActionGroup();
ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.TOOLBAR, toolbarActionGroup, true);
ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.NAVIGATION_BAR_TOOLBAR, toolbarActionGroup, true);
JComponent toolbarComponent = toolbar.getComponent();
toolbarActionGroup.add(new ShowSchemesActionsListAction(myActions.getActions(), toolbarComponent));
toolbarComponent.setMaximumSize(new Dimension(toolbarComponent.getPreferredSize().width, Short.MAX_VALUE));
@@ -872,7 +872,7 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame, Disposable, Ac
actionsListPanel.add(pane, BorderLayout.CENTER);
int width = (int)Math.min(Math.round(list.getPreferredSize().getWidth()), 200);
pane.setPreferredSize(JBUI.size(width, -1));
pane.setPreferredSize(JBUI.size(width + 14, -1));
boolean singleProjectGenerator = list.getModel().getSize() == 1;
@@ -766,16 +766,16 @@ label.rainbow.inheritance.tooltip=<html>''{0}->Semantic highlighting'' from<br>'
color.scheme.reset=Reset
color.scheme.reset.message=Reset the scheme to its default values?\nNote: all the changes you have made to the scheme will be lost.
color.scheme.reset.title=Scheme Reset
color.scheme.reset.title=Restore Defaults
settings.code.style.reset.to.defaults.message=Change all code style settings to their default values?\nNote: all the changes you have made to the scheme will be lost.
settings.code.style.reset.to.defaults.title=Scheme Reset
settings.code.style.reset.to.defaults.title=Restore Defaults
editor.settings.keep.trailing.spaces.on.caret.line=Always keep trailing spaces on caret line
settings.editor.scheme.copy=Duplicate...
settings.editor.scheme.delete=Delete...
settings.editor.scheme.import=Import {0}...
settings.editor.scheme.export=Export...
settings.editor.scheme.reset=Reset...
settings.editor.scheme.import=Import {0}
settings.editor.scheme.export=Export
settings.editor.scheme.reset=Restore Defaults...
settings.editor.scheme.copy.to.project=Copy to Project...
settings.editor.scheme.copy.to.ide=Copy to IDE...
settings.editor.scheme.copy.to.ide.title=Copy Project Scheme to IDE
@@ -83,6 +83,7 @@
use-shortcut-of="Diff.ShowDiff" text="Show Diff" description="Show diff with previous version"
icon="AllIcons.Actions.Diff"/>
<action class="com.intellij.vcs.log.ui.actions.history.ShowDiffWithLocalFromHistoryAction" id="Vcs.Log.ShowDiffWithLocal"
use-shortcut-of="Vcs.ShowDiffWithLocal"
text="Show Diff with Local" description="Compare selected revision with the local version of the file"
icon="AllIcons.Actions.DiffWithCurrent"/>
<action class="com.intellij.vcs.log.ui.actions.history.CreatePatchFromHistoryAction" id="Vcs.Log.CreatePatchFromHistory"