Revision fbd932cc
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/PublishFlagPreference.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import org.eclipse.swt.SWT; |
12 | 12 |
import org.eclipse.swt.custom.CLabel; |
13 |
import org.eclipse.swt.events.SelectionEvent; |
|
14 |
import org.eclipse.swt.events.SelectionListener; |
|
13 | 15 |
import org.eclipse.swt.layout.GridData; |
14 | 16 |
import org.eclipse.swt.layout.GridLayout; |
15 | 17 |
import org.eclipse.swt.widgets.Combo; |
... | ... | |
67 | 69 |
gridData.horizontalIndent = 5; |
68 | 70 |
|
69 | 71 |
publishFlagBehaviour = new Combo(composite, SWT.BORDER| SWT.READ_ONLY); |
72 |
publishFlagBehaviour.addSelectionListener(new SelectionListener() { |
|
73 |
|
|
74 |
@Override |
|
75 |
public void widgetSelected(SelectionEvent e) { |
|
76 |
setApply(true); |
|
77 |
} |
|
78 |
|
|
79 |
@Override |
|
80 |
public void widgetDefaultSelected(SelectionEvent e) { |
|
81 |
// TODO Auto-generated method stub |
|
82 |
|
|
83 |
} |
|
84 |
}); |
|
70 | 85 |
publishFlagBehaviour.setLayoutData(gridData); |
71 | 86 |
|
72 | 87 |
for(PublishEnum display: PublishEnum.values()){ |
Also available in: Unified diff
ref #7849: disable apply button until something was changed in preference page