Revision 37492 branches/v2_0_0_prep/libraries/org.gvsig.annotation/org.gvsig.annotation.lib/org.gvsig.annotation.lib.impl/src/main/java/org/gvsig/annotation/impl/DefaultAnnotationCreationService.java
DefaultAnnotationCreationService.java | ||
---|---|---|
68 | 68 |
*/ |
69 | 69 |
public class DefaultAnnotationCreationService extends AbstractMonitorableTask implements AnnotationCreationService { |
70 | 70 |
private static final Logger LOG = LoggerFactory.getLogger(DefaultAnnotationCreationService.class); |
71 |
private static final String TEMPLATE_NAME = "template.gvslab"; |
|
71 | 72 |
private static DataManager dataManager = DALLocator.getDataManager(); |
72 | 73 |
|
73 | 74 |
private AnnotationManager manager; |
... | ... | |
264 | 265 |
|
265 | 266 |
private void copyLegend(FeatureStore destinationStore) throws ValidateDataParametersException, DataException, IOException { |
266 | 267 |
FilesystemServerExplorer filesystemServerExplorer = (FilesystemServerExplorer)destinationStore.getExplorer(); |
267 |
File target = filesystemServerExplorer.getResourcePath(destinationStore, "gvl");
|
|
268 |
File target = filesystemServerExplorer.getResourcePath(destinationStore, "gvslab");
|
|
268 | 269 |
|
269 | 270 |
//Copy the template |
270 |
InputStream in = getClass().getClassLoader().getResourceAsStream("legend.template.gvl");
|
|
271 |
InputStream in = getClass().getClassLoader().getResourceAsStream(TEMPLATE_NAME);
|
|
271 | 272 |
OutputStream out = null; |
272 | 273 |
|
273 | 274 |
out = new FileOutputStream(target); |
Also available in: Unified diff