Commit 3dc48fdd authored by Romain Bioteau's avatar Romain Bioteau

fix validation without opened editor

parent 79a8d0a1
......@@ -153,6 +153,7 @@ public class BatchValidationHandler extends AbstractHandler {
throw new IOException(fileName + " does not exists in " + store.getResource().getLocation());
}
currentDiagramStore = fileStore;
fileStore.getContent();//force resource to be loaded
final Resource eResource = fileStore.getEMFResource();
final TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(eResource);
final FindDiagramRunnable runnable = new FindDiagramRunnable(eResource, validateOperation);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment