use of com.google.security.zynamics.binnavi.ZyGraph.Menus.Actions.COpenOriginalFunction in project binnavi by google.
the class CCodeNodeMenu method addOpenOriginalFunctionMenu.
private void addOpenOriginalFunctionMenu(final CGraphModel model, final NaviNode node) {
final INaviCodeNode rawNode = (INaviCodeNode) node.getRawNode();
try {
final INaviFunction nodeFunction = rawNode.getParentFunction();
final INaviFunction viewFunction = model.getViewContainer().getFunction(model.getGraph().getRawView());
if (nodeFunction != viewFunction) {
add(CActionProxy.proxy(new COpenOriginalFunction(model.getParent(), model.getViewContainer(), nodeFunction)));
}
} catch (final MaybeNullException e) {
// If there is no original function then we can not open it.
}
}
Aggregations