Revision fa79586c
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/TaxonomicEditorGeneralPreferences.java | ||
---|---|---|
15 | 15 |
import org.eclipse.swt.layout.GridData; |
16 | 16 |
import org.eclipse.swt.layout.RowLayout; |
17 | 17 |
import org.eclipse.swt.widgets.Composite; |
18 |
import org.eclipse.ui.internal.IPreferenceConstants; |
|
19 |
import org.eclipse.ui.internal.Workbench; |
|
18 | 20 |
|
19 | 21 |
import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4; |
20 | 22 |
|
... | ... | |
30 | 32 |
public class TaxonomicEditorGeneralPreferences extends |
31 | 33 |
FieldEditorPreferencePageE4 { |
32 | 34 |
|
35 |
private BooleanFieldEditor runInBackgroundEditor; |
|
36 |
|
|
33 | 37 |
@Override |
34 | 38 |
protected void createFieldEditors() { |
39 |
runInBackgroundEditor = new BooleanFieldEditor(IPreferenceConstants.RUN_IN_BACKGROUND, |
|
40 |
"Run long running operations in background", |
|
41 |
getFieldEditorParent()); |
|
42 |
addField(runInBackgroundEditor); |
|
43 |
|
|
35 | 44 |
addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_DEBUG_INFORMATION, |
36 |
"Show UUID and object ID in supplemental data view.",
|
|
45 |
"Show UUID and object ID in supplemental data view", |
|
37 | 46 |
getFieldEditorParent())); |
38 | 47 |
addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_ID_IN_ENTITY_SELECTION_DIAOLOG, |
39 |
"Show object id in entity selection dialogs.",
|
|
48 |
"Show object id in entity selection dialogs", |
|
40 | 49 |
getFieldEditorParent())); |
41 | 50 |
addField(new BooleanFieldEditor( |
42 | 51 |
IPreferenceKeys.SHOULD_EXPAND_SECTION_WHEN_DATA_AVAILABLE, |
... | ... | |
91 | 100 |
// PreferencesUtil.getSearchConfigurator().setMatchMode(MatchMode.valueOf(combo_MatchMode.getItem(selectionIndex))); |
92 | 101 |
// } |
93 | 102 |
// }); |
103 |
} |
|
94 | 104 |
|
95 |
|
|
96 |
|
|
97 |
|
|
105 |
@Override |
|
106 |
protected void initialize() { |
|
107 |
super.initialize(); |
|
108 |
//TODO this is a q&d hack to make the e3 preference work |
|
109 |
runInBackgroundEditor.setPreferenceStore(Workbench.getInstance().getPreferenceStore()); |
|
110 |
runInBackgroundEditor.load(); |
|
98 | 111 |
} |
99 | 112 |
|
100 | 113 |
} |
Also available in: Unified diff
ref #6321 Add preference to run long operations in background