Changeset 2508


Ignore:
Timestamp:
3/14/2012 5:02:35 AM (2 years ago)
Author:
lowjoel
Message:

Rename IDragAndDropConfigurer to IDragAndDropConfigurerFactory since it does not configure a given <T>, but instead transforms a drag-and-drop operation into a collection of <T>.

Location:
branches/eraser6/pluginsRewrite
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/FileErasureTargetConfigurer.cs

    r2458 r2508  
    3939{ 
    4040    public partial class FileErasureTargetConfigurer : UserControl, 
    41         IErasureTargetConfigurer, IDragAndDropConfigurer<IErasureTarget> 
     41        IErasureTargetConfigurer, IDragAndDropConfigurerFactory<IErasureTarget> 
    4242    { 
    4343        public FileErasureTargetConfigurer() 
  • branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTargetConfigurer.cs

    r2451 r2508  
    3939{ 
    4040    public partial class FolderErasureTargetConfigurer : UserControl, 
    41         IErasureTargetConfigurer, IDragAndDropConfigurer<IErasureTarget> 
     41        IErasureTargetConfigurer, IDragAndDropConfigurerFactory<IErasureTarget> 
    4242    { 
    4343        public FolderErasureTargetConfigurer() 
  • branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/RecycleBinErasureTargetConfigurer.cs

    r2451 r2508  
    3434{ 
    3535    class RecycleBinErasureTargetConfigurer : IErasureTargetConfigurer, 
    36         IDragAndDropConfigurer<IErasureTarget> 
     36        IDragAndDropConfigurerFactory<IErasureTarget> 
    3737    { 
    3838        #region IConfigurer<ErasureTarget> Members 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/IConfigurer.cs

    r2451 r2508  
    7373 
    7474    /// <summary> 
    75     /// Represents an object which is able to configure a given instance of 
    76     /// <typeparamref name="T"/> from a Drag-and-Drop operation. 
     75    /// Represents an object which is able to transform the contents of 
     76    /// a drag-and-drop operation into program logic. 
    7777    /// </summary> 
    7878    /// <typeparam name="T">The type to configure</typeparam> 
    79     public interface IDragAndDropConfigurer<T> : IConfigurer<T> 
     79    public interface IDragAndDropConfigurerFactory<T> 
    8080    { 
    8181        /// <summary> 
    82         /// Sets the configuration of the current configurer from the provided 
    83         /// Drag-and-Drop event argument. 
     82        /// Retrieves the transformed collection of objects based on the 
     83        /// contents of the provided drag-and-drop operation. 
    8484        /// </summary> 
    8585        /// <param name="e">The event argument.</param> 
  • branches/eraser6/pluginsRewrite/Eraser/TaskDragDropHelper.cs

    r2451 r2508  
    8989            { 
    9090                //Skip targets not supporting IDragAndDropConfigurer 
    91                 if (!(target.Configurer is IDragAndDropConfigurer<IErasureTarget>)) 
     91                if (!(target.Configurer is IDragAndDropConfigurerFactory<IErasureTarget>)) 
    9292                    continue; 
    9393 
    94                 IDragAndDropConfigurer<IErasureTarget> configurer = 
    95                     (IDragAndDropConfigurer<IErasureTarget>)target.Configurer; 
     94                IDragAndDropConfigurerFactory<IErasureTarget> configurer = 
     95                    (IDragAndDropConfigurerFactory<IErasureTarget>)target.Configurer; 
    9696                foreach (IErasureTarget newTarget in configurer.ProcessArgument(e)) 
    9797                    result.Add(newTarget); 
Note: See TracChangeset for help on using the changeset viewer.