~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/samples/macdoc/IndexUpdateManager.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
                
23
23
                public IndexUpdateManager (IEnumerable<string> sourceFiles, string baseUserDir)
24
24
                {
25
 
                        Console.WriteLine ("Going to verify [{0}]", sourceFiles.Aggregate ((e1, e2) => e1 + ", " + e2));
 
25
                        Logger.Log ("Going to verify [{0}]", sourceFiles.Aggregate ((e1, e2) => e1 + ", " + e2));
26
26
                        this.baseUserDir = baseUserDir;
27
27
                        this.sourceFiles = sourceFiles;
28
28
                }
61
61
                                        md5sums[source] = hash;
62
62
                                }
63
63
                                
64
 
                                Console.WriteLine ("We have a {0} fresh index", isFresh);
 
64
                                Logger.Log ("Index fresh? {0}", isFresh ? "yes" : "no");
65
65
                                
66
66
                                return IsFresh = isFresh;
67
67
                        });
91
91
                public void PerformSearchIndexCreation ()
92
92
                {
93
93
                        FireSearchIndexCreationEvent (true);
94
 
                        RootTree.MakeSearchIndex ();
95
 
                        RootTree.MakeIndex ();
 
94
                        try {
 
95
                                RootTree.MakeSearchIndex ();
 
96
                        } catch (Exception e) {
 
97
                                Logger.LogError ("Error making search index", e);
 
98
                        }
 
99
                        try {
 
100
                                RootTree.MakeIndex ();
 
101
                        } catch (Exception e) {
 
102
                                Logger.LogError ("Error making normal index", e);
 
103
                        }
96
104
                        IsFresh = true;
97
105
                        FireSearchIndexCreationEvent (false);
98
106
                        if (md5sums != null)