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:
authorSandy Armstrong <sandy@xamarin.com>2019-09-06 00:16:34 +0300
committerSandy Armstrong <sandy@xamarin.com>2019-09-18 19:23:09 +0300
commit19d9890b3277166833b3d15fe5e790d0f0b53c3c (patch)
tree0e74ad9be70fa017eb03f1a1c65138fd39c9f844 /main/src/addins/MonoDevelop.SourceEditor2
parentfa89a12f5024838930963aa3bb1f9987c3410b18 (diff)
New Editor: Improve wording, especially in preferences
* Refer to new editor as "modern editor", and fix several places where it was still called the "experimental new editor". * Refer to old editor as "legacy editor". * Remove link to "learn more about the New Editor", as the aka has not been maintained and there is no useful documentation page right now. * Change the "Open C# files in the New Editor" preference to read "Use the legacy text editor where available (not recommended)", and invert its effect. Move this preference to the end of its section. In an upcoming commit, this will be the only way to enable the legacy editor in preferences, and it will only work for file types that explicitly maintain legacy editor support. Users will continue to be able to use the "Open With" menu to pick the editor they prefer at that time.
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2')
-rw-r--r--main/src/addins/MonoDevelop.SourceEditor2/Gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs2
-rw-r--r--main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs37
2 files changed, 15 insertions, 24 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/Gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs b/main/src/addins/MonoDevelop.SourceEditor2/Gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs
index 4934ac1188..e078727d79 100644
--- a/main/src/addins/MonoDevelop.SourceEditor2/Gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs
+++ b/main/src/addins/MonoDevelop.SourceEditor2/Gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs
@@ -258,7 +258,7 @@ vbox1
this.GtkLabel16 = new global::Gtk.Label ();
this.GtkLabel16.Name = "GtkLabel16";
this.GtkLabel16.Xalign = 0F;
- this.GtkLabel16.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>New Editor</b>");
+ this.GtkLabel16.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>Modern Editor</b>");
this.GtkLabel16.UseMarkup = true;
this.vbox1.Add (this.GtkLabel16);
global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkLabel16]));
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs
index 00ffe30273..e847ad4a65 100644
--- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs
+++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs
@@ -39,7 +39,7 @@ namespace MonoDevelop.SourceEditor.OptionPanels
{
partial class GeneralOptionsPanel : Gtk.Bin, IOptionsPanel
{
- readonly Xwt.CheckBox newEditorCheckBox;
+ readonly Xwt.CheckBox legacyEditorCheckBox;
readonly Xwt.CheckBox wordWrapCheckBox;
readonly Xwt.CheckBox wordWrapVisualGlyphsCheckBox;
@@ -54,31 +54,22 @@ namespace MonoDevelop.SourceEditor.OptionPanels
var newEditorOptionsBox = new Xwt.VBox ();
- var newEditorLearnMoreLink = new Xwt.LinkLabel {
- MarginBottom = 6,
- MarginTop = 6,
- Text = GettextCatalog.GetString ("Learn more about the New Editor"),
- Uri = new Uri ("https://aka.ms/vs/mac/editor/learn-more")
- };
- newEditorOptionsBox.PackStart (newEditorLearnMoreLink);
-
- newEditorCheckBox = new Xwt.CheckBox (GettextCatalog.GetString ("Open C# files in the New Editor"));
- newEditorCheckBox.Active = DefaultSourceEditorOptions.Instance.EnableNewEditor;
- newEditorCheckBox.Toggled += HandleNewEditorOptionToggled;
- newEditorOptionsBox.PackStart (newEditorCheckBox);
-
wordWrapCheckBox = new Xwt.CheckBox (GettextCatalog.GetString ("_Word wrap"));
- wordWrapCheckBox.MarginLeft = 18;
wordWrapCheckBox.Active = DefaultSourceEditorOptions.Instance.WordWrapStyle.HasFlag (WordWrapStyles.WordWrap);
wordWrapCheckBox.Toggled += HandleNewEditorOptionToggled;
newEditorOptionsBox.PackStart (wordWrapCheckBox);
wordWrapVisualGlyphsCheckBox = new Xwt.CheckBox (GettextCatalog.GetString ("Show visible glyphs for word wrap"));
- wordWrapVisualGlyphsCheckBox.MarginLeft = 36;
+ wordWrapVisualGlyphsCheckBox.MarginLeft = 18;
wordWrapVisualGlyphsCheckBox.Active = DefaultSourceEditorOptions.Instance.WordWrapStyle.HasFlag (WordWrapStyles.VisibleGlyphs);
wordWrapVisualGlyphsCheckBox.Toggled += HandleNewEditorOptionToggled;
newEditorOptionsBox.PackStart (wordWrapVisualGlyphsCheckBox);
+ legacyEditorCheckBox = new Xwt.CheckBox (GettextCatalog.GetString ("Use the legacy text editor where available (not recommended)"));
+ legacyEditorCheckBox.Active = !DefaultSourceEditorOptions.Instance.EnableNewEditor;
+ legacyEditorCheckBox.Toggled += HandleNewEditorOptionToggled;
+ newEditorOptionsBox.PackStart (legacyEditorCheckBox);
+
if (Xwt.Toolkit.CurrentEngine.Type == Xwt.ToolkitType.Gtk)
experimentalSection.PackStart ((Gtk.Widget)Xwt.Toolkit.CurrentEngine.GetNativeWidget (newEditorOptionsBox), false, false, 0);
else
@@ -99,12 +90,12 @@ namespace MonoDevelop.SourceEditor.OptionPanels
GettextCatalog.GetString ("Check to fold regions by default"));
foldCommentsCheckbutton.SetCommonAccessibilityAttributes ("SourceEditorGeneral.commens", "",
GettextCatalog.GetString ("Check to fold comments by default"));
- newEditorCheckBox.SetCommonAccessibilityAttributes ("SourceEditorGeneral.newEditor", "",
- GettextCatalog.GetString ("Check to enable experimental new editor"));
+ legacyEditorCheckBox.SetCommonAccessibilityAttributes ("SourceEditorGeneral.legacyEditor", "",
+ GettextCatalog.GetString ("Check to enable legacy text editor"));
wordWrapCheckBox.SetCommonAccessibilityAttributes ("SourceEditorGeneral.newEditor.wordWrap", "",
- GettextCatalog.GetString ("Check to enable word wrap in the experimental new editor"));
+ GettextCatalog.GetString ("Check to enable word wrap in the modern editor"));
wordWrapVisualGlyphsCheckBox.SetCommonAccessibilityAttributes ("SourceEditorGeneral.newEditor.wordWrap.enableVisualGlyphs", "",
- GettextCatalog.GetString ("Check to enable visual word wrap glyphs in the experimental new editor"));
+ GettextCatalog.GetString ("Check to enable visual word wrap glyphs in the modern editor"));
}
public virtual Control CreatePanelWidget ()
@@ -130,13 +121,13 @@ namespace MonoDevelop.SourceEditor.OptionPanels
HighlightingPanel.UpdateActiveDocument ();
}
- DefaultSourceEditorOptions.Instance.EnableNewEditor = this.newEditorCheckBox.Active;
+ DefaultSourceEditorOptions.Instance.EnableNewEditor = !this.legacyEditorCheckBox.Active;
}
void HandleNewEditorOptionToggled (object sender, EventArgs e)
{
- wordWrapCheckBox.Sensitive = newEditorCheckBox.Active;
- wordWrapVisualGlyphsCheckBox.Sensitive = newEditorCheckBox.Active && wordWrapCheckBox.Active;
+ wordWrapCheckBox.Sensitive = !legacyEditorCheckBox.Active;
+ wordWrapVisualGlyphsCheckBox.Sensitive = !legacyEditorCheckBox.Active && wordWrapCheckBox.Active;
var wrap = DefaultSourceEditorOptions.Instance.WordWrapStyle;