From 419d99630a580419a8d9e08762e159a341c2ac4e Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Tue, 6 Sep 2016 19:55:46 +0300 Subject: [PATCH] lst: remote tooltip text --- .../src/messages/VcsBundle.properties | 4 ---- .../vcs/ex/LineStatusMarkerRenderer.java | 21 ------------------- 2 files changed, 25 deletions(-) diff --git a/platform/platform-resources-en/src/messages/VcsBundle.properties b/platform/platform-resources-en/src/messages/VcsBundle.properties index 1aeb01f53ec2..1abdb4ced983 100644 --- a/platform/platform-resources-en/src/messages/VcsBundle.properties +++ b/platform/platform-resources-en/src/messages/VcsBundle.properties @@ -139,10 +139,6 @@ button.configure=&Configure VCS... action.name.rollback=Rollback command.name.rollback.change=Rollback Change action.name.show.difference=Show Difference -tooltip.text.line.before.deleted=Line before {0} deleted -tooltip.text.lines.before.deleted={1} lines before {0} deleted -tooltip.text.line.changed=Line {0} changed -tooltip.text.lines.changed=Lines {0}-{1} changed dialog.title.diff.for.range=Diff for Range diff.content.title.up.to.date=Base revision diff.content.title.current.range=Current diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusMarkerRenderer.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusMarkerRenderer.java index a4ba5ea15033..306e66ae4acb 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusMarkerRenderer.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusMarkerRenderer.java @@ -24,7 +24,6 @@ import com.intellij.openapi.editor.ex.EditorEx; import com.intellij.openapi.editor.ex.EditorGutterComponentEx; import com.intellij.openapi.editor.markup.*; import com.intellij.openapi.util.TextRange; -import com.intellij.openapi.vcs.VcsBundle; import com.intellij.util.Function; import com.intellij.util.PairConsumer; import com.intellij.util.ui.UIUtil; @@ -58,8 +57,6 @@ public abstract class LineStatusMarkerRenderer implements ActiveGutterRenderer { highlighter.setGreedyToLeft(true); highlighter.setGreedyToRight(true); - highlighter.setErrorStripeTooltip(getTooltipText(range)); - return highlighter; } @@ -124,24 +121,6 @@ public abstract class LineStatusMarkerRenderer implements ActiveGutterRenderer { }; } - @NotNull - private static String getTooltipText(@NotNull Range range) { - if (range.getLine1() == range.getLine2()) { - if (range.getVcsLine1() + 1 == range.getVcsLine2()) { - return VcsBundle.message("tooltip.text.line.before.deleted", range.getLine1() + 1); - } - else { - return VcsBundle.message("tooltip.text.lines.before.deleted", range.getLine1() + 1, range.getVcsLine2() - range.getVcsLine1()); - } - } - else if (range.getLine1() + 1 == range.getLine2()) { - return VcsBundle.message("tooltip.text.line.changed", range.getLine1() + 1); - } - else { - return VcsBundle.message("tooltip.text.lines.changed", range.getLine1() + 1, range.getLine2()); - } - } - // // Gutter painting //