public void onClick ( MenuItemClickEvent event ) { FeatureTransaction featureTransaction = mapWidget . getMapModel ( ) . getFeatureEditor ( ) . getFeatureTransaction ( ) ; if ( featureTransaction != null ) { controller . cleanup ( ) ; mapWidget . render ( featureTransaction , RenderGroup . VECTOR , RenderStatus . DELETE ) ; mapWidget . getMapModel ( ) . getFeatureEditor ( ) . stopEditing ( ) ; } }
Cancels editing and also removes the FeatureTransaction object from the map .