Commit 601482eb authored by azara's avatar azara
Browse files

BS-14273 improve generation guidance

remove button field to make it local variable
parent ec2c00d9
...@@ -89,9 +89,6 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage ...@@ -89,9 +89,6 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
private String rootName; private String rootName;
private final Contract contract; private final Contract contract;
private final BusinessObjectModelRepositoryStore businessObjectStore; private final BusinessObjectModelRepositoryStore businessObjectStore;
private Button manuallyDefinedOperationButton;
private Button autoGeneratedOperationButton;
private EMFDataBindingContext dbc; private EMFDataBindingContext dbc;
private final GenerationOptions generationOptions; private final GenerationOptions generationOptions;
private SelectObservableValue actionObservable; private SelectObservableValue actionObservable;
...@@ -147,8 +144,8 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage ...@@ -147,8 +144,8 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
final Image img = d.getSystemImage(SWT.ICON_WARNING); final Image img = d.getSystemImage(SWT.ICON_WARNING);
reminder.setImage(img); reminder.setImage(img);
reminder.setLayoutData(GridDataFactory.fillDefaults().hint(600, SWT.DEFAULT).create()); reminder.setLayoutData(GridDataFactory.fillDefaults().hint(600, SWT.DEFAULT).create());
autoGeneratedOperationButton = new Button(composite, SWT.RADIO); final Button autoGeneratedOperationButton = new Button(composite, SWT.RADIO);
manuallyDefinedOperationButton = new Button(composite, SWT.RADIO); final Button manuallyDefinedOperationButton = new Button(composite, SWT.RADIO);
actionObservable = new SelectObservableValue(Boolean.class); actionObservable = new SelectObservableValue(Boolean.class);
actionObservable.addOption(Boolean.TRUE, SWTObservables.observeSelection(autoGeneratedOperationButton)); actionObservable.addOption(Boolean.TRUE, SWTObservables.observeSelection(autoGeneratedOperationButton));
actionObservable.addOption(Boolean.FALSE, SWTObservables.observeSelection(manuallyDefinedOperationButton)); actionObservable.addOption(Boolean.FALSE, SWTObservables.observeSelection(manuallyDefinedOperationButton));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment