return textPanel;
}
protected JToolBar createOperatorPanel()
{
final JToolBar operatorButtonPanel = new JToolBar();
operatorButtonPanel.setFloatable(false);
operatorButtonPanel.setOpaque(false);
operatorButtonPanel.setLayout(new HorizontalLayout(2));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("+", Messages.getInstance().getString("FormulaEditorDialog.Operator.Add"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("-", Messages.getInstance().getString("FormulaEditorDialog.Operator.Subtract"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("*", Messages.getInstance().getString("FormulaEditorDialog.Operator.Multiply"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("/", Messages.getInstance().getString("FormulaEditorDialog.Operator.Divide"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("^", Messages.getInstance().getString("FormulaEditorDialog.Operator.Power"))));
operatorButtonPanel.add(Box.createRigidArea(new Dimension(10, 1)));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("=", Messages.getInstance().getString("FormulaEditorDialog.Operator.Equal"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("<>", Messages.getInstance().getString("FormulaEditorDialog.Operator.NotEqual"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("<", Messages.getInstance().getString("FormulaEditorDialog.Operator.Lesser"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction(">", Messages.getInstance().getString("FormulaEditorDialog.Operator.Greater"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("<=", Messages.getInstance().getString("FormulaEditorDialog.Operator.LesserEqual"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction(">=", Messages.getInstance().getString("FormulaEditorDialog.Operator.GreaterEqual"))));
operatorButtonPanel.add(Box.createRigidArea(new Dimension(10, 1)));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("%", Messages.getInstance().getString("FormulaEditorDialog.Operator.Percentage"))));
operatorButtonPanel.add(new ToolbarButton
(new InsertOperatorAction("&", Messages.getInstance().getString("FormulaEditorDialog.Operator.Concatenation"))));
operatorButtonPanel.add(Box.createRigidArea(new Dimension(10, 1)));
operatorButtonPanel.add(new ToolbarButton(selectFieldsAction));
return operatorButtonPanel;
}