if (!hasGWT(editor)) {
return null;
}
// check "super"
{
JavaInfo javaInfo =
super.create(
editor,
invocation,
methodBinding,
arguments,
expressionInfo,
argumentInfos,
javaInfoResolver);
if (javaInfo != null) {
return javaInfo;
}
}
// RootPanel.get()
if (AstNodeUtils.isMethodInvocation(
invocation,
"com.google.gwt.user.client.ui.RootPanel",
new String[]{"get()", "get(java.lang.String)"})) {
JavaInfo rootPanel = javaInfoResolver.getJavaInfo(invocation);
if (rootPanel == null) {
rootPanel =
JavaInfoUtils.createJavaInfo(
editor,
getClass(editor, methodBinding.getReturnType()),
new RootPanelCreationSupport(invocation));
}
return rootPanel;
}
// RootLayoutPanel.get()
if (AstNodeUtils.isMethodInvocation(
invocation,
"com.google.gwt.user.client.ui.RootLayoutPanel",
"get()")) {
JavaInfo rootPanel = javaInfoResolver.getJavaInfo(invocation);
if (rootPanel == null) {
rootPanel =
JavaInfoUtils.createJavaInfo(
editor,
getClass(editor, methodBinding.getReturnType()),