Commit 7874ed58 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix validation without opened editor

parent 5d29f26e
......@@ -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