Revision 11008 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/ProjectTableFactory.java

View differences:

ProjectTableFactory.java
93 93
                        LayerFactory.getDataSourceFactory().addFileDataSource(driverNames[i],
94 94
                            name, files[i].getAbsolutePath());
95 95

  
96
                        DataSource dataSource = LayerFactory.getDataSourceFactory()
96
//                      CHEMA: AUTOMATIC DATA SOURCE
97
                        /*
98
                        DataSource dataSource = LayerFactory.getDataSourceFactory()                        
97 99
                                                            .createRandomDataSource(name,
98 100
                                DataSourceFactory.MANUAL_OPENING);
101
                        */
102
                        DataSource dataSource = LayerFactory.getDataSourceFactory()
103
                        .createRandomDataSource(name,
104
                        		DataSourceFactory.AUTOMATIC_OPENING);
99 105
                        SelectableDataSource sds = new SelectableDataSource(dataSource);
100 106
                        EditableAdapter auxea = new EditableAdapter();
101 107
                        auxea.setOriginalDataSource(sds);
......
150 156
                        dbod.getHost(), port, user, password,
151 157
                        dbod.getDataBase(), dbod.getTable(), driverName);
152 158

  
159
//                  CHEMA: AUTOMATIC DATA SOURCE
160
                    /*
153 161
                    DataSource dataSource = LayerFactory.getDataSourceFactory()
154 162
                                                        .createRandomDataSource(name,
155 163
                            DataSourceFactory.MANUAL_OPENING);
164
                    */
165
                    DataSource dataSource = LayerFactory.getDataSourceFactory()
166
                    									.createRandomDataSource(name,
167
                    		DataSourceFactory.AUTOMATIC_OPENING);
168

  
156 169
                    SelectableDataSource sds = new SelectableDataSource(dataSource);
157 170
                    EditableAdapter auxea = new EditableAdapter();
158 171

  

Also available in: Unified diff