Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2018-01-18 04:54:09 -0500
committerPatrick Tessier2018-02-16 04:37:20 -0500
commit2658888c2d7bafc7cbee50b70918f8dbef29f1c7 (patch)
treec86e6a5566de481d1541d60a02218f9680dae4b7 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse
parentcdd8be15a6787f5536a9d462b722152c4fb9aabb (diff)
downloadorg.eclipse.papyrus-2658888c2d7bafc7cbee50b70918f8dbef29f1c7.tar.gz
org.eclipse.papyrus-2658888c2d7bafc7cbee50b70918f8dbef29f1c7.tar.xz
org.eclipse.papyrus-2658888c2d7bafc7cbee50b70918f8dbef29f1c7.zip
Bug 529966: Papyrus fails to export diagrams as images
https://bugs.eclipse.org/bugs/show_bug.cgi?id=529966 - When exporting diagrams from the Project Explorer, make sure that the services registry is started before doing the actual export - Fix some service usages/declarations to avoid errors in the log Change-Id: Ie9a2e550dbd78f98cb055bf7d7303300305a32e3 Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/PapyrusDiagramEditPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/PapyrusDiagramEditPart.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/PapyrusDiagramEditPart.java
index 9810d54c940..cdd6a6aa30f 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/PapyrusDiagramEditPart.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/PapyrusDiagramEditPart.java
@@ -86,7 +86,7 @@ public class PapyrusDiagramEditPart extends DiagramEditPart {
IMultiDiagramEditor multiDiagramEditor = ServiceUtilsForEditPart.getInstance().getService(IMultiDiagramEditor.class, this);
activeEditor = multiDiagramEditor.getActiveEditor();
} catch (ServiceException e) {
- Activator.log.error(e);
+ //Ignore: the IMultiDiagramEditor may not be present in headless mode
}
((IRefreshHandlerPart) SVGPostProcessor.instance).refresh(activeEditor);
}

Back to the top