Revision 46575 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 | ||
---|---|---|
54 | 54 |
import org.gvsig.fmap.dal.AbstractStoresRepository; |
55 | 55 |
import org.gvsig.fmap.dal.DALLocator; |
56 | 56 |
import org.gvsig.fmap.dal.DataManager; |
57 |
import org.gvsig.fmap.dal.DataStore; |
|
57 | 58 |
import org.gvsig.fmap.dal.DataStoreParameters; |
58 | 59 |
import org.gvsig.fmap.dal.exception.InitializeException; |
59 | 60 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
... | ... | |
194 | 195 |
doc.setStore(store); |
195 | 196 |
project.addDocument(doc); |
196 | 197 |
} |
198 |
|
|
199 |
@Override |
|
200 |
public DataStore getStore(String name) { |
|
201 |
Project project = ProjectManager.getInstance().getCurrentProject(); |
|
202 |
TableDocument tableDoc = (TableDocument) project.getDocument(name, TYPENAME); |
|
203 |
if( tableDoc==null || tableDoc.getFeatureStore()==null) { |
|
204 |
return null; |
|
205 |
} |
|
206 |
return tableDoc.getFeatureStore(); |
|
207 |
} |
|
208 |
|
|
197 | 209 |
} |
198 | 210 |
|
199 | 211 |
public static final String PERSISTENCE_TABLE_DOCUMENT_DEFINITION_NAME = |
Also available in: Unified diff