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

« back to all changes in this revision

Viewing changes to src/addins/ChangeLogAddIn/ProjectOptionPanel.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:
28
28
using System;
29
29
using Gtk;
30
30
using MonoDevelop.Projects;
31
 
using MonoDevelop.Core.Gui.Dialogs;
 
31
using MonoDevelop.Projects.Gui.Dialogs;
32
32
using MonoDevelop.Core;
 
33
using MonoDevelop.Projects.Policies;
33
34
 
34
35
namespace MonoDevelop.ChangeLogAddIn
35
36
{               
36
 
        public class ProjectOptionPanel : AbstractOptionPanel
 
37
        public class ProjectOptionPanel : PolicyOptionsPanel<ChangeLogPolicy>
37
38
        {
38
39
                ProjectOptionPanelWidget widget;
39
40
                
40
 
                public override void LoadPanelContents ()
41
 
                {                                               
42
 
                        CombineEntry entry = ((Properties)CustomizationObject).Get<CombineEntry> ("CombineEntry");
43
 
                        widget = new ProjectOptionPanelWidget(entry);
44
 
                        Add (widget);
45
 
                }
46
 
                
47
 
                public override bool StorePanelContents()
48
 
                {                       
49
 
                        return widget.Store ();
 
41
                public override Widget CreatePanelWidget ()
 
42
                {
 
43
                        return widget = new ProjectOptionPanelWidget (this);
 
44
                }
 
45
                
 
46
                protected override string PolicyTitleWithMnemonic {
 
47
                        get {
 
48
                                return GettextCatalog.GetString ("ChangeLog _Policy");
 
49
                        }
 
50
                }
 
51
                
 
52
                protected override ChangeLogPolicy GetPolicy ()
 
53
                {
 
54
                        return widget.GetPolicy ();
 
55
                }
 
56
                
 
57
                protected override void LoadFrom (ChangeLogPolicy policy)
 
58
                {
 
59
                        widget.LoadFrom (policy);
50
60
                }
51
61
        }
52
62
}