net.refractions.udig.tools.edit.commands
Class AddFeaturesCommand

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.tools.edit.commands.AddFeaturesCommand

public class AddFeaturesCommand
extends AbstractCommand

Add all the features to the EditBlackboard that are contained in the filter.

Since:
1.1.0
Author:
jones

Constructor Summary
AddFeaturesCommand(EditBlackboard blackboard, ILayer layer, Filter filter)
          Create new instance
 
Method Summary
 java.lang.String getName()
           
 void rollback(IProgressMonitor monitor)
           
 void run(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddFeaturesCommand

public AddFeaturesCommand(EditBlackboard blackboard,
                          ILayer layer,
                          Filter filter)
Create new instance

Parameters:
blackboard - blackboard to add selected features
layer - layer used to obtain features. Must have a FeatureStore resource.
filter - filter used to select features
Method Detail

run

public void run(IProgressMonitor monitor)
         throws java.lang.Exception
Throws:
java.lang.Exception

getName

public java.lang.String getName()

rollback

public void rollback(IProgressMonitor monitor)
              throws java.lang.Exception
Throws:
java.lang.Exception