Package org.pentaho.openformula.ui.model2

Examples of org.pentaho.openformula.ui.model2.FormulaDocument


  public void testCatchAllParameterReplacementSoftPart()
  {
    final FormulaDocument doc = new FormulaDocument();
    doc.setText("=MESSAGE(\"Test\"; 1 ; 2)");
    final FunctionInformation fn = doc.getFunctionForPosition(1);

    final ParameterUpdateEvent event = new ParameterUpdateEvent(this, 2, "[Some parameter]", true);
    final FunctionParameterEditHelper.EditResult editResult =
        FunctionParameterEditHelper.buildFormulaText(event, fn, doc.getText());
View Full Code Here


  public void testCatchAllParameterReplacementSoftPart2()
  {
    final FormulaDocument doc = new FormulaDocument();
    doc.setText("=MESSAGE(\"Test\"; 1 ; 2)");
    final FunctionInformation fn = doc.getFunctionForPosition(1);

    final ParameterUpdateEvent event = new ParameterUpdateEvent(this, 3, "[Some parameter]", true);
    final FunctionParameterEditHelper.EditResult editResult =
        FunctionParameterEditHelper.buildFormulaText(event, fn, doc.getText());
View Full Code Here

  public void testOptimizeCatchAll()
  {
    final FormulaDocument doc = new FormulaDocument();
    doc.setText("=MESSAGE(\"Test\";;;;)");
    final FunctionInformation fn = doc.getFunctionForPosition(1);

    final ParameterUpdateEvent event = new ParameterUpdateEvent(this, 3, "[Some parameter]", true);
    String text = doc.getText();
    final FunctionParameterEditHelper.EditResult editResult =
        FunctionParameterEditHelper.buildFormulaText(event, fn, text);
View Full Code Here

  public void testOptimizeCatchAll2()
  {
    final FormulaDocument doc = new FormulaDocument();
    doc.setText("=MESSAGE(\"Test\";;;;;;)");
    final FunctionInformation fn = doc.getFunctionForPosition(1);

    final ParameterUpdateEvent event = new ParameterUpdateEvent(this, 3, "[Some parameter]", true);
    String text = doc.getText();
    final FunctionParameterEditHelper.EditResult editResult =
        FunctionParameterEditHelper.buildFormulaText(event, fn, text);
View Full Code Here

TOP

Related Classes of org.pentaho.openformula.ui.model2.FormulaDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.