get generated menu entries and actions

Parameters

 expr - anything; expression to test

Description

 • The Test[GetGeneratedMenuAndAction] command returns a representation of the context-sensitive menu and each respective applied action that would be generated by the expression expr.

Examples

 > $\mathrm{with}\left(\mathrm{ContextMenu}\right):$
 > $\mathrm{with}\left(\mathrm{ContextMenu}\left[\mathrm{Test}\right]\right):$
 > $\mathrm{GetGeneratedMenuAndAction}\left(1.0\right)$
 $\left[\left[{"Apply a Command"}{,}{"x -> ContextMenu:-Interactive:-Apply\left(op\left(x\right)\right)"}\right]{,}\left[{"Assign to a Name"}{,}{"x -> ContextMenu:-Interactive:-Assign\left(op\left(x\right)\right)"}\right]{,}\left[{"Identify"}{,}{"identify\left( %EXPR \right)"}\right]{,}\left[{"Plots"}{,}\left[\left[{"Plot Builder"}{,}{"x -> InteractivePlotBuilder:-BuildPlot\left(op\left(x\right),\left(\text{'}contextmenu\text{'}\right) = true\right)"}\right]\right]\right]{,}{"|"}{,}\left[{"Conversions"}{,}\left[\left[{"Continued Fraction"}{,}{"convert\left( evalf\left( %EXPR \right), \text{'}confrac\text{'}\right)"}\right]{,}\left[{"Exact Rational"}{,}{"convert\left( %EXPR, \text{'}rational\text{'}, \text{'}exact\text{'} \right)"}\right]{,}\left[{"Rational"}{,}{"convert\left( %EXPR, \text{'}rational\text{'} \right)"}\right]\right]\right]{,}\left[{"Integer Functions"}{,}\left[\left[{"Ceiling"}{,}{"ceil\left( %EXPR \right)"}\right]{,}\left[{"Floor"}{,}{"floor\left( %EXPR \right)"}\right]{,}\left[{"Fractional Part"}{,}{"frac\left( %EXPR \right)"}\right]{,}\left[{"Integer Base 10 Log"}{,}{"ilog10\left( %EXPR \right)"}\right]{,}\left[{"Integer Base 2 Log"}{,}{"ilog2\left( %EXPR \right)"}\right]{,}\left[{"Integer Natural Log"}{,}{"ilog\left( %EXPR \right)"}\right]{,}\left[{"Round"}{,}{"round\left( %EXPR \right)"}\right]{,}\left[{"Truncate"}{,}{"trunc\left( %EXPR \right)"}\right]\right]\right]{,}\left[{"Units"}{,}\left[\left[{"Affix Unit"}{,}\left[\left[{"Atomic"}{,}\left[\left[{"bohr"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron mass"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron per second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron*bohr"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron*bohr^2/volt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron/bohr^2"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron^2/hartree"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"electron_mass*bohr/second^2"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree per second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree/bohr"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree/tesla"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree/tesla*bohr^3"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"hartree/tesla^2"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"permittivity"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"planck"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"tesla"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"volt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"volt*second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"volt*second^2/electron"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"volt/bohr"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]{,}\left[{"CGS"}{,}\left[\left[{"barye"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"centimeter"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"dyne"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"erg"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"erg/second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"g"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"gram"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"kyne"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"radian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"steradian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]{,}\left[{"EMU"}{,}\left[\left[{"abampere"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abcoulomb"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abfarad"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abhenry"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abohm"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"absiemens"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abtesla"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abvolt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"abweber"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"barye"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"centimeter"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"dyne"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"erg"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"erg/second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"g"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"gram"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"joule"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"kilogram"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"kyne"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"meter"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"newton"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"pascal"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"radian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"steradian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"watt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]{,}\left[{"FPS"}{,}\left[\left[{"foot"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"horsepower"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"pound"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"poundal"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"poundal*foot"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"poundforce/inch^2"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"radian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"steradian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]{,}\left[{"MTS"}{,}\left[\left[{"kilojoule"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"kilowatt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"meter"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"pieze"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"radian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"steradian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"sthene"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"tonne"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]{,}\left[{"SI"}{,}\left[\left[{"coulomb"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"farad"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"henry"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"joule"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"kilogram"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"lumen"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"lux"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"meter"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"newton"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"ohm"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"pascal"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"radian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"second"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"siemens"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"steradian"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"tesla"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"volt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"watt"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]{,}\left[{"weber"}{,}{"%EXPR * Unit\left(%ARG1\right)"}\right]\right]\right]\right]\right]\right]\right]{,}{"|"}{,}\left[{"Show as Continued Fraction Expansion"}{,}{"NumberTheory:-ContinuedFraction\left(%EXPR\right)"}\right]\right]$ (1)

Compatibility