Revision 50550411
Added by Pepe Ciardelli almost 16 years ago
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/InitializeDbPreferences.java | ||
---|---|---|
38 | 38 |
public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.initdb"; |
39 | 39 |
|
40 | 40 |
private Button btnInit; |
41 |
private Button btnTestData; |
|
41 |
// private Button btnTestData;
|
|
42 | 42 |
|
43 | 43 |
public InitializeDbPreferences() { |
44 | 44 |
super(); |
... | ... | |
64 | 64 |
if (btnInit.getSelection() == true) { |
65 | 65 |
|
66 | 66 |
// Enable test data option |
67 |
btnTestData.setEnabled(true); |
|
67 |
// btnTestData.setEnabled(true);
|
|
68 | 68 |
|
69 | 69 |
} else { |
70 | 70 |
|
71 | 71 |
// Disable test data option, set selected to "false" |
72 |
btnTestData.setEnabled(false); |
|
73 |
btnTestData.setSelection(false); |
|
72 |
// btnTestData.setEnabled(false);
|
|
73 |
// btnTestData.setSelection(false);
|
|
74 | 74 |
} |
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
}); |
78 | 78 |
|
79 |
btnTestData = new Button(container, SWT.CHECK); |
|
80 |
btnTestData.setEnabled(false); |
|
81 |
final GridData gridData = new GridData(); |
|
82 |
gridData.horizontalIndent = 20; |
|
83 |
btnTestData.setLayoutData(gridData); |
|
84 |
btnTestData.setText("Initialize with Palmweb test data"); |
|
79 |
// btnTestData = new Button(container, SWT.CHECK);
|
|
80 |
// btnTestData.setEnabled(false);
|
|
81 |
// final GridData gridData = new GridData();
|
|
82 |
// gridData.horizontalIndent = 20;
|
|
83 |
// btnTestData.setLayoutData(gridData);
|
|
84 |
// btnTestData.setText("Initialize with Palmweb test data");
|
|
85 | 85 |
|
86 | 86 |
return container; |
87 | 87 |
} |
... | ... | |
96 | 96 |
@Override |
97 | 97 |
protected void performDefaults() { |
98 | 98 |
btnInit.setSelection(false); |
99 |
btnTestData.setSelection(false); |
|
99 |
// btnTestData.setSelection(false);
|
|
100 | 100 |
super.performDefaults(); |
101 | 101 |
} |
102 | 102 |
|
103 | 103 |
@Override |
104 | 104 |
public boolean performOk() { |
105 | 105 |
boolean doReinitialize = !(btnInit.getSelection()); |
106 |
boolean doInitTestdata = btnTestData.getSelection(); |
|
106 |
// boolean doInitTestdata = btnTestData.getSelection();
|
|
107 | 107 |
|
108 | 108 |
UiUtil.getPrefStore().setValue(ITaxEditorConstants.INITIALIZED, doReinitialize); |
109 |
UiUtil.getPrefStore().setValue(ITaxEditorConstants.INITIALIZE_W_TESTDATA, doInitTestdata); |
|
109 |
// UiUtil.getPrefStore().setValue(ITaxEditorConstants.INITIALIZE_W_TESTDATA, doInitTestdata);
|
|
110 | 110 |
return true; |
111 | 111 |
} |
112 | 112 |
} |
Also available in: Unified diff
Commented out option of using test Palm Data.