Package org.pentaho.reporting.libraries.docbundle

Examples of org.pentaho.reporting.libraries.docbundle.DocumentBundle


  public static MasterReport loadReport(final Object selectedFile, final ResourceManager resourceManager)
      throws ResourceException, IOException
  {
    final Resource directly = resourceManager.createDirectly(selectedFile, MasterReport.class);
    final MasterReport resource = (MasterReport) directly.getResource();
    final DocumentBundle bundle = resource.getBundle();
    if (bundle == null)
    {
      // Ok, that should not happen if we work with the engine's parsers, but better safe than sorry.
      final MemoryDocumentBundle documentBundle = new MemoryDocumentBundle(resource.getContentBase());
      documentBundle.getWriteableDocumentMetaData().setBundleType(ClassicEngineBoot.BUNDLE_TYPE);
View Full Code Here


    SwingUtil.centerDialogInParent(dialog);
    try
    {
      final MasterReport report = activeContext.getMasterReportElement();
      final DocumentBundle bundle = report.getBundle();
      final DocumentMetaData oldMetaData = (DocumentMetaData) bundle.getMetaData().clone();
      final DocumentMetaData result = dialog.performEdit(oldMetaData,
          report.getResourceManager(),
          report.getDefinitionSource());

      if (result == null)
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.docbundle.DocumentBundle

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.