コード例 #1
0
		void OnExtensionChanged (object s, ExtensionEventArgs args)
		{
			if (args.PathChanged ("/MonoDevelop/ProjectModel/ProjectServiceExtensions"))
				defaultExtensionChain = null;
		}
コード例 #2
0
        void OnExtensionChanged(object s, ExtensionEventArgs args)
        {
            if (args.PathChanged (mainMenuPath) || args.PathChanged (appMenuPath)) {
                if (DesktopService.SetGlobalMenu (IdeApp.CommandService, mainMenuPath, appMenuPath))
                    return;

                UninstallMenuBar ();
                CreateMenuBar ();
                InstallMenuBar ();
            }
        }
コード例 #3
0
		void OnExtensionChanged (object s, ExtensionEventArgs args)
		{
			if (args.PathChanged (mainMenuPath)) {
				if (DesktopService.SetGlobalMenu (IdeApp.CommandService, mainMenuPath))
					return;
				
				UninstallMenuBar ();
				topMenu = IdeApp.CommandService.CreateMenuBar (mainMenuPath);
				InstallMenuBar ();
			}
			
			if (args.PathChanged (toolbarsPath)) {
				toolbars = IdeApp.CommandService.CreateToolbarSet (toolbarsPath);
				string cl = toolbarFrame.CurrentLayout;
				DockToolbarFrameStatus mem = toolbarFrame.GetStatus ();
				toolbarFrame.ClearToolbars ();
				foreach (DockToolbar tb in toolbars) {
					tb.ToolbarStyle = Gtk.ToolbarStyle.Icons;
					tb.ShowAll ();
					toolbarFrame.AddBar (tb);
				}
				toolbarFrame.SetStatus (mem);
				toolbarFrame.CurrentLayout = cl;
			}
		}
コード例 #4
0
		void OnExtensionChanged (object sender, ExtensionEventArgs args)
		{
			if (args.PathChanged (ToolbarExtensionPath))
				RebuildToolbar ();
		}
コード例 #5
0
ファイル: MainWindow.cs プロジェクト: wanglehui/mono-addins
	void OnExtensionChanged (object o, ExtensionEventArgs args)
	{
		if (args.PathChanged ("/TextEditor/ToolbarButtons"))
			BuildToolbar ();
		else if (args.PathChanged ("/TextEditor/MainMenu") || args.PathChanged ("/TextEditor/Templates"))
			BuildMenu ();
	}
コード例 #6
0
		void OnExtensionChanged (object s, ExtensionEventArgs args)
		{
			string codonpath = Path;
			if (args.PathChanged (codonpath)) {
				BuildChildren ();
				pad.TreeView.UpdateBuilders (builders, options);
			}
		}
コード例 #7
0
		void OnExtensionChanged (object s, ExtensionEventArgs args)
		{
			if (args.PathChanged ("MonoDevelop/DesignerSupport/PropertyProviders")) {
				providers = null;
				ReSetPad ();
			}
		}