Revision 33717 branches/v2_0_0_prep/libraries/libFMap_dalRaster/src/org/gvsig/fmap/dal/store/raster/RasterStoreProvider.java

View differences:

RasterStoreProvider.java
111 111
			params.setRoot(this.getRasterParameters().getFile().getParent());
112 112
			return manager.createServerExplorer(params);
113 113
		} catch (DataException e) {
114
			throw new ReadException(this.getName(), e);
114
			throw new ReadException(this.getProviderName(), e);
115 115
		}
116 116
	}
117 117

  
......
135 135
		return this.store;
136 136
	}
137 137

  
138
	public String getName() {
138
	public String getProviderName() {
139 139
		return NAME;
140 140
	}
141 141

  
......
143 143
		return this.getRasterParameters().getFile();
144 144
	}
145 145

  
146
	public String getName() {
147
		String name = this.getRasterParameters().getFile().getName();
148
		int n = name.lastIndexOf(".");
149
		if( n<1 ) {
150
			return name;
151
		}
152
		return name.substring(0, n);
153
	}
154
	
155
	public String getFullName() {
156
		return this.getRasterParameters().getFile().getAbsolutePath();
157
	}
158
	
146 159

  
147 160
}

Also available in: Unified diff