protected virtual void OnButtonNewClicked(object sender, System.EventArgs e)
        {
            ExtensionPoint          ep  = new ExtensionPoint();
            NewExtensionPointDialog dlg = new NewExtensionPointDialog((DotNetProject)data.Project, data.AddinRegistry, adesc, ep);

            try {
                if (dlg.Run() == (int)ResponseType.Ok)
                {
                    adesc.ExtensionPoints.Add(ep);
                    Fill();
                    NotifyChanged();
                }
            } finally {
                dlg.Destroy();
            }
        }
        protected virtual void OnButtonPropertiesClicked(object sender, System.EventArgs e)
        {
            TreeIter iter;

            tree.Selection.GetSelected(out iter);

            ExtensionPoint ep  = (ExtensionPoint)store.GetValue(iter, 0);
            ExtensionPoint epc = new ExtensionPoint();

            epc.CopyFrom(ep);
            NewExtensionPointDialog epdlg = new NewExtensionPointDialog((DotNetProject)data.Project, data.AddinRegistry, adesc, epc);

            if (epdlg.Run() == (int)ResponseType.Ok)
            {
                ep.CopyFrom(epc);
            }
            epdlg.Destroy();
            Fill();
            NotifyChanged();
        }
		protected virtual void OnButtonPropertiesClicked (object sender, System.EventArgs e)
		{
			TreeIter iter;
			tree.Selection.GetSelected (out iter);
			
			ExtensionPoint ep = (ExtensionPoint) store.GetValue (iter, 0);
			ExtensionPoint epc = new ExtensionPoint ();
			epc.CopyFrom (ep);
			NewExtensionPointDialog epdlg = new NewExtensionPointDialog ((DotNetProject)data.Project, data.AddinRegistry, adesc, epc);
			if (epdlg.Run () == (int) ResponseType.Ok)
				ep.CopyFrom (epc);
			epdlg.Destroy ();
			Fill ();
			NotifyChanged ();
		}
		protected virtual void OnButtonNewClicked (object sender, System.EventArgs e)
		{
			ExtensionPoint ep = new ExtensionPoint ();
			NewExtensionPointDialog dlg = new NewExtensionPointDialog ((DotNetProject)data.Project, data.AddinRegistry, adesc, ep);
			try {
				if (dlg.Run () == (int) ResponseType.Ok) {
					adesc.ExtensionPoints.Add (ep);
					Fill ();
					NotifyChanged ();
				}
			} finally {
				dlg.Destroy ();
			}
		}