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;
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) {