X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Fsharedontology%2Fwizard%2FSharedOntologyExportPage.java;h=26675fb33cd370eea845f3348b4da0b5c88865ad;hp=f8c53be9301df964f6bf97bde4d19532a9f53789;hb=fa806341cc06b72051d5e8d709674eb9d5c2bf00;hpb=3b4bf8acfe0a6126ce44c5452ffee4dd9af119e3 diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyExportPage.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyExportPage.java index f8c53be93..26675fb33 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyExportPage.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyExportPage.java @@ -15,6 +15,7 @@ import java.io.File; import java.util.Collections; import java.util.List; +import org.eclipse.core.runtime.Platform; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.layout.GridLayoutFactory; import org.eclipse.jface.wizard.WizardPage; @@ -145,7 +146,21 @@ public class SharedOntologyExportPage extends WizardPage { validatePage(); } }); + String prop = System.getProperty("org.simantics.modeling.exportTgAndPgraph"); + if (prop != null || Platform.inDevelopmentMode()) { + Button tgAndPgraph = new Button(container, SWT.CHECK); + tgAndPgraph.setText("&Generate TG and Pgraph with export"); + tgAndPgraph.setSelection(exportModel.tgAndPgraph); + GridDataFactory.fillDefaults().grab(true, false).span(3, 1).applyTo(tgAndPgraph); + tgAndPgraph.addSelectionListener(new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + exportModel.tgAndPgraph = tgAndPgraph.getSelection(); + } + }); + } + try { initializeData(); } catch (DatabaseException e) {