Package org.pentaho.reporting.designer.core.util.undo

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


      {
        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


      {
        collection.remove(j);
        collection.add(j - 1, dataFactory);

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

      if (element == entry)
      {
        dpd.removeParameterDefinition(i);
        dpd.addParameterDefinition(i - 1, entry);
        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, entry);
        return new CompoundUndoEntry
            (new ParameterEditUndoEntry(i, entry, null), new ParameterEditUndoEntry(i - 1, null, entry));
      }
    }
    return null;
  }
View Full Code Here

      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.ALIGNMENT, ElementAlignment.CENTER));
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.CENTER);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("TextAlignmentCenterAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      undos.add(entry);
      element.setAttribute(ReportDesignerParserModule.NAMESPACE,
          ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, value);
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("HideElementAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      undos.add(StyleEditUndoEntry.createConditional(visualElement, ElementStyleKeys.PAINT, color));
      styleSheet.setStyleProperty(ElementStyleKeys.PAINT, color);
      visualElement.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("ApplyFontColorAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      }
      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.KEEP_ASPECT_RATIO, value));
      styleSheet.setStyleProperty(ElementStyleKeys.KEEP_ASPECT_RATIO, value);
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("KeepAspectRatioAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      final ReportAttributeMap newAttributes = visualElement.getAttributes();
      undos.add(new MorphUndoEntry(visualElement.getObjectID(), oldAttributes, newAttributes));
    }

    getActiveContext().getUndo().addChange(ActionMessages.getString("MorphAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      undos.add(StyleEditUndoEntry.createConditional(visualElement, TextStyleKeys.FONTSIZE, fontSize));
      styleSheet.setStyleProperty(TextStyleKeys.FONTSIZE, fontSize);
      visualElement.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("ApplyFontSizeAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.ALIGNMENT, ElementAlignment.RIGHT));
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.RIGHT);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("TextAlignmentRightAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.util.undo.CompoundUndoEntry

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.