Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2015-08-18 01:23:22 +0300
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2015-08-18 01:23:22 +0300
commit089658951ad92a9846ce8624029637e681f3dc85 (patch)
tree0208b1c9bc2c9dfc9a45f63c9188f19fe41ef608 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting
parenta60fa89184aa0258e96f85f6f7325e864519c7a5 (diff)
[Ide] Update Format command label when there's a selection
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs
index 3189739d58..c74c5396ba 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeFormatting/CodeFormattingCommands.cs
@@ -55,6 +55,10 @@ namespace MonoDevelop.Ide.CodeFormatting
Document doc;
var formatter = GetFormatter (out doc);
info.Enabled = formatter != null && formatter.SupportsOnTheFlyFormatting;
+
+ if (formatter != null && formatter.SupportsPartialDocumentFormatting && doc.Editor.IsSomethingSelected) {
+ info.Text = GettextCatalog.GetString ("_Format Selection");
+ }
}
protected override void Run (object tool)