コード例 #1
0
ファイル: GettingStarted.cs プロジェクト: kdubau/monodevelop
		/// <summary>
		/// Shows the getting started page for the given project.
		/// </summary>
		/// <param name="project">The project for which the getting started page should be shown</param>
		/// <param name="pageHint">A hint to the getting started page for cases when the provide may need assistance in determining the correct content to show</param>
		public static void ShowGettingStarted (Project project, string pageHint = null)
		{
			var provider = project.GetGettingStartedProvider ();
			if (provider != null) {
				provider.ShowGettingStarted (project, pageHint);
			}
		}
コード例 #2
0
		public virtual void ShowGettingStarted (Project project, string pageHint = null)
		{
			GettingStartedViewContent view;
			foreach (var doc in IdeApp.Workbench.Documents) {
				view = doc.PrimaryView.GetContent<GettingStartedViewContent> ();
				if (view != null && view.Project == project) {
					view.WorkbenchWindow.SelectWindow ();
					return;
				}
			}

			var provider = project.GetGettingStartedProvider ();
			if (provider != null) {
				var vc = new GettingStartedViewContent (project, provider);
				IdeApp.Workbench.OpenDocument (vc, true);
			}
		}