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 (); }
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); }
void HandleProjectChanged (object sender, ProjectFileEventArgs e) { if (e.Any (f => f.ProjectFile.FilePath == DocumentContext.Name)) UpdateOwnerProjects (); }
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); }
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); }
void FilePropertyChangedInProject (object sender, ProjectFileEventArgs e) { if (!xcodeProjectDirty && syncing && e.Any (finf => IsContent (finf.ProjectFile))) xcodeProjectDirty = true; //FIXME: make this async UpdateTypes (true); UpdateXcodeProject (); }
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); }
protected override void OnFilePropertyChangedInProject (ProjectFileEventArgs e) { base.OnFilePropertyChangedInProject (e); if (Loading) return; if (e.Any (f => f.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource)) QueueResgenUpdate (); }
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 (); }
void FileAddedToProject (object sender, ProjectFileEventArgs e) { if (!syncing && e.Any (finf => IsPage (finf.ProjectFile))) EnableSyncing (); if (syncing) UpdateTypes (true); UpdateXcodeProject (); }
void FileRemovedFromProject (object sender, ProjectFileEventArgs e) { if (syncing && e.Any (finf => IsPage (finf.ProjectFile))) if (!dnp.Files.Any (IsPage)) DisableSyncing (); if (syncing) UpdateTypes (true); }