Revision 41332
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/extension/develtools/EditingListenerPanel.java | ||
---|---|---|
36 | 36 |
import org.gvsig.editing.EditingNotification; |
37 | 37 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
38 | 38 |
import org.gvsig.fmap.mapcontrol.swing.dynobject.DynObjectEditor; |
39 |
import org.gvsig.tools.dynobject.DynObject; |
|
39 | 40 |
import org.gvsig.tools.observer.Observable; |
40 | 41 |
import org.gvsig.tools.observer.Observer; |
41 | 42 |
import org.slf4j.Logger; |
... | ... | |
173 | 174 |
if( n.isCancelable() ) { |
174 | 175 |
if( this.chkShowFeatureInForm.isSelected() && n.getFeature()!=null ) { |
175 | 176 |
try { |
176 |
DynObjectEditor editor = new DynObjectEditor(n.getFeature().getAsDynObject()); |
|
177 |
DynObject data = n.getFeature().getAsDynObject(); |
|
178 |
DynObjectEditor editor = new DynObjectEditor(data); |
|
177 | 179 |
editor.editObject(true); |
178 |
if( this.askToAceptNotification ) {
|
|
179 |
if( editor.isCanceled() ) {
|
|
180 |
n.cancel(); |
|
180 |
if( editor.isCanceled() ) {
|
|
181 |
if( this.askToAceptNotification ) {
|
|
182 |
n.cancel();
|
|
181 | 183 |
} |
184 |
} else { |
|
185 |
editor.getData(data); |
|
182 | 186 |
} |
183 | 187 |
} catch (Exception ex) { |
184 | 188 |
logger.warn("Problems showing the feature in a form.",ex); |
Also available in: Unified diff