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

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

public class CreateOrSetFeatureCommand
extends AbstractCommand

If there is no feature with the Feature ID in the layer then a new feature will be created. Otherwise the feature's geometry will be set.

Since:
1.1.0
Author:
jones

Constructor Summary
CreateOrSetFeatureCommand(java.lang.String fid2, ILayer layer2, Geometry geom2)
           
 
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

CreateOrSetFeatureCommand

public CreateOrSetFeatureCommand(java.lang.String fid2,
                                 ILayer layer2,
                                 Geometry geom2)
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