Revision 33719

View differences:

branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/serverexplorer/filesystem/impl/DefaultFilesystemServerExplorer.java
106 106
		}
107 107

  
108 108
		if (!this.current.isDirectory()) {
109
			new IllegalArgumentException(this.getName()
109
			new IllegalArgumentException(this.getProviderName()
110 110
					+ ": Path not a directory '" + this.current + "'");
111 111
		}
112 112
		// DataManager dsm=DataManager.getManager();
......
190 190

  
191 191
			provider.remove(dsp);
192 192
		} catch (DataException e) {
193
			throw new RemoveException(this.getName(), e);
193
			throw new RemoveException(this.getProviderName(), e);
194 194
		}
195 195
	}
196 196

  
......
214 214
			return true; // TODO deber?a devolver un booleano el provider o esto
215 215
			// ser un void
216 216
		} catch (DataException e) {
217
			throw new RemoveException(this.getName(), e);
217
			throw new RemoveException(this.getProviderName(), e);
218 218
		}
219 219
	}
220 220

  
......
236 236
	 * org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorer
237 237
	 * #getName()
238 238
	 */
239
	public String getName() {
239
	public String getProviderName() {
240 240
		return FilesystemServerExplorer.NAME;
241 241
	}
242 242

  
......
441 441
		return this.providerServices;
442 442
	}
443 443

  
444
//	private DataStore open(File file) throws DataException,
445
//			ValidateDataParametersException {
446
//		DataManager manager =  DALLocator.getDataManager();
447
//		String providerName = this.getProviderName(file);
448
//		
449
////        DataStoreParameters params = this.getAddParameters(file);
450
//        DataStoreParameters params = this.getParametersFor(file, true);
451
//		return manager.openStore(providerName, params);
452
//	}
444
	public DataStore open(File file) throws DataException,
445
			ValidateDataParametersException {
446
		DataManager manager =  DALLocator.getDataManager();
447
		String providerName = this.getProviderName(file);
448
		
449
        DataStoreParameters params = this.getAddParameters(file);
450
		return manager.openStore(providerName, params);
451
	}
453 452

  
454 453
	public NewDataStoreParameters getAddParameters(File file)
455 454
			throws DataException {

Also available in: Unified diff