Revision 2a62fead
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
if(partObject instanceof IPartContentHasFactualData){ |
133 |
viewer.getControl().setEnabled(true); |
|
133 |
if (!viewer.getControl().isDisposed()){ |
|
134 |
viewer.getControl().setEnabled(true); |
|
135 |
} |
|
134 | 136 |
IStructuredSelection structuredSelection = createSelection(selection); |
135 | 137 |
if(structuredSelection==null || structuredSelection.isEmpty()){ |
136 | 138 |
showEmptyPage(); |
Also available in: Unified diff
avoid widgetIsDisposed exceptions by check of control is disposed