Revision 01506970
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/SetSecundumForSubtreeConfigurationDialog.java | ||
---|---|---|
107 | 107 |
*/ |
108 | 108 |
public static boolean openConfirmWithConfigurator(SetSecundumForSubtreeConfigurator configurator, Shell parent, String title, String message) { |
109 | 109 |
|
110 |
SetSecundumForSubtreeConfigurationDialog dialog = new SetSecundumForSubtreeConfigurationDialog(parent, title, getDefaultImage(), message, QUESTION, getButtonLabels(QUESTION), 0, configurator);
|
|
110 |
SetSecundumForSubtreeConfigurationDialog dialog = new SetSecundumForSubtreeConfigurationDialog(parent, title, getDefaultImage(), message, CONFIRM, getButtonLabels(CONFIRM), 0, configurator);
|
|
111 | 111 |
|
112 | 112 |
return dialog.open() == 0; |
113 | 113 |
} |
... | ... | |
116 | 116 |
protected static String[] getButtonLabels(int kind) { |
117 | 117 |
String[] dialogButtonLabels; |
118 | 118 |
switch (kind) { |
119 |
case ERROR: |
|
120 |
case INFORMATION: |
|
119 |
|
|
121 | 120 |
case WARNING: { |
122 | 121 |
dialogButtonLabels = new String[] { IDialogConstants.OK_LABEL }; |
123 | 122 |
break; |
... | ... | |
157 | 156 |
if(reference!=null){ |
158 | 157 |
this.configurator.setNewSecundum(reference); |
159 | 158 |
textReference.setText(reference.getTitleCache()); |
160 |
// this. |
|
159 |
|
|
161 | 160 |
} |
162 | 161 |
|
163 | 162 |
} |
... | ... | |
166 | 165 |
textReference.setText(""); |
167 | 166 |
this.configurator.setNewSecundum(null); |
168 | 167 |
} |
168 |
else{ |
|
169 |
reference = null; |
|
170 |
textReference.setText(""); |
|
171 |
this.configurator.setNewSecundum(null); |
|
172 |
} |
|
169 | 173 |
|
170 | 174 |
} |
171 | 175 |
|
Also available in: Unified diff
minor