diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2013-04-01 14:41:51 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2013-04-01 14:41:51 -0700 |
commit | 2bd2b7c2623d4266384e890271869efc044aabff (patch) | |
tree | 0b31f50e55975b6354ed458314e17b4441bb4e17 /platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java | |
parent | 1d526b16d476792ca7ce47616d55833115e8d6ab (diff) | |
download | idea-2bd2b7c2623d4266384e890271869efc044aabff.tar.gz |
Snapshot ee98b298267d0e09d2cd2f0731b6480a56dd48e7 from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: I4515f72af131fdea9fc6905a4dc0fe9532409a81
Diffstat (limited to 'platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java')
-rw-r--r-- | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java index 4f6f1b9f4b63..cb8ddfdd54c3 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangesFragmentedDiffPanel.java @@ -149,7 +149,7 @@ public class ChangesFragmentedDiffPanel implements Disposable { final JPanel oneMore = new JPanel(new BorderLayout()); oneMore.add(wrapperDiffs, BorderLayout.NORTH); - myCurrentHorizontal = myConfiguration.SHORT_DIFF_HORISONTALLY; + myCurrentHorizontal = myConfiguration.SHORT_DIFF_HORIZONTALLY; myHorizontal = createPanel(true); myVertical = createPanel(false); @@ -618,29 +618,29 @@ public class ChangesFragmentedDiffPanel implements Disposable { myUsual = new AnAction("Top | Bottom", "", AllIcons.General.Mdot_empty) { @Override public void actionPerformed(AnActionEvent e) { - boolean was = myConfiguration.SHORT_DIFF_HORISONTALLY; - myConfiguration.SHORT_DIFF_HORISONTALLY = false; + boolean was = myConfiguration.SHORT_DIFF_HORIZONTALLY; + myConfiguration.SHORT_DIFF_HORIZONTALLY = false; ensurePresentation(); } @Override public void update(AnActionEvent e) { super.update(e); - e.getPresentation().setIcon(myConfiguration.SHORT_DIFF_HORISONTALLY ? AllIcons.General.Mdot_empty : AllIcons.General.Mdot); + e.getPresentation().setIcon(myConfiguration.SHORT_DIFF_HORIZONTALLY ? AllIcons.General.Mdot_empty : AllIcons.General.Mdot); } }; myNumbered = new AnAction("Left | Right", "", AllIcons.General.Mdot_empty) { @Override public void actionPerformed(AnActionEvent e) { - boolean was = myConfiguration.SHORT_DIFF_HORISONTALLY; - myConfiguration.SHORT_DIFF_HORISONTALLY = true; + boolean was = myConfiguration.SHORT_DIFF_HORIZONTALLY; + myConfiguration.SHORT_DIFF_HORIZONTALLY = true; ensurePresentation(); } @Override public void update(AnActionEvent e) { super.update(e); - e.getPresentation().setIcon(myConfiguration.SHORT_DIFF_HORISONTALLY ? AllIcons.General.Mdot : AllIcons.General.Mdot_empty); + e.getPresentation().setIcon(myConfiguration.SHORT_DIFF_HORIZONTALLY ? AllIcons.General.Mdot : AllIcons.General.Mdot_empty); } }; mySoftWrapsAction = new MyUseSoftWrapsAction(myConfiguration.SOFT_WRAPS_IN_SHORT_DIFF); @@ -685,7 +685,7 @@ public class ChangesFragmentedDiffPanel implements Disposable { }*/ private void ensurePresentation() { - if (myCurrentHorizontal != myConfiguration.SHORT_DIFF_HORISONTALLY) { + if (myCurrentHorizontal != myConfiguration.SHORT_DIFF_HORIZONTALLY) { final DiffPanel panel = getCurrentPanel(); myPanel.removeAll(); @@ -694,13 +694,13 @@ public class ChangesFragmentedDiffPanel implements Disposable { myPanel.revalidate(); myPanel.repaint(); - myCurrentHorizontal = myConfiguration.SHORT_DIFF_HORISONTALLY; + myCurrentHorizontal = myConfiguration.SHORT_DIFF_HORIZONTALLY; } } private DiffPanel getCurrentPanel() { DiffPanel panel; - if (myConfiguration.SHORT_DIFF_HORISONTALLY) { + if (myConfiguration.SHORT_DIFF_HORIZONTALLY) { panel = myHorizontal; } else { panel = myVertical; |