Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2012-10-13 15:39:36 -0400
committerRobin Stocker2012-10-28 11:56:04 -0400
commit6857d4ccf586d8c6d1abcd3814e5711ee92d76e0 (patch)
treea978a8680b9dac7ccab52df12f31602bca899131 /org.eclipse.egit.ui/src/org/eclipse/egit
parentf7ee043036daad6d4b176eb608767e53f5bdfa48 (diff)
downloadegit-6857d4ccf586d8c6d1abcd3814e5711ee92d76e0.tar.gz
egit-6857d4ccf586d8c6d1abcd3814e5711ee92d76e0.tar.xz
egit-6857d4ccf586d8c6d1abcd3814e5711ee92d76e0.zip
Add missing Expand All action to Git Tree Compare
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java3
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CompareTreeView.java14
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties1
3 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java
index 0e8cebbc4..b4d0bead8 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java
@@ -978,6 +978,9 @@ public class UIText extends NLS {
public static String CompareTreeView_AnalyzingRepositoryTaskText;
/** */
+ public static String CompareTreeView_ExpandAllTooltip;
+
+ /** */
public static String CompareTreeView_CollapseAllTooltip;
/** */
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CompareTreeView.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CompareTreeView.java
index ea1c42ef3..fa5bc321f 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CompareTreeView.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CompareTreeView.java
@@ -217,14 +217,24 @@ public class CompareTreeView extends ViewPart implements IMenuListener, IShowInS
getViewSite().getActionBars().getToolBarManager().add(showEqualsAction);
IAction expandAllAction = new Action(
+ UIText.CompareTreeView_ExpandAllTooltip) {
+ @Override
+ public void run() {
+ tree.expandAll();
+ }
+ };
+ expandAllAction.setImageDescriptor(UIIcons.EXPAND_ALL);
+ getViewSite().getActionBars().getToolBarManager().add(expandAllAction);
+
+ IAction collapseAllAction = new Action(
UIText.CompareTreeView_CollapseAllTooltip) {
@Override
public void run() {
tree.collapseAll();
}
};
- expandAllAction.setImageDescriptor(UIIcons.COLLAPSEALL);
- getViewSite().getActionBars().getToolBarManager().add(expandAllAction);
+ collapseAllAction.setImageDescriptor(UIIcons.COLLAPSEALL);
+ getViewSite().getActionBars().getToolBarManager().add(collapseAllAction);
}
private void reactOnOpen(OpenEvent event) {
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
index a08c45ef8..bc5b8ec3a 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
@@ -263,6 +263,7 @@ CompareTargetSelectionDialog_CompareTitle=Compare ''{0}'' with a Branch, Tag, or
CompareTargetSelectionDialog_CompareTitleEmptyPath=Compare with a Branch, Tag, or Reference
CompareTargetSelectionDialog_WindowTitle=Compare
CompareTreeView_AnalyzingRepositoryTaskText=Analyzing repository
+CompareTreeView_ExpandAllTooltip=Expand all
CompareTreeView_CollapseAllTooltip=Collapse all
CompareTreeView_ComparingTwoVersionDescription=Comparing version {0} of {1} with {2}
CompareTreeView_ComparingWorkspaceVersionDescription=Comparing workspace version of {0} with {1}

Back to the top