Example #1
0
 public void cleanup(CleanupInfo cleanupInfo, ResourceProvider resourceProvider)
 {
     cleanupInfo.defineObjectClass(Slide.SlideActionClass);
     cleanupInfo.defineObjectClass(ShowPropAction.PropClass);
     foreach (Slide slide in slides)
     {
         slide.cleanup(cleanupInfo, resourceProvider);
     }
 }
        private void findDependencies()
        {
            CleanupInfo resourceInfo = new CleanupInfo();

            resourceInfo.defineObjectClass(ShowPropAction.PropClass);
            foreach (String file in editorController.ResourceProvider.listFiles("*.tl", "", true))
            {
                Timeline timeline;
                using (Stream fileStream = editorController.ResourceProvider.openFile(file))
                {
                    timeline = SharedXmlSaver.Load <Timeline>(fileStream);
                }
                timeline.cleanup(resourceInfo);
            }

            plugin.setDependencyIds(resourceInfo.getObjects <String>(ShowPropAction.PropClass)
                                    .Select(n => standaloneController.PropFactory.getDependencyIdForProp(n))
                                    .Where(id => id.HasValue)
                                    .Select(id => id.Value));
        }