public void addFeature(Feature feature, Layer layer) throws IOException, IllegalAttributeException, IllegalAttributeException(Code)
Adds a feature to the layer and sets the current edit feature to be the newly added feature.
The layer becomes the new Edit layer.
Parameters: feature - the feature to be added. throws: IOException - throws: IllegalAttributeException - throws: IllegalAttributeException -
Sets the value of the '
net.refractions.udig.project.internal.EditManager.getEditFeatureEdit Feature '
attribute. The Layer indicates which Layer the feature is part of. If the layer is
isEditLayerLocked() returns true then an exception will be thrown if the value of layer is
not null or equal to the current editlayer.
Parameters: value - the new value of the 'Edit Feature' attribute. Parameters: layer - A layer that the feature is part of. See Also:EditManager.getEditFeature()