Revision 2a62fead
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/e4/CdmDataSourceViewPartE4.java | ||
---|---|---|
241 | 241 |
/** {@inheritDoc} */ |
242 | 242 |
@Focus |
243 | 243 |
public void setFocus() { |
244 |
viewer.getControl().setFocus(); |
|
244 |
if (viewer.getControl() != null && !viewer.getControl().isDisposed()) { |
|
245 |
viewer.getControl().setFocus(); |
|
246 |
} |
|
245 | 247 |
} |
246 | 248 |
|
247 | 249 |
//FIXME E4 migrate |
Also available in: Unified diff
avoid widgetIsDisposed exceptions by check of control is disposed