private int evaluateMethodInvocation(EvaluationContext context,
MethodDeclaration mi) {
FrameContext frame = new FrameContext();
context.push(frame);
VariableContext arguments = new VariableContext();
frame.push(arguments);
IEvaluator evaluator = (IEvaluator) Platform.getAdapterManager()
.getAdapter(mi, IEvaluator.class);
int ret = evaluator.evaluate(context);
frame = context.popup();
Object result = frame.getResult();