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

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


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


        element.setAttribute(metaData.getNameSpace(), metaData.getName(), value);
        changed = true;
      }
    }
    undo.addChange(Messages.getString("AttributeTableModel.UndoName"),
        new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));

    return changed;
  }
View Full Code Here

          oldValue, type);
      undos.add(entry);
      element.setAttribute(SimpleBarcodesAttributeNames.NAMESPACE, SimpleBarcodesAttributeNames.TYPE_ATTRIBUTE, type);
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("BarcodeTypeAction.UndoName", type),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
View Full Code Here

        element.setAttribute(metaData.getNameSpace(), metaData.getName(), value);
        changed = true;
      }
    }
    undo.addChange(Messages.getString("VisualAttributeTableModel.UndoName"),
        new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));

    return changed;
  }
View Full Code Here

              (element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, null));
          element.setAttributeExpression(metaData.getNameSpace(), metaData.getName(), null);
        }
      }
      undo.addChange(Messages.getString("VisualAttributeTableModel.UndoNameExpression"),
          new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));

    }
    return changed;
  }
View Full Code Here

            editResult.getOriginalPrimaryDataSource(), editResult.getPrimaryDataSource()));
        undoEntries.add(new AttributeEditUndoEntry(chartElement.getObjectID(),
            LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.SECONDARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE,
            editResult.getOriginalSecondaryDataSource(), editResult.getSecondaryDataSource()));

        final CompoundUndoEntry ue = new CompoundUndoEntry(undoEntries.toArray(new UndoEntry[undoEntries.size()]));
        activeContext.getUndo().addChange(Messages.getInstance().getString("EditLegacyChartAction.Undo"), ue);
        ue.redo(context.getActiveContext());
      }
    }
    catch (CloneNotSupportedException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
View Full Code Here

        {
          undos.add(new DataSourceEditUndoEntry(i, dataFactoryWrapper.getOriginalDataFactory(), dataFactoryWrapper.getEditedDataFactory()));
        }
      }

      final CompoundUndoEntry undoEntry = new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()]));
      undoEntry.redo(activeContext);
      activeContext.getUndo().addChange(ActionMessages.getString("EditParametersAction.MasterReport.Text"), undoEntry);
    }
  }
View Full Code Here

        final PasteFormatUndoEntry undoEntry =
            new PasteFormatUndoEntry(element.getObjectID(), oldAttributes, newAttributes, oldStyleData, newStyleData);
        undos.add(undoEntry);
      }
      getActiveContext().getUndo().addChange(ActionMessages.getString("PasteFormatAction.UndoName"),
          new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
    }
    catch (final UnsupportedFlavorException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
    }
View Full Code Here

    }
    else
    {
      final UndoEntry[] undoEntries = undos.toArray(new UndoEntry[undos.size()]);
      activeContext.getUndo().addChange(ActionMessages.getString("AbstractLayerAction.UndoName"),
          new CompoundUndoEntry(undoEntries));
    }
    // re-select the elements (moving them causes them to be unselected)
    activeContext.getSelectionModel().setSelectedElements(selectedElements);
  }
View Full Code Here

            editResult.getOriginalPrimaryDataSource(), editResult.getPrimaryDataSource()));
        undoEntries.add(new AttributeEditUndoEntry(chartElement.getObjectID(),
            LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.SECONDARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE,
            editResult.getOriginalSecondaryDataSource(), editResult.getSecondaryDataSource()));

        final CompoundUndoEntry ue = new CompoundUndoEntry(undoEntries.toArray(new UndoEntry[undoEntries.size()]));
        activeContext.getUndo().addChange(ue);
        ue.redo(context.getActiveContext());
      }
    }
    catch (CloneNotSupportedException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
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.