From 968bfa0474148487c7cdf2d8dc0fc86c79677f7b Mon Sep 17 00:00:00 2001 From: irengrig Date: Fri, 9 Mar 2012 16:01:21 +0400 Subject: [PATCH] IDEA-82430 "Changes" window - "Repository" tab, "Group by" combobox unnessesarily clip text (?) --- .../openapi/vcs/changes/committed/LabeledComboBoxAction.java | 4 ++++ .../openapi/vcs/changes/committed/SelectGroupingAction.java | 1 + 2 files changed, 5 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/LabeledComboBoxAction.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/LabeledComboBoxAction.java index 572f101e1953..540cc5985b6a 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/LabeledComboBoxAction.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/LabeledComboBoxAction.java @@ -93,4 +93,8 @@ public abstract class LabeledComboBoxAction extends AnAction implements CustomCo boxModel.setSelectedItem(boxModel.getElementAt(idx)); } } + + protected JComboBox getComboBox() { + return myComboBox; + } } diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/SelectGroupingAction.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/SelectGroupingAction.java index e67325582563..0ed24cc232f5 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/SelectGroupingAction.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/SelectGroupingAction.java @@ -26,6 +26,7 @@ public class SelectGroupingAction extends LabeledComboBoxAction { public SelectGroupingAction(final CommittedChangesTreeBrowser browser) { super("Group by"); myBrowser = browser; + getComboBox().setPrototypeDisplayValue("Date+"); } protected void selectionChanged(Object selection) {