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

« back to all changes in this revision

Viewing changes to src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/BaseView.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
namespace MonoDevelop.VersionControl
15
15
{
16
 
        internal abstract class BaseView : AbstractBaseViewContent, IViewContent
 
16
        public abstract class BaseView : AbstractBaseViewContent, IViewContent
17
17
        {
18
18
                string name;
19
 
                public BaseView(string name) { this.name = name; }
20
 
                
21
 
                protected virtual void SaveAs(string fileName) {
 
19
                
 
20
                public BaseView (string name)
 
21
                {
 
22
                        this.name = name;
 
23
                }
 
24
                
 
25
                protected virtual void SaveAs (string fileName)
 
26
                {
22
27
                }
23
28
 
24
 
                void IViewContent.Load(string fileName) {
25
 
                        throw new InvalidOperationException();
26
 
                }
27
 
                void IViewContent.Save() {
28
 
                        throw new InvalidOperationException();
29
 
                }
30
 
                void IViewContent.Save(string fileName) {
31
 
                        SaveAs(fileName);
 
29
                void IViewContent.Load (string fileName)
 
30
                {
 
31
                        throw new InvalidOperationException();
 
32
                }
 
33
                
 
34
                void IViewContent.LoadNew (Stream stream, string mimeType)
 
35
                {
 
36
                        throw new InvalidOperationException ();
 
37
                }
 
38
                
 
39
                void IViewContent.Save ()
 
40
                {
 
41
                        throw new InvalidOperationException ();
 
42
                }
 
43
                
 
44
                void IViewContent.DiscardChanges ()
 
45
                {
 
46
                }
 
47
                
 
48
                void IViewContent.Save (string fileName)
 
49
                {
 
50
                        SaveAs (fileName);
32
51
                }
33
52
                
34
53
                string IViewContent.ContentName {
66
85
                        set { }
67
86
                }
68
87
                
69
 
                string IBaseViewContent.TabPageLabel {
 
88
                public override string TabPageLabel {
70
89
                        get { return name; }
71
90
                }
72
91
 
84
103
                event EventHandler IViewContent.ContentNameChanged { add { } remove { } }
85
104
                event EventHandler IViewContent.DirtyChanged { add { } remove { } }
86
105
        }
87
 
        
88
 
 
89
 
}
 
106
}
 
 
b'\\ No newline at end of file'