コード例 #1
0
		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 ();
		}
コード例 #2
0
		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);
		}
コード例 #3
0
		void HandleProjectChanged (object sender, ProjectFileEventArgs e)
		{
			if (e.Any (f => f.ProjectFile.FilePath == DocumentContext.Name))
				UpdateOwnerProjects ();
		}
コード例 #4
0
		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (!SyncingEnabled)
				return;
			
			XC4Debug.Log ("Files removed from project '{0}'", dnp.Name);
			foreach (var file in e)
				XC4Debug.Log ("   * Removed: {0}", file.ProjectFile.ProjectVirtualPath);
			
			XC4Debug.Indent ();
			try {
				if (e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
					if (!dnp.Files.Any (IsInterfaceDefinition)) {
						XC4Debug.Log ("Last Interface Definition file removed from '{0}', disabling Xcode sync.", dnp.Name);
						DisableSyncing ();
						return;
					}
				}
			} finally {
				XC4Debug.Unindent ();
			}
			
			CheckFileChanges (e);
		}
コード例 #5
0
		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (syncing && e.Any (finf => finf.Project == dnp && IsInterfaceDefinition (finf.ProjectFile))) {
				if (!dnp.Files.Any (IsInterfaceDefinition)) {
					XC4Debug.Log ("All page files removed, disabling sync");
					DisableSyncing ();
					return;
				}
			}
			
			CheckFileChanges (e);
		}
コード例 #6
0
		void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
		{
			if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
				xcodeProjectDirty = true;
			
			//FIXME: make this async
			UpdateTypes (true);
			UpdateXcodeProject ();
		}
コード例 #7
0
		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			//FIXME: do we need to disable syncing here?
			if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				if (!dnp.Files.Any (IsPage))
					DisableSyncing ();
			
			//FIXME: make this async
			UpdateTypes (true);
		}
コード例 #8
0
ファイル: MonoDroidProject.cs プロジェクト: poke/monodevelop
		protected override void OnFilePropertyChangedInProject (ProjectFileEventArgs e)
		{
			base.OnFilePropertyChangedInProject (e);
			if (Loading)
				return;
			
			if (e.Any (f => f.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource))
				QueueResgenUpdate ();
		}
コード例 #9
0
		void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e)
		{
			if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				EnableSyncing ();
			
			if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile)))
				xcodeProjectDirty = true;
			
			if (syncing)
				UpdateTypes (true);
			
			UpdateXcodeProject ();
		}
コード例 #10
0
		void FileAddedToProject (object sender, ProjectFileEventArgs e)
		{
			if (!syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				EnableSyncing ();
			
			if (syncing)
				UpdateTypes (true);
			
			UpdateXcodeProject ();
		}
コード例 #11
0
		void FileRemovedFromProject (object sender, ProjectFileEventArgs e)
		{
			if (syncing && e.Any (finf => IsPage (finf.ProjectFile)))
				if (!dnp.Files.Any (IsPage))
					DisableSyncing ();
			
			if (syncing)
				UpdateTypes (true);
		}