callback.onFailure(reason);
}
@Override
public void onSuccess() {
callback.onSuccess(new ExtendedMenuItem[] {
new ExtendedMenuItem(Icons.editorIcons.Blank(), "Embedded Formula", new SystemPasteCommand("$$")),
new ExtendedMenuItem(Icons.editorIcons.Blank(), "Formula", new SystemPasteCommand("\\[\n\\]")),
new ExtendedMenuItem(Icons.editorIcons.Blank(), "Enumerated Equation", new SystemPasteCommand("\\begin{equation}\n \\end{equation}")),
new ExtendedMenuItem(Icons.editorIcons.Blank(), "Equation Array", new SystemPasteCommand("\\begin{align}\n \\end{align}"))
});
}
});
}