Revision b016eb1b
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/LifeCycleManager.java | ||
---|---|---|
79 | 79 |
MApplication application) { |
80 | 80 |
IEclipseContext context = application.getContext(); |
81 | 81 |
EPartService partService = context.get(EPartService.class); |
82 |
Collection<MPart> dirtyParts = partService.getDirtyParts(); |
|
83 |
if(!dirtyParts.isEmpty()){ |
|
84 |
partService.saveAll(true); |
|
82 |
try { |
|
83 |
Collection<MPart> dirtyParts = partService.getDirtyParts(); |
|
84 |
if(!dirtyParts.isEmpty()){ |
|
85 |
partService.saveAll(true); |
|
86 |
} |
|
87 |
} catch (IllegalStateException e) { |
|
88 |
//FIXME E4 |
|
89 |
//exception is ignored as this is a temporary fix until full e4 migration |
|
85 | 90 |
} |
86 | 91 |
} |
87 | 92 |
|
Also available in: Unified diff
ref #6763 Catch potential exception