cleanup
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Tue, 20 Dec 2011 13:08:58 +0000 (17:08 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Tue, 20 Dec 2011 13:10:39 +0000 (17:10 +0400)
platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java
plugins/git4idea/src/git4idea/history/wholeTree/GitLogUI.java

index 3dd441f5850917d28b67df5d2135447649414fef..067e69136f599736b1ab5092d7ffe192242003a9 100644 (file)
@@ -687,7 +687,6 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
     myDetailsSplitter.setFirstComponent(commentGroup);
     myDetailsSplitter.setSecondComponent(myAdditionalDetails);
 
-
     mySplitter.setFirstComponent(myDualView);
     setupDetails();
     return mySplitter;
index b11ca9700bc98b5064ef19ac648858a22772dc04..ece7fc0e9babde3f76fa3360b5ef8f60a684812a 100644 (file)
@@ -129,7 +129,6 @@ public class GitLogUI implements Disposable {
   private MyRefreshAction myRefreshAction;
   private MyStructureFilter myStructureFilter;
   private StructureFilterAction myStructureFilterAction;
-  private ToggleAction myShowDetailsAction;
   private AnAction myCopyHashAction;
   // todo group somewhere??
   private Consumer<CommitI> myDetailsLoaderImpl;
@@ -865,19 +864,20 @@ public class GitLogUI implements Disposable {
     myRootsAction = new MyRootsAction(rootsGetter, myJBTable);
     group.add(myRootsAction);
     group.add(myMyShowTreeAction);
-    myShowDetailsAction = new ToggleAction("Show Details", "Display details panel", IconLoader.getIcon("/actions/showSource.png")) {
-      @Override
-      public boolean isSelected(AnActionEvent e) {
-        return GitLogSettings.getInstance(myProject).isShowDetails();
-      }
 
-      @Override
-      public void setSelected(AnActionEvent e, boolean state) {
-        setupDetailsSplitter(state);
-        GitLogSettings.getInstance(myProject).setShowDetails(state);
-      }
-    };
-    group.add(myShowDetailsAction);
+    group.add(new ToggleAction("Show Details", "Display details panel", IconLoader.getIcon("/actions/showSource.png")) {
+        @Override
+        public boolean isSelected(AnActionEvent e) {
+          return GitLogSettings.getInstance(myProject).isShowDetails();
+        }
+
+        @Override
+        public void setSelected(AnActionEvent e, boolean state) {
+          setupDetailsSplitter(state);
+          GitLogSettings.getInstance(myProject).setShowDetails(state);
+        }
+      });
+
     myMyGotoCommitAction = new MyGotoCommitAction();
     group.add(myMyGotoCommitAction);
     group.add(myRefreshAction);