Ignore:
Timestamp:
5/4/2010 4:31:36 AM (5 years ago)
Author:
lowjoel
Message:

r2050 allows us to reference a plugin that is required for functionality, since the plugin will always be loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/SchedulerPanel.cs

    r2041 r2051  
    3636using Eraser.Manager; 
    3737using Eraser.Util; 
     38using Eraser.DefaultPlugins; 
    3839using Microsoft.Samples; 
    3940using ProgressChangedEventArgs = Eraser.Util.ProgressChangedEventArgs; 
     
    470471                Task task = new Task(); 
    471472                foreach (string file in files) 
    472                 { 
    473                     FileSystemObjectTarget target; 
    474                     if (Directory.Exists(file)) 
    475                         target = new FolderTarget(); 
     473                {    
     474                    FileSystemObjectErasureTarget target; 
     475                    if ((File.GetAttributes(file) & FileAttributes.Directory) != 0) 
     476                        target = new FolderErasureTarget(); 
    476477                    else 
    477                         target = new FileTarget(); 
     478                        target = new FileErasureTarget(); 
    478479                    target.Path = file; 
    479480 
Note: See TracChangeset for help on using the changeset viewer.