Package org.pentaho.reporting.designer.core.editor

Examples of org.pentaho.reporting.designer.core.editor.ReportDocumentContext


    if (designerContext == null)
    {
      return new FieldDefinition[0];
    }

    final ReportDocumentContext reportContext = designerContext.getActiveContext();
    if (reportContext == null)
    {
      return new FieldDefinition[0];
    }
View Full Code Here


    if (designerContext == null)
    {
      return new String[0];
    }

    final ReportDocumentContext reportContext = designerContext.getActiveContext();
    if (reportContext == null)
    {
      return new String[0];
    }

    return ModelUtility.getGroups(reportContext.getReportDefinition());
  }
View Full Code Here

      config = getDefaultData(context);
    }

    urlModel.removeAllElements();
    final String[] urls;
    final ReportDocumentContext reportRenderContext = context.getActiveContext();
    if (reportRenderContext == null)
    {
      urls = context.getGlobalAuthenticationStore().getKnownURLs();
    }
    else
    {
      urls = reportRenderContext.getAuthenticationStore().getKnownURLs();
    }
    for (int i = 0; i < urls.length; i++)
    {
      urlModel.addElement(urls[i]);
    }
View Full Code Here

        final DrillDownParameter param = originalParams[i];
        param.setType(DrillDownParameter.Type.MANUAL);
        entries.put (param.getName(), param);
      }

      final ReportDocumentContext activeContext = getReportDesignerContext().getActiveContext();
      final MasterReport masterReportElement = activeContext.getContextRoot();
      final ReportParameterDefinition reportParams = masterReportElement.getParameterDefinition();
      final ParameterDefinitionEntry[] parameterDefinitionEntries = reportParams.getParameterDefinitions();

      for (int i = 0; i < parameterDefinitionEntries.length; i++)
      {
View Full Code Here

      list.clearSelection();
      list.repaint();
    }
    else
    {
      final ReportDocumentContext activeContext = getActiveContext();
      if (activeContext != null)
      {
        activeContext.getSelectionModel().clearSelection();
      }
    }
  }
View Full Code Here

    {
      if (reportDesignerContext == null)
      {
        return resourceBundleFactory;
      }
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      if (activeContext == null)
      {
        return resourceBundleFactory;
      }
      final MasterReport report = activeContext.getContextRoot();
      return MasterReport.computeAndInitResourceBundleFactory
          (report.getResourceBundleFactory(), report.getReportEnvironment());
    }
View Full Code Here

    {
      if (reportDesignerContext == null)
      {
        return ClassicEngineBoot.getInstance().getGlobalConfig();
      }
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      if (activeContext == null)
      {
        return ClassicEngineBoot.getInstance().getGlobalConfig();
      }
      return activeContext.getContextRoot().getConfiguration();
    }
View Full Code Here

    {
      if (reportDesignerContext == null)
      {
        return null;
      }
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      if (activeContext == null)
      {
        return null;
      }
      return activeContext.getContextRoot().getContentBase();
    }
View Full Code Here

    {
      if (reportDesignerContext == null)
      {
        return defaultDocumentMetaData;
      }
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      if (activeContext == null)
      {
        return defaultDocumentMetaData;
      }
      return activeContext.getContextRoot().getBundle().getMetaData();
    }
View Full Code Here

    {
      if (reportDesignerContext == null)
      {
        return defaultEnvironment;
      }
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      if (activeContext == null)
      {
        return defaultEnvironment;
      }
      return activeContext.getContextRoot().getReportEnvironment();
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.ReportDocumentContext

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.