+ 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();
+ }
+ });
+ }