@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == paramBtn) {
			ParameterManager pm = new ParameterManager(params);
			pm.setVisible(true);
			params = pm.getParams();
		} else if (e.getSource() == cancelBtn) {
			tools.setFormula(formula);
			ok = false;
			setVisible(false);
		} else if (e.getSource() == okBtn) {
			formula = tools.getFormula();
			title = titleField.getText();
			BlockEditor.this.setTitle(title);

			ok = true;
			setVisible(false);
		} else {
			title = titleField.getText();
			BlockEditor.this.setTitle(title);
		}
	}