Revision 45120 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/featureform/swing/impl/DefaultJFeaturesForm.java
DefaultJFeaturesForm.java | ||
---|---|---|
72 | 72 |
import org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel; |
73 | 73 |
import org.gvsig.fmap.dal.swing.searchpanel.SearchParameters; |
74 | 74 |
import org.gvsig.tools.ToolsLocator; |
75 |
import org.gvsig.tools.dispose.Disposable; |
|
75 | 76 |
import org.gvsig.tools.dispose.DisposeUtils; |
76 | 77 |
import org.gvsig.tools.dynform.AbortActionException; |
77 | 78 |
import org.gvsig.tools.dynform.DynFormDefinition; |
... | ... | |
108 | 109 |
* |
109 | 110 |
*/ |
110 | 111 |
@SuppressWarnings("UseSpecificCatch") |
111 |
public class DefaultJFeaturesForm implements JFeaturesForm { |
|
112 |
public class DefaultJFeaturesForm implements JFeaturesForm, Disposable {
|
|
112 | 113 |
|
113 | 114 |
private final String STARTEDITING_ACTION = "startEditing"; |
114 | 115 |
private final String FINISHEDITING_ACTION = "finishEditing"; |
... | ... | |
212 | 213 |
this.panel.addComponentListener(new ComponentAdapter() { |
213 | 214 |
@Override |
214 | 215 |
public void componentHidden(ComponentEvent e) { |
215 |
doDispose();
|
|
216 |
dispose(); |
|
216 | 217 |
} |
217 | 218 |
}); |
218 | 219 |
} |
... | ... | |
290 | 291 |
this.features = null; |
291 | 292 |
} |
292 | 293 |
|
293 |
private void doDispose() { |
|
294 |
@Override |
|
295 |
public void dispose() { |
|
294 | 296 |
DisposeUtils.disposeQuietly(store); |
295 | 297 |
this.store = null; |
296 | 298 |
this.panel = null; |
Also available in: Unified diff