Skip to content

Commit

Permalink
Fixed #426 M2Doc Interpreter View in Eclipse is too aggressive in loc…
Browse files Browse the repository at this point in the history
…king the template file.
  • Loading branch information
ylussaud committed Apr 17, 2024
1 parent fc407fc commit 4c99fb7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2021, 2023 Obeo.
* Copyright (c) 2021, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -635,9 +635,9 @@ public void setGenconfURI(URI genconfURI) {
final IClassProvider classProvider = M2DocPlugin.getClassProvider();
final URIConverter uriConverter = resourceSetForModels.getURIConverter();
try (XWPFDocument document = POIServices.getInstance()
.getXWPFDocument(resourceSetForModels.getURIConverter(), templateURI);) {
final DocumentTemplate documentTemplate = M2DocUtils.parse(uriConverter, templateURI, queryEnvironment,
classProvider, new BasicMonitor());
.getXWPFDocument(resourceSetForModels.getURIConverter(), templateURI);
DocumentTemplate documentTemplate = M2DocUtils.parse(uriConverter, templateURI, queryEnvironment,
classProvider, new BasicMonitor());) {
final TemplateCustomProperties properties = new TemplateCustomProperties(document);
properties.configureQueryEnvironmentWithResult(queryEnvironment);
properties.configureQueryEnvironmentWithResult(queryEnvironment, classProvider);
Expand Down

0 comments on commit 4c99fb7

Please sign in to comment.