moosetechnology / MooseIDE

New Tools for Moose
MIT License
8 stars 19 forks source link

Do we want a shortcut to inspect in Moose from anywhere? #953

Closed ClotildeToullec closed 7 months ago

ClotildeToullec commented 10 months ago

It would be [ Meta + Shift + M + I ] as well as in moose browsers. Difference with what we have now: it would be usable from anywhere in the system, like [ Meta + I ] for the simple inspector.

This would introduce a conflict when we are using a Moose browser that can evaluate some code (mostly the MiInspector itself) : Do we inspect the result of the selected expression or the miSelectedItem ?

NicolasAnquetil commented 10 months ago

on a "playground" (MiInspector) we inspect the result of the expression

If a MiTool is active : it should be like pressing the "inspect" button of that tool

otherwise run it on the last propagated entities

ClotildeToullec commented 10 months ago

What about from other pharo tools, like the code browser (or from any code field really) or the debugger?

NicolasAnquetil commented 10 months ago

hard to say. I don't see what we can do from the code browser or the debugger. It requires a Famix model. Could build one on the fly, but that would include what ?