Hi,
is it possible to use the command stack in the viewer .
i developed many features in the modeler part, and i heavily used the commandStack because i liked the flexibility it provides, and the commandInterceptors(by the way - great work!!)
i was wondering why the command stack is not available in viewer, and is it ok to inject it manually in the viewer and use its abilities ??
why command stack should be only for editing?
command stack is generic enough to run any action, doesn’t matter if it is editing or not, at least that’s my perspective
anyway i added it to the extention module and it works
I see what you mean. The commandStack is analog to the eventBus and should be in the core, so its available for everyone. Now there is a huge dependency on modeling for a couple of modules, without defining that dependency in the depends section. Modeling makes no sense to me. I mean what is modeling for? Creating things, moving things, connecting things? It’s like a collection of that things, and should only define a collection without logic in it. Maybe I want a Viewer, who can bind things, but I have to include modeling, so it is a Modeler now? However, revertable actions should be in the core, not in modeling.
We are happy to file you in on how our toolkits work (and why they work the way they work). Please open a separate topic and clearly make your case regarding
your use case
what you’re trying to achieve
what did not work (and how you expected it to work)
What exactly would you like to achieve? What would you like to bind? Let us continue the discussion in a new issue.