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

« back to all changes in this revision

Viewing changes to src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogView.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:
15
15
        
16
16
        public class LogView : BaseView, ILogView 
17
17
        {
18
 
                string filepath;
19
18
                LogWidget widget;
20
 
                Repository vc;
21
19
                VersionInfo vinfo;
22
20
                
23
21
                ListStore changedpathstore;
71
69
                
72
70
                void CreateControlFromInfo ()
73
71
                {
74
 
                        this.vc = info.Item.Repository;
75
 
                        this.filepath = info.Item.Path;
76
72
                        var lw = new LogWidget (info);
77
73
                        
78
74
                        widget = lw;
83
79
                        lw.History = this.info.History;
84
80
                        vinfo   = this.info.VersionInfo;
85
81
                
 
82
                        if (WorkbenchWindow != null)
 
83
                                widget.SetToolbar (WorkbenchWindow.GetToolbar (this));
86
84
                }
87
85
                
88
86
                public LogView (string filepath, bool isDirectory, Revision [] history, Repository vc) 
89
87
                        : base (Path.GetFileName (filepath) + " Log")
90
88
                {
91
 
                        this.vc = vc;
92
 
                        this.filepath = filepath;
93
 
                        
94
89
                        try {
95
 
                                this.vinfo = vc.GetVersionInfo (filepath, false);
 
90
                                this.vinfo = vc.GetVersionInfo (filepath);
96
91
                        }
97
92
                        catch (Exception ex) {
98
93
                                MessageService.ShowException (ex, GettextCatalog.GetString ("Version control command failed."));
116
111
                                return widget; 
117
112
                        }
118
113
                }
 
114
 
 
115
                protected override void OnWorkbenchWindowChanged (EventArgs e)
 
116
                {
 
117
                        base.OnWorkbenchWindowChanged (e);
 
118
                        if (WorkbenchWindow != null && widget != null)
 
119
                                widget.SetToolbar (WorkbenchWindow.GetToolbar (this));
 
120
                }
119
121
                
120
122
                public override void Dispose ()
121
123
                {