當前位置: 首頁>>代碼示例>>C#>>正文


C# Projects.ProjectFileEventArgs類代碼示例

本文整理匯總了C#中MonoDevelop.Projects.ProjectFileEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# ProjectFileEventArgs類的具體用法?C# ProjectFileEventArgs怎麽用?C# ProjectFileEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProjectFileEventArgs類屬於MonoDevelop.Projects命名空間,在下文中一共展示了ProjectFileEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: HandleProjectFileChangedInProject

		void HandleProjectFileChangedInProject (object sender, ProjectFileEventArgs args)
		{
			foreach (ProjectFileEventInfo e in args) {
				if (IsXibFile (e.ProjectFile))
					ThreadPool.QueueUserWorkItem (delegate { UpdateXibCodebehind (e.ProjectFile); });
			}
		}
開發者ID:raufbutt,項目名稱:monodevelop-old,代碼行數:7,代碼來源:XibCodeBehind.cs

示例2: Log

 internal static void Log(String messageFormat, ProjectFileEventArgs e)
 {
     foreach (ProjectFileEventInfo info in e) {
         ProjectFile projectFile = info.ProjectFile;
         Log (messageFormat, projectFile.Name);
     }
 }
開發者ID:Monobjc,項目名稱:monobjc-monodevelop,代碼行數:7,代碼來源:IDELogger.cs

示例3: HandleSolutionFileChangedInProject

		void HandleSolutionFileChangedInProject (object sender, ProjectFileEventArgs e)
		{
			if (e.Project is DotNetProject) {
				projectTimestamps [(DotNetProject)e.Project] = DateTime.Now;
				OnChanged ();
			}
		}
開發者ID:Kalnor,項目名稱:monodevelop,代碼行數:7,代碼來源:AddinFileSystem.cs

示例4: OnFilePropertyChangedInProject

		void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
		{
			var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
			if (pad == null)
				return;

			var grid = ((PropertyPad)pad.Content).PropertyGrid;
			if (args.Any (arg => arg.ProjectFile == file))
				grid.Refresh ();
		}
開發者ID:nerzhulart,項目名稱:monodevelop,代碼行數:10,代碼來源:ProjectFileDescriptor.cs

示例5: OnFilePropertyChangedInProject

		void OnFilePropertyChangedInProject (object sender, ProjectFileEventArgs args)
		{
			var pad = IdeApp.Workbench.GetPad <PropertyPad> ();
			if (pad == null)
				return;

			var grid = ((PropertyPad)pad.Content).PropertyGrid;
			if (grid.IsEditing)
				return;

			if (args.Any (arg => arg.ProjectFile == file))
				grid.Populate (saveEditSession: false);
		}
開發者ID:sushihangover,項目名稱:monodevelop,代碼行數:13,代碼來源:ProjectFileDescriptor.cs

示例6: OnFileAdded

		void OnFileAdded (object o, ProjectFileEventArgs a)
		{
			if (a.ProjectFile.Name.EndsWith (".desktop")) {
				DesktopEntry de = new DesktopEntry ();
				try {
					de.Load (a.ProjectFile.Name);
					a.ProjectFile.BuildAction = BuildAction.Content;
					DeployProperties props = DeployService.GetDeployProperties (a.ProjectFile);
					props.TargetDirectory = LinuxTargetDirectory.DesktopApplications;
					if (string.IsNullOrEmpty (de.Exec)) {
						LinuxDeployData dd = LinuxDeployData.GetLinuxDeployData (a.Project);
						if (dd.GenerateScript && !string.IsNullOrEmpty (dd.ScriptName)) {
							de.Exec = dd.ScriptName;
							de.Save (a.ProjectFile.Name);
						}
					}
				} catch (Exception ex) {
					LoggingService.LogError ("Could not read .desktop file", ex);
				}
			}
		}
開發者ID:transformersprimeabcxyz,項目名稱:monodevelop-1,代碼行數:21,代碼來源:LinuxDeploymentSetup.cs

示例7: OnFilePropertyChangedInProject

 protected override void OnFilePropertyChangedInProject(ProjectFileEventArgs e)
 {
     NeedsFullRebuild = true;
     base.OnFilePropertyChangedInProject (e);
 }
開發者ID:foerdi,項目名稱:Mono-D,代碼行數:5,代碼來源:AbstractDProject.cs

示例8: CheckFileChanges

		void CheckFileChanges (ProjectFileEventArgs e)
		{
			bool updateTypes = false, updateProject = false;
			
			foreach (ProjectFileEventInfo finf in e) {
				if (finf.Project != dnp)
					continue;
				if (finf.ProjectFile.BuildAction == BuildAction.Compile) {
					updateTypes = true;
				} else if (IncludeInSyncedProject (finf.ProjectFile)) {
					updateProject = true;
				}
			}
			
			if (updateTypes) {
				using (var monitor = GetStatusMonitor (GettextCatalog.GetString ("Syncing types to Xcode..."))) {
					//FIXME: make this async (and safely async)
					//FIXME: only update the project if obj-c types change
					updateProject |= UpdateTypes (monitor);
				}
			}
			
			if (updateProject) {
				using (var monitor = GetStatusMonitor (GettextCatalog.GetString ("Syncing project to Xcode..."))) {
					//FIXME: make this async (and safely async)
					var running = xcode.CheckRunning ();
					UpdateXcodeProject (monitor);
					if (running) {
						try {
							xcode.OpenProject (monitor);
						} catch (AppleScriptException) {
							ShowXcodeScriptError ();
						} catch (TimeoutException) {
							ShowXcodeScriptError ();
						}
					}
				}
			}
		}
開發者ID:txdv,項目名稱:monodevelop,代碼行數:39,代碼來源:XcodeProjectTracker.cs

示例9: OnFileAddedToProject

		protected override void OnFileAddedToProject (ProjectFileEventArgs e)
		{
			//short-circuit if the project is being deserialised
			if (Project.Loading) {
				base.OnFileAddedToProject (e);
				return;
			}

			bool webConfigChange = false;
			List<string> filesToAdd = new List<string> ();

			foreach (ProjectFileEventInfo fargs in e) {
				IEnumerable<string> files = MonoDevelop.DesignerSupport.CodeBehind.GuessDependencies
					(Project, fargs.ProjectFile, groupedExtensions);
				if (files != null)
					filesToAdd.AddRange (files);
				if (IsWebConfig (fargs.ProjectFile.FilePath))
					webConfigChange = true;
			}

			if (webConfigChange)
				UpdateWebConfigRefs ();

			//let the base fire the event before we add files
			//don't want to fire events out of order of files being added
			base.OnFileAddedToProject (e);

			//make sure that the parent and child files are in the project
			foreach (string file in filesToAdd) {
				//NOTE: this only adds files if they are not already in the project
				Project.AddFile (file);
			}
		}
開發者ID:kdubau,項目名稱:monodevelop,代碼行數:33,代碼來源:AspNetAppProjectFlavor.cs

示例10: OnFileChangedInProject

		protected override void OnFileChangedInProject (ProjectFileEventArgs e)
		{
			IDELogger.Log ("MonobjcProject::OnFileChangedInProject '{0}'", e);

			this.ResolverHandler.ClearCache();
			this.XcodeHandler.ClearXcodeProject();

			base.OnFileChangedInProject (e);

			this.CodeBehindHandler.GenerateDesignCodeForXib (e);
		}
開發者ID:Monobjc,項目名稱:monobjc-monodevelop,代碼行數:11,代碼來源:MonobjcProject.cs

示例11: OnFileRemoved

		void OnFileRemoved (object sender, ProjectFileEventArgs e)
		{
			ArrayList toDelete = new ArrayList ();

			foreach (ProjectFileEventInfo args in e) {
				var doc = TypeSystemService.ParseFile (args.Project, args.ProjectFile.Name);
				if (doc == null)
					continue;
	
				foreach (var t in doc.TopLevelTypeDefinitions) {
					GuiBuilderWindow win = GetWindowForClass (t.FullName);
					if (win != null)
						toDelete.Add (win);
				}
			}
			
			foreach (GuiBuilderWindow win in toDelete)
				Remove (win);
		}
開發者ID:rajeshpillai,項目名稱:monodevelop,代碼行數:19,代碼來源:GuiBuilderProject.cs

示例12: OnFileChangedInProject

		/// <summary>
		/// Raises the FileChangedInProject event.
		/// </summary>
		protected virtual void OnFileChangedInProject (ProjectFileEventArgs e)
		{
			if (FileChangedInProject != null) {
				FileChangedInProject (this, e);
			}
		}
開發者ID:okrmartin,項目名稱:monodevelop,代碼行數:9,代碼來源:Project.cs

示例13: OnFileAddedToProject

		/// <summary>
		/// Raises the FileAddedToProject event.
		/// </summary>
		protected virtual void OnFileAddedToProject (ProjectFileEventArgs e)
		{
			buildActions = null;
			if (FileAddedToProject != null) {
				FileAddedToProject (this, e);
			}
		}
開發者ID:okrmartin,項目名稱:monodevelop,代碼行數:10,代碼來源:Project.cs

示例14: OnFileRemovedFromProject

		/// <summary>
		/// Raises the FileRemovedFromProject event.
		/// </summary>
		protected virtual void OnFileRemovedFromProject (ProjectFileEventArgs e)
		{
			buildActions = null;
			if (FileRemovedFromProject != null) {
				FileRemovedFromProject (this, e);
			}
		}
開發者ID:okrmartin,項目名稱:monodevelop,代碼行數:10,代碼來源:Project.cs

示例15: NotifyFileAddedToProject

		void NotifyFileAddedToProject (IEnumerable<ProjectFile> objs)
		{
			if (!objs.Any ())
				return;
			
			var args = new ProjectFileEventArgs ();
			
			foreach (ProjectFile file in objs) {
				if (file.Project != null)
					throw new InvalidOperationException ("ProjectFile already belongs to a project");
				file.SetProject (this);
				args.Add (new ProjectFileEventInfo (this, file));
				ResolveDependencies (file);
			}

			SetDirty ();
			NotifyModified ("Files");
			OnFileAddedToProject (args);
		}
開發者ID:okrmartin,項目名稱:monodevelop,代碼行數:19,代碼來源:Project.cs


注:本文中的MonoDevelop.Projects.ProjectFileEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。