Revision 45739 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/addlayer/AddLayerDialog.java
AddLayerDialog.java | ||
---|---|---|
258 | 258 |
|
259 | 259 |
private void closeWindow() { |
260 | 260 |
if (PluginServices.getMainFrame() == null) { |
261 |
((JDialog) (getParent().getParent().getParent().getParent())).dispose(); |
|
261 |
try { |
|
262 |
((JDialog) (getParent().getParent().getParent().getParent())).dispose(); |
|
263 |
} catch(Exception ex) { |
|
264 |
logger.debug("Can't close window.",ex); |
|
265 |
} |
|
262 | 266 |
} else { |
263 | 267 |
PluginServices.getMDIManager().closeWindow(AddLayerDialog.this); |
264 | 268 |
} |
Also available in: Unified diff