void OnFileChanged(object sender, ProjectFileEventArgs args)
 {
     FileEntry file = GetFile (args.ProjectFile.Name);
     if (file != null) QueueParseJob (file);
 }
 void OnFileRemoved(object sender, ProjectFileEventArgs args)
 {
     RemoveFile (args.ProjectFile.Name);
 }
 void OnRemoveFile(object sender, ProjectFileEventArgs e)
 {
     if (e.ProjectFile.BuildAction != BuildAction.EmbedAsResource && e.ProjectFile.Subtype != Subtype.Directory) {
         AddFile (e.ProjectFile.Name, e.Project);
     }
 }
 void OnFileAdded(object sender, ProjectFileEventArgs args)
 {
     if (args.ProjectFile.BuildAction == BuildAction.Compile)
         AddFile (args.ProjectFile.Name);
 }
 protected virtual void OnFileRemovedFromProject(ProjectFileEventArgs e)
 {
     if (FileRemovedFromProject != null) {
         FileRemovedFromProject(this, e);
     }
 }
 void OnAddFile(object sender, ProjectFileEventArgs e)
 {
     if (e.ProjectFile.BuildAction != BuildAction.EmbedAsResource) {
         ITreeBuilder tb = Context.GetTreeBuilder (new SystemFile (e.ProjectFile.Name, e.Project));
         if (tb != null) tb.Remove (true);
         Context.Tree.AddNodeInsertCallback (e.ProjectFile, new TreeNodeCallback (UpdateProjectFileParent));
     }
 }
 protected virtual void OnFileAddedToProject(ProjectFileEventArgs e)
 {
     if (FileAddedToProject != null) {
         FileAddedToProject (this, e);
     }
 }
 protected virtual void OnFileChangedInProject(ProjectFileEventArgs e)
 {
     if (FileChangedInProject != null) {
         FileChangedInProject (this, e);
     }
 }
 void NotifyFileRemovedFromProject(object sender, ProjectFileEventArgs e)
 {
     OnFileRemovedFromProject (e);
 }
 internal void NotifyFileChangedInProject(object sender, ProjectFileEventArgs e)
 {
     OnFileChangedInProject (e);
 }
 void NotifyFileAddedToProject(object sender, ProjectFileEventArgs e)
 {
     OnFileAddedToProject (e);
 }
 void OnRemoveFile(object sender, ProjectFileEventArgs e)
 {
     RemoveFile (e.ProjectFile, e.Project);
 }
 void OnAddFile(object sender, ProjectFileEventArgs e)
 {
     AddFile (e.ProjectFile, e.Project);
 }
        protected override void OnFileRemovedFromProject(ProjectFileEventArgs e)
        {
            base.OnFileRemovedFromProject (e);
            if (loading) return;

            if (e.ProjectFile.BuildAction != BuildAction.Compile)
                return;

            RemoveSourceFile (e.ProjectFile.Name);
        }
Esempio n. 15
0
        void Monitor(object sender, ProjectFileEventArgs args)
        {
            // If the status of the file actually changed, then
            // update the project pad so the overlays are updated.

            string file = args.ProjectFile.FilePath;

            NodeStatus newstatus = GetStatus(file);
            if (newstatus == NodeStatus.Unknown && !fileStatus.ContainsKey(file))
                return; // had no status before, has no status now

            if (!fileStatus.ContainsKey(file)
                || (fileStatus.ContainsKey(file)
                    && (NodeStatus)fileStatus[file] != newstatus)) {
                // No status before and has status now, or
                // status changed.  Refresh the project pad.
                ITreeBuilder builder = Context.GetTreeBuilder(args.ProjectFile);
                if (builder != null)
                    builder.UpdateAll();
            }
        }