Revision ff071396
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
41 | 41 |
import eu.etaxonomy.taxeditor.editor.ITaxonEditor; |
42 | 42 |
import eu.etaxonomy.taxeditor.event.EventUtility; |
43 | 43 |
import eu.etaxonomy.taxeditor.model.IDirtyMarkable; |
44 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
44 | 45 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
46 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
45 | 47 |
import eu.etaxonomy.taxeditor.view.e4.details.DetailsViewerE4; |
46 | 48 |
import eu.etaxonomy.taxeditor.workbench.WorkbenchUtility; |
47 | 49 |
import eu.etaxonomy.taxeditor.workbench.part.ISelectionElementEditingPart; |
... | ... | |
60 | 62 |
* If it is <code>true</code> then it is currently delaying a selection. |
61 | 63 |
*/ |
62 | 64 |
private boolean isInDelay; |
65 |
private boolean isEnabled; |
|
63 | 66 |
private static final Logger logger = Logger.getLogger(AbstractCdmEditorPartE4.class); |
64 | 67 |
|
65 | 68 |
/** |
... | ... | |
221 | 224 |
protected void showEmptyPage() { |
222 | 225 |
if(viewer!=null && viewer.getControl()!=null && !viewer.getControl().isDisposed() ){ |
223 | 226 |
viewer.setInput(null); |
224 |
if (!viewer.getControl().isDisposed()){ |
|
225 |
viewer.getControl().setEnabled(false); |
|
227 |
try{ |
|
228 |
if (!viewer.getControl().isDisposed()){ |
|
229 |
viewer.getControl().setEnabled(false); |
|
230 |
} |
|
231 |
}catch(SWTException e){ |
|
232 |
if (PreferencesUtil.isShowUpWidgetIsDisposedMessages() && e.getMessage().equals("Widget is disposed")){ |
|
233 |
MessagingUtils.errorDialog("Widget is disposed", |
|
234 |
null, |
|
235 |
MessagingUtils.WIDGET_IS_DISPOSED_MESSAGE, |
|
236 |
null, |
|
237 |
e, |
|
238 |
true); |
|
239 |
|
|
240 |
} |
|
226 | 241 |
} |
242 |
|
|
227 | 243 |
} |
228 | 244 |
selectionProvidingPart = null; |
229 | 245 |
if(thisPart!=null){ |
Also available in: Unified diff
catch widget is disposed exceptions