use of com.google.security.zynamics.binnavi.ZyGraph.Menus.Actions.CChangeFunctionNameAction in project binnavi by google.
the class CCodeNodeMenu method addFunctionOperandMenu.
private void addFunctionOperandMenu(final CGraphModel model, final INaviReplacement replacement) {
final INaviFunction function = ((CFunctionReplacement) replacement).getFunction();
final INaviView view = function.getModule().getContent().getViewContainer().getView(function);
add(new CChangeFunctionNameAction(model.getParent(), view));
addSeparator();
}
use of com.google.security.zynamics.binnavi.ZyGraph.Menus.Actions.CChangeFunctionNameAction in project binnavi by google.
the class CCodeNodeMenu method addRenameFunctionMenu.
private void addRenameFunctionMenu(final INaviCodeNode codeNode, final CGraphModel model) {
try {
final INaviFunction function = codeNode.getParentFunction();
final INaviView view = function.getModule().getContent().getViewContainer().getView(function);
add(new CChangeFunctionNameAction(model.getParent(), view));
} catch (final MaybeNullException e) {
// no parent function no menu entry we are ok with this.
}
}
Aggregations