~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/DefaultFormatter.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
using MonoDevelop.Ide.Gui.Content;
31
31
using MonoDevelop.Projects;
32
32
using MonoDevelop.Projects.Text;
 
33
using MonoDevelop.Projects.Policies;
 
34
using MonoDevelop.Ide;
33
35
 
34
36
namespace MonoDevelop.SourceEditor
35
37
{
46
48
                        return (result / tabSize) * tabSize;
47
49
                }
48
50
                
49
 
                protected override string InternalFormat (SolutionItem policyParent, string mimeType, string input, int startOffset, int endOffset)
 
51
                protected override string InternalFormat (PolicyContainer policyParent, string mimeType, string input, int startOffset, int endOffset)
50
52
                {
51
 
                        IEnumerable<string> mtypes = MonoDevelop.Core.Gui.DesktopService.GetMimeTypeInheritanceChain (mimeType);
 
53
                        IEnumerable<string> mtypes = DesktopService.GetMimeTypeInheritanceChain (mimeType);
52
54
                        TextStylePolicy currentPolicy = policyParent != null
53
 
                                        ? policyParent.Policies.Get<TextStylePolicy> (mtypes)
 
55
                                        ? policyParent.Get<TextStylePolicy> (mtypes)
54
56
                                        : MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy<TextStylePolicy> (mtypes);
55
57
                        
56
58
                        input = input ?? "";