[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [udig-devel] change new feature | 
I tried two approaches to programatically adjust a feature that has been 
newly added by the user.
listening as IEditManagerListener to the editmanager
and by the editFeatureChanged event
I suppose both do more or less the same. Both do not work for me.
The first feature added by the user is no problem, I can adjust some of 
its values. If the user commits directly after adding the first feature, 
the second added feature is no problem either. However if the user does 
not commit before adding the second feature, the events do fire properly 
but the they contain the first added feature and not the latest added 
one. As a result the program is adjusting the wrong feature.
I suppose this is a bug? If not can somebody explain me how to get the 
latest added feature. And if it is a bug, is there a way around for the 
moment? ( I tried to programmatically commit the feature after I receive 
this event, this works but the feature is no longer visible until the 
user does an action that refreshes the display)
thanks,
Piebe
--
---------------------------	----------------------------
 Piebe de Vries		  piebe.de.vries@xxxxxxxxx
 Geodan IT b.v.		  Tel: +31 (0)73 - 6925 151
 President Kennedylaan 1	  Fax: +31 (0)73 - 5711 333
 1079 MB Amsterdam (NL)	  http://www.geodan.nl
---------------------------	----------------------------