diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2013-08-12 12:07:12 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2013-08-12 12:07:12 +0400 |
commit | f0bee655919707935c7712cf34670b6ab84ac8df (patch) | |
tree | 22ab089116b33f8b7042d56026cb9fa52871695d /main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor | |
parent | cb7fd34c3e1bf51f9413a82c69faad8512eb7c4c (diff) |
[Gettext] Hide non public API.
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor')
5 files changed, 46 insertions, 47 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogEditorView.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogEditorView.cs index 3b9ad7b4c0..a8b406d6fd 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogEditorView.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogEditorView.cs @@ -38,7 +38,7 @@ using MonoDevelop.Ide.Gui.Content; namespace MonoDevelop.Gettext.Editor { - internal class CatalogEditorView : AbstractViewContent, IUndoHandler + class CatalogEditorView : AbstractViewContent, IUndoHandler { Catalog catalog; POEditorWidget poEditorWidget; diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogHeadersWidget.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogHeadersWidget.cs index 81a0ba7706..35f981a8c9 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogHeadersWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/CatalogHeadersWidget.cs @@ -31,7 +31,6 @@ using Gtk; namespace MonoDevelop.Gettext.Editor { - partial class CatalogHeadersWidget : Bin { Catalog headers; diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GettextEditorDisplayBinding.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GettextEditorDisplayBinding.cs index 5431a4596b..9a7d402c95 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GettextEditorDisplayBinding.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GettextEditorDisplayBinding.cs @@ -1,29 +1,29 @@ -//
-// GettextEditorDisplayBinding.cs
-//
-// Author:
-// David Makovský <yakeen@sannyas-on.net>
-//
-// Copyright (C) 2007 David Makovský
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// +// GettextEditorDisplayBinding.cs +// +// Author: +// David Makovský <yakeen@sannyas-on.net> +// +// Copyright (C) 2007 David Makovský +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; @@ -31,33 +31,33 @@ using System.IO; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui; -using MonoDevelop.Ide.Codons;
+using MonoDevelop.Ide.Codons; using MonoDevelop.Projects; namespace MonoDevelop.Gettext { - public class GettextEditorDisplayBinding : IViewDisplayBinding + class GettextEditorDisplayBinding : IViewDisplayBinding { public string Name { get { return GettextCatalog.GetString ("Gettext Editor"); } } -
- public bool CanHandle (FilePath filePath, string mimeType, Project project)
- {
- return filePath.IsNotNull && filePath.HasExtension (".po");
+ + public bool CanHandle (FilePath filePath, string mimeType, Project project) + { + return filePath.IsNotNull && filePath.HasExtension (".po"); + } + + public IViewContent CreateContent (FilePath filePath, string mimeType, Project project) + { + foreach (TranslationProject tp in IdeApp.Workspace.GetAllSolutionItems<TranslationProject> ()) + if (tp.BaseDirectory == Path.GetDirectoryName (filePath)) + return new Editor.CatalogEditorView (tp, filePath); + + return new Editor.CatalogEditorView (null, filePath); } - public IViewContent CreateContent (FilePath filePath, string mimeType, Project project)
- {
- foreach (TranslationProject tp in IdeApp.Workspace.GetAllSolutionItems<TranslationProject> ())
- if (tp.BaseDirectory == Path.GetDirectoryName (filePath))
- return new Editor.CatalogEditorView (tp, filePath);
-
- return new Editor.CatalogEditorView (null, filePath);
- }
-
- public bool CanUseAsDefault {
- get { return true; }
+ public bool CanUseAsDefault { + get { return true; } } } } diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs index 7cfcd4a56b..5f7cf1506c 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs @@ -34,7 +34,7 @@ using Gtk; namespace MonoDevelop.Gettext.Editor { // as GtkSpell sharp looks quite old and unmaintained, here is simple wrapper - internal static class GtkSpell + static class GtkSpell { static bool isSupported; diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs index ba589880dd..b81874bfc1 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -46,7 +46,7 @@ using System.Threading; namespace MonoDevelop.Gettext { - public partial class POEditorWidget : Gtk.Bin, IUndoHandler + partial class POEditorWidget : Gtk.Bin, IUndoHandler { TranslationProject project; CatalogHeadersWidget headersEditor; |