[udig-devel] Adding a feature to a layer won't result in an
EventType.EDIT_EVENT
Jesse Eichar
jeichar at refractions.net
Mon Dec 17 21:34:38 PST 2007
So same goes for you tony. I've attached a zip file with a plugin
that contains an operations that can be run if you right click on a
project. It will create a Map using the code you gave me. When I add
polygons to the layer using the polygon tool it works just fine and
the other extension in the plugin reports each event just fine.
If you can modify the plugin so it shows your error please do so and
I'll fix the bug.
Jesse
On 17-Dec-07, at 4:45 AM, tony.roth at GMX.de wrote:
> // we never save a project or reuse it.
> Project udigProject =
> ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();
> Map map = ProjectFactory.eINSTANCE.createMap(udigProject,"myMap",new
> ArrayList<Layer>());
> ..
> // creating temporary resource / layer with:
> CatalogPlugin
> .getDefault
> ().getLocalCatalog().createTemporaryResource(myFeatureType);
> ...
> map
> .sendCommandSync
> (BasicCommandFactory.getInstance().createAddManyLayers(layerList));
-------------- next part --------------
Skipped content of type multipart/mixed
More information about the udig-devel
mailing list