MApplication application) {
IEclipseContext context = application.getContext();
EPartService partService = context.get(EPartService.class);
- Collection<MPart> dirtyParts = partService.getDirtyParts();
- if(!dirtyParts.isEmpty()){
- partService.saveAll(true);
+ try {
+ Collection<MPart> dirtyParts = partService.getDirtyParts();
+ if(!dirtyParts.isEmpty()){
+ partService.saveAll(true);
+ }
+ } catch (IllegalStateException e) {
+ //FIXME E4
+ //exception is ignored as this is a temporary fix until full e4 migration
}
}