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=2b193094e2837dae0fa64993ca6dc36da9a7b403;hp=90a155231e279dce3026c0c30126df579ac28ad1;hb=9214a600c9401b06057fc2c10ea86a0ce0218d87;hpb=7bc4de702166fe57dd45b7f161847e6d21d83bb4 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 90a155231..2b193094e 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 @@ -30,6 +30,7 @@ import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; @@ -162,16 +163,20 @@ public class SharedOntologyExportPage extends WizardPage { }); 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(); - } - }); + Button generateTg = new Button(container, SWT.CHECK); + generateTg.setText("&Generate transferable graph"); + generateTg.setSelection(exportModel.writeTransferableGraph); + GridDataFactory.fillDefaults().grab(true, false).span(3, 1).applyTo(generateTg); + generateTg.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { + exportModel.writeTransferableGraph = generateTg.getSelection(); + })); + Button dumpStructure = new Button(container, SWT.CHECK); + dumpStructure.setText("&Dump textual shared library structure"); + dumpStructure.setSelection(exportModel.dumpStructure); + GridDataFactory.fillDefaults().grab(true, false).span(3, 1).applyTo(dumpStructure); + dumpStructure.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { + exportModel.dumpStructure = dumpStructure.getSelection(); + })); } try {