package org.stringtemplate.v4.gui;
import javax.swing.*;
import java.awt.*;
public class STViewFrame extends JFrame {
public STViewFrame() {
initComponents();
}
private void initComponents() {
toolBar1 = new JToolBar();
treeContentSplitPane = new JSplitPane();
treeAttributesSplitPane = new JSplitPane();
treeScrollPane = new JScrollPane();
tree = new JTree();
attributeScrollPane = new JScrollPane();
attributes = new JTree();
outputTemplateSplitPane = new JSplitPane();
scrollPane7 = new JScrollPane();
output = new JTextPane();
templateBytecodeTraceTabPanel = new JTabbedPane();
panel1 = new JPanel();
scrollPane3 = new JScrollPane();
template = new JTextPane();
scrollPane2 = new JScrollPane();
ast = new JTree();
scrollPane15 = new JScrollPane();
bytecode = new JTextPane();
scrollPane1 = new JScrollPane();
trace = new JTextPane();
errorScrollPane = new JScrollPane();
errorList = new JList();
Container contentPane = getContentPane();
contentPane.setLayout(new GridBagLayout());
((GridBagLayout)contentPane.getLayout()).columnWidths = new int[] {0, 0};
((GridBagLayout)contentPane.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
((GridBagLayout)contentPane.getLayout()).columnWeights = new double[] {1.0, 1.0E-4};
((GridBagLayout)contentPane.getLayout()).rowWeights = new double[] {0.0, 1.0, 0.0, 1.0E-4};
contentPane.add(toolBar1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
{
treeContentSplitPane.setResizeWeight(0.25);
{
treeAttributesSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
treeAttributesSplitPane.setResizeWeight(0.7);
{
treeScrollPane.setViewportView(tree);
}
treeAttributesSplitPane.setTopComponent(treeScrollPane);
{
attributeScrollPane.setViewportView(attributes);
}
treeAttributesSplitPane.setBottomComponent(attributeScrollPane);
}
treeContentSplitPane.setLeftComponent(treeAttributesSplitPane);
{
outputTemplateSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
outputTemplateSplitPane.setResizeWeight(0.7);
{
scrollPane7.setViewportView(output);
}
outputTemplateSplitPane.setTopComponent(scrollPane7);
{
{
panel1.setLayout(new BoxLayout(panel1, BoxLayout.X_AXIS));
{
scrollPane3.setViewportView(template);
}
panel1.add(scrollPane3);
{
scrollPane2.setViewportView(ast);
}
panel1.add(scrollPane2);
}
templateBytecodeTraceTabPanel.addTab("template", panel1);
{
scrollPane15.setViewportView(bytecode);
}
templateBytecodeTraceTabPanel.addTab("bytecode", scrollPane15);
{
scrollPane1.setViewportView(trace);
}
templateBytecodeTraceTabPanel.addTab("trace", scrollPane1);
}
outputTemplateSplitPane.setBottomComponent(templateBytecodeTraceTabPanel);
}
treeContentSplitPane.setRightComponent(outputTemplateSplitPane);
}
contentPane.add(treeContentSplitPane, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
{
errorScrollPane.setViewportView(errorList);
}
contentPane.add(errorScrollPane, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(0, 0, 0, 0), 0, 0));
pack();
setLocationRelativeTo(getOwner());
}
private JToolBar toolBar1;
public JSplitPane treeContentSplitPane;
public JSplitPane treeAttributesSplitPane;
public JScrollPane treeScrollPane;
protected JTree tree;
protected JScrollPane attributeScrollPane;
protected JTree attributes;
public JSplitPane outputTemplateSplitPane;
protected JScrollPane scrollPane7;
public JTextPane output;
public JTabbedPane templateBytecodeTraceTabPanel;
private JPanel panel1;
private JScrollPane scrollPane3;
public JTextPane template;
private JScrollPane scrollPane2;
public JTree ast;
protected JScrollPane scrollPane15;
protected JTextPane bytecode;
private JScrollPane scrollPane1;
public JTextPane trace;
public JScrollPane errorScrollPane;
protected JList errorList;
}