eclipse-capella / capella

Open Source Solution for Model-Based Systems Engineering
https://mbse-capella.org
Eclipse Public License 2.0
232 stars 96 forks source link

Loading model queries should not depend on UI #967

Open eclipse-capella-bot opened 3 years ago

eclipse-capella-bot commented 3 years ago

Some model queries are in sirius.analysis. When such a query is loaded by the query manager via extensions, the analysis plugin is loaded, and this does fail if we're running headless.

🆔 ECLIPSE-554487 / POLARSYS-2641 👷 felix.dorner 📅 2019-10-17 🔎 1.4.0

eclipse-capella-bot commented 3 years ago

felix.dorner commented on 2019-10-17

Philippe, do you know why these queries are in sirius.analysis and not 'somewhere else'? We should not put queries in any plugin that might depend on UI

felix.dorner commented on 2019-10-17

Additionally, when a query from plugin A is executed, plugin A is loaded, but also ALL other plugins that contribute queries, which should be avoided. Plugin loading should be deferred until query is actually executed.