Esempio n. 1
0
 protected override bool OnUpdateUsedResources(IProgressMonitor monitor, ChangedResourceCollection changedResourcesCollection)
 {
     if (this.Content != null)
     {
         return(this.Content.UpdateUsedResources(monitor, changedResourcesCollection));
     }
     return(false);
 }
Esempio n. 2
0
        internal void NotifyResourceFileChanged(ChangedResourceCollection changedResourceCollection)
        {
            if (this.CurrentResourceGroup == null)
            {
                return;
            }
            IProjectFile rootFolder = this.CurrentResourceGroup.RootFolder;

            rootFolder.UpdateUsedResources(this.DefaultMonitor, changedResourceCollection);
        }
Esempio n. 3
0
 bool IProjectFile.UpdateUsedResources(IProgressMonitor monitor, ChangedResourceCollection changedResourcesCollection)
 {
     foreach (ResourceItem resourceItem in (Collection <ResourceItem>) this.Items)
     {
         IProjectFile projectFile = resourceItem as IProjectFile;
         if (projectFile != null)
         {
             projectFile.UpdateUsedResources(monitor, changedResourcesCollection);
         }
     }
     return(false);
 }
Esempio n. 4
0
        public bool UpdateUsedResources(IProgressMonitor monitor, ChangedResourceCollection changedResourceCollection)
        {
            if (this.projectItem == null)
            {
                return(false);
            }
            bool flag = this.projectItem.UpdateUsedResources(monitor, changedResourceCollection);

            if (flag)
            {
                ProjectsService.Instance.InternalWriteProjectFile(monitor, this.FileName, this.projectItem as ProjectFile);
            }
            return(flag);
        }
Esempio n. 5
0
 protected abstract bool OnUpdateUsedResources(IProgressMonitor monitor, ChangedResourceCollection changedResourcesCollection);
Esempio n. 6
0
 public bool UpdateUsedResources(IProgressMonitor monitor, ChangedResourceCollection changedResourcesCollection)
 {
     return(this.OnUpdateUsedResources(monitor, changedResourcesCollection));
 }