]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/SharedOntologyExportPage.java
Option for exporting tg and pgraph with sharedlibrary
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / sharedontology / wizard / SharedOntologyExportPage.java
index f8c53be9301df964f6bf97bde4d19532a9f53789..26675fb33cd370eea845f3348b4da0b5c88865ad 100644 (file)
@@ -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) {