~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/AllOpenDocumentIterator.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                public AllOpenDocumentIterator()
34
34
                {
35
35
                        Reset();
 
36
                }
 
37
                
 
38
                public string GetSearchDescription (string pattern)
 
39
                {
 
40
                        return MonoDevelop.Core.GettextCatalog.GetString ("Looking for '{0}' in all open documents", pattern);
 
41
                }
 
42
                
 
43
                public string GetReplaceDescription (string pattern)
 
44
                {
 
45
                        return MonoDevelop.Core.GettextCatalog.GetString ("Replacing '{0}' in all open documents", pattern);
36
46
                }
37
47
                
38
48
                public string CurrentFileName {
39
49
                        get {
40
 
                                if (!SearchReplaceUtilities.IsTextAreaSelected) {
 
50
                                if (!SearchReplaceUtilities.IsTextAreaSelected)
41
51
                                        return null;
42
 
                                }
43
 
                                
44
 
                                if (IdeApp.Workbench.ActiveDocument.FileName == null) {
45
 
                                        return IdeApp.Workbench.ActiveDocument.Window.ViewContent.UntitledName;
46
 
                                }
47
 
                                
48
 
                                return IdeApp.Workbench.ActiveDocument.FileName;
 
52
                                return IdeApp.Workbench.ActiveDocument.Name;
49
53
                        }
50
54
                }
51
55