public Component getTabComponent() {
return getContainer();
}
public void serializeSyntaxDiagram() {
XJFileChooser fc = XJFileChooser.shared();
if(fc.displaySaveDialog(window.getJavaContainer(), "txt", "XML representation", false)) {
String[] args = new String[] { "-f", window.getFilePath(),
"-serialize", fc.getSelectedFilePath(), "-verbose"};
try {
org.antlr.works.Console.main(args);
} catch (Exception e) {
e.printStackTrace();
XJAlert.display(window.getJavaContainer(), "Serialize Syntax Diagram", e.toString());