Is there anything that goes the other way? That is, given a method foo, show me all call stacks leading down to foo?
My answer would be no, unless the other SlickEdit members know of such feature.
Is there a way I can attach that call to my normal editing right-click menu so that I can get the call tree for the method I'm currently in?
Not right off hand, although, by looking at the command named
cb_calltree - the command that gets executed when you select "Show Call Tree..." - it looks like it could be done if you are willing to invest some time to create a new command based on
cb_calltree. The only change that should be needed is, instead of getting the current context information from the class browser view, you get the info from the current context of your editor window.
For instance, go take a look at
cb_calltree command by running
fp cb_calltree. It's a very short function, and you'll immediately notice the following lines:
struct VS_TAG_BROWSE_INFO cm;
f.ctl_class_tree_view.get_user_tag_info(currIndex, cm, false);
Make a copy of cbrowser.e and save it where you have write permission. Make a copy of cb_calltree and name it something like
cb_calltree_rob. Place the code of this function somewhere within cbrowser.e. Replace the above two lines inside
cb_calltree_rob with the following lines:
struct VS_TAG_BROWSE_INFO cm;
int context_id = tag_current_context();
tag_get_context_info(context_id, cm);
and load the module (F12 by default) and call this new function you just created from the SlickEdit command line (press ESC) while the cursor is within some function. It should give you the call tree of the function you're in.
The only thing you need to do now is bind this command to the right-click menu, and you're done. :-)