public void destroy(Map<String, Object> properties) {
for (SuiteUi ui : managedUis.values())
- if (!ui.isDisposed())
- ui.dispose();
+ if (!ui.isDisposed()) {
+ ui.getDisplay().syncExec(() -> ui.dispose());
+ }
if (log.isDebugEnabled())
log.info("Argeo Suite App stopped");
if (types.size() == 0)
throw new IllegalArgumentException("No type found for " + context + " (" + listTypes(context) + ")");
String type = types.iterator().next();
- // FIXME deals with multiple types
if (!byType.containsKey(type))
throw new IllegalArgumentException("No component found for " + context + " with type " + type);
return byType.get(type).get();