Examples of ExpressionAddedUndoEntry


Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        expressionCollection.removeExpression(j);
        expressionCollection.add(expression);

        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
        return new CompoundUndoEntry(new ExpressionRemoveUndoEntry(j, expression),
                new ExpressionAddedUndoEntry(expressionCollection.getExpressions().length-1, expression));
      }
    }
    return null;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

      final RowBandingFunction newFunction = new RowBandingFunction();
      if (dialog.performEdit(newFunction))
      {
        report.getExpressions().add(newFunction);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionAddedUndoEntry(report.getExpressions().size() - 1, newFunction));
        report.notifyNodeChildAdded(function);
      }
    }
    else
    {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        {
          expressionCollection.removeExpression(j);
          expressionCollection.add(j + 1, expression);
          report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
          return new CompoundUndoEntry
              (new ExpressionRemoveUndoEntry(j, expression), new ExpressionAddedUndoEntry(j + 1, expression));
        }
      }
    }
    return null;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        }
        else if (insertResult instanceof Expression)
        {
          final Expression insertExpression = (Expression) insertResult;
          final int index = activeContext.getReportDefinition().getExpressions().indexOf(insertExpression);
          undos.add(new ExpressionAddedUndoEntry(index, insertExpression));
        }
        else if (insertResult instanceof ParameterDefinitionEntry)
        {
          final ParameterDefinitionEntry insertParam = (ParameterDefinitionEntry) insertResult;
          final ReportParameterDefinition definition = activeContext.getContextRoot().getParameterDefinition();
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        expressionCollection.removeExpression(j);
        expressionCollection.add(0, expression);

        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
        return new CompoundUndoEntry
            (new ExpressionRemoveUndoEntry(j, expression), new ExpressionAddedUndoEntry(0, expression));
      }
    }
    return null;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        expressionCollection.removeExpression(j);
        expressionCollection.add(j - 1, expression);

        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
        return new CompoundUndoEntry
            (new ExpressionRemoveUndoEntry(j, expression), new ExpressionAddedUndoEntry(j - 1, expression));
      }
    }
    return null;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

      possibleName = expression.getClass().getSimpleName() + nameCounter++;
    }
    expression.setName(possibleName);
    final int position = definition.getExpressions().size();
    activeContext.getUndo().addChange(ActionMessages.getString("AddExpressionsAction.Text"),
        new ExpressionAddedUndoEntry(position, expression));
    definition.addExpression(expression);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        {
          expressionCollection.removeExpression(j);
          expressionCollection.add(j + 1, expression);
          report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
          return new CompoundUndoEntry
              (new ExpressionRemoveUndoEntry(j, expression), new ExpressionAddedUndoEntry(j + 1, expression));
        }
      }
    }
    return null;
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

      final RowBandingFunction newFunction = new RowBandingFunction();
      if (dialog.performEdit(newFunction))
      {
        report.getExpressions().add(newFunction);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionAddedUndoEntry(report.getExpressions().size() - 1, newFunction));
        report.notifyNodeChildAdded(function);
      }
    }
    else
    {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.ExpressionAddedUndoEntry

        expressionCollection.removeExpression(j);
        expressionCollection.add(expression);

        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, expression);
        return new CompoundUndoEntry(new ExpressionRemoveUndoEntry(j, expression),
                new ExpressionAddedUndoEntry(expressionCollection.getExpressions().length-1, expression));
      }
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.