Skip to content

Commit

Permalink
#791 Load representations before running doc generation
Browse files Browse the repository at this point in the history
Ensure all representations are loaded before gendoc is ran
As links and images might not be found

Change-Id: I68999a1456e76b3536a1f8d73de12ba9506760cc
Signed-off-by: Erwann Traisnel <[email protected]>
  • Loading branch information
etraisnel2 authored and tguiu committed Mar 5, 2024
1 parent e132a22 commit 19560b1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.IProgressService;
import org.polarsys.kitalpha.doc.gen.business.core.exceptions.DocgenRuntimeException;
import org.polarsys.kitalpha.doc.gen.business.core.sirius.util.session.DiagramSessionHelper;
import org.polarsys.kitalpha.doc.gen.business.core.ui.Messages;
import org.polarsys.kitalpha.doc.gen.business.core.util.MonitorServices;

Expand Down Expand Up @@ -163,6 +164,8 @@ private static void launchDocgen(final IActivityManager<Activity> activityManage
try {
MonitorServices.initMonitor(monitor);
MonitorServices.init(0);
//Ensure that all representations are loaded
DiagramSessionHelper.getSessionDRepresentation();
activityManager.invoke(monitor);
activityManager.dispose();
MonitorServices.dispose();
Expand Down

0 comments on commit 19560b1

Please sign in to comment.