Commit 2703211c authored by Romain Bioteau's avatar Romain Bioteau

fix(builder) lock equinox.commuon dependency version

parent 351e26b3
......@@ -33,7 +33,6 @@ import org.bonitasoft.studio.exporter.bpmn.transfo.BonitaToBPMNExporter;
import org.bonitasoft.studio.exporter.extension.BonitaModelExporterImpl;
import org.bonitasoft.studio.model.configuration.Configuration;
import org.bonitasoft.studio.model.process.AbstractProcess;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
......@@ -56,8 +55,8 @@ public class BPMNBarResourceProvider implements BARResourcesProvider {
IModelSearch modelSearch = new ModelSearch(
() -> diagramRepoStore.getAllProcesses(),
() -> connectorDefRepoStore.getDefinitions());
new BonitaToBPMNExporter().export(new BonitaModelExporterImpl(eResource, modelSearch), modelSearch, destFile,
new NullProgressMonitor());
new BonitaToBPMNExporter().export(new BonitaModelExporterImpl(eResource, modelSearch), modelSearch,
destFile);
builder.addExternalResource(new BarResource("process.bpmn", toByteArray(destFile)));
} else {
BonitaStudioLog.warning(
......
......@@ -119,7 +119,6 @@ import org.bonitasoft.studio.model.process.XMLData;
import org.bonitasoft.studio.model.process.XMLType;
import org.bonitasoft.studio.model.process.XORGateway;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Status;
......@@ -234,8 +233,7 @@ public class BonitaToBPMNExporter {
public void export(final IBonitaModelExporter modelExporter,
IModelSearch modelSearch,
final File destFile,
final IProgressMonitor monitor) {
final File destFile) {
this.modelSearch = modelSearch;
final MainProcess mainProcess = modelExporter.getMainProcess();
......
......@@ -80,8 +80,7 @@ public class ExportAsBPMNHandler {
transformer.export(
new BonitaModelExporterImpl(diagram.eResource(), modelSearch),
modelSearch,
destFile,
monitor);
destFile);
});
MultiStatus status = transformer.getStatus();
if (status.getSeverity() < IStatus.ERROR) {
......
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