Revision 46608 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableManager.java
TableManager.java | ||
---|---|---|
27 | 27 |
import java.util.Collections; |
28 | 28 |
import java.util.Iterator; |
29 | 29 |
import java.util.List; |
30 |
import java.util.logging.Level; |
|
31 |
import java.util.logging.Logger; |
|
30 | 32 |
|
31 | 33 |
import javax.swing.ImageIcon; |
32 | 34 |
import javax.swing.JOptionPane; |
... | ... | |
56 | 58 |
import org.gvsig.fmap.dal.DataManager; |
57 | 59 |
import org.gvsig.fmap.dal.DataStore; |
58 | 60 |
import org.gvsig.fmap.dal.DataStoreParameters; |
61 |
import org.gvsig.fmap.dal.exception.DataException; |
|
59 | 62 |
import org.gvsig.fmap.dal.exception.InitializeException; |
60 | 63 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
61 | 64 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
... | ... | |
429 | 432 |
public IWindow getMainWindow(Document doc, WindowLayout layout) { |
430 | 433 |
IDocumentWindow win = (IDocumentWindow) super.getMainWindow(doc, layout); |
431 | 434 |
if (win == null) { |
432 |
win = (IDocumentWindow) this.createDocumentWindow(doc); |
|
435 |
try { |
|
436 |
win = (IDocumentWindow) this.createDocumentWindow(doc); |
|
437 |
} catch(Throwable t){ |
|
438 |
} |
|
439 |
if(win == null){ |
|
440 |
try { |
|
441 |
((TableDocument)doc).getFeatureStore().refresh(); |
|
442 |
} catch (DataException ex) { |
|
443 |
throw new RuntimeException(ex); |
|
444 |
} |
|
445 |
win = (IDocumentWindow) this.createDocumentWindow(doc); |
|
446 |
} |
|
433 | 447 |
if (layout != null && win != null) { |
434 | 448 |
win.setWindowLayout(layout); |
435 | 449 |
} |
Also available in: Unified diff