Revision 33717 branches/v2_0_0_prep/extensions/extDwg/src/org/gvsig/dwg/fmap/dal/store/dwg/DWGStoreProvider.java
DWGStoreProvider.java | ||
---|---|---|
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
|
133 |
public String getName() { |
|
133 |
public String getProviderName() {
|
|
134 | 134 |
return NAME; |
135 | 135 |
} |
136 | 136 |
|
... | ... | |
268 | 268 |
try { |
269 | 269 |
throw new OpenException(resource.getName(), e); |
270 | 270 |
} catch (AccessResourceException e1) { |
271 |
throw new OpenException(this.getName(), e); |
|
271 |
throw new OpenException(this.getProviderName(), e);
|
|
272 | 272 |
} |
273 | 273 |
// } finally { |
274 | 274 |
// this.resource.end(); |
... | ... | |
285 | 285 |
params.setRoot(this.getDWGParameters().getFile().getParent()); |
286 | 286 |
return manager.createServerExplorer(params); |
287 | 287 |
} catch (DataException e) { |
288 |
throw new ReadException(this.getName(), e); |
|
288 |
throw new ReadException(this.getProviderName(), e);
|
|
289 | 289 |
} catch (ValidateDataParametersException e) { |
290 |
throw new ReadException(this.getName(), e); |
|
290 |
throw new ReadException(this.getProviderName(), e);
|
|
291 | 291 |
} |
292 | 292 |
|
293 | 293 |
} |
... | ... | |
637 | 637 |
try { |
638 | 638 |
this.open(); |
639 | 639 |
} catch (OpenException e) { |
640 |
throw new InitializeException(this.getName(), e); |
|
640 |
throw new InitializeException(this.getProviderName(), e);
|
|
641 | 641 |
} |
642 | 642 |
} |
643 | 643 |
|
... | ... | |
664 | 664 |
return this.getDWGParameters().getFile(); |
665 | 665 |
} |
666 | 666 |
|
667 |
|
|
668 |
public String getName() { |
|
669 |
String name = this.getDWGParameters().getFile().getName(); |
|
670 |
int n = name.lastIndexOf("."); |
|
671 |
if( n<1 ) { |
|
672 |
return name; |
|
673 |
} |
|
674 |
return name.substring(0, n); |
|
675 |
} |
|
676 |
|
|
677 |
public String getFullName() { |
|
678 |
return this.getDWGParameters().getFile().getAbsolutePath(); |
|
679 |
} |
|
680 |
|
|
681 |
|
|
682 |
|
|
667 | 683 |
public ResourceProvider getResource() { |
668 | 684 |
return resource; |
669 | 685 |
} |
Also available in: Unified diff