Examples of registerDefaults()


Examples of org.jfree.layouting.layouter.style.resolver.ResolverFactory.registerDefaults()

  public static void main(final String[] args)
  {
    LibLayoutBoot.getInstance().start();
    final ResolverFactory f = ResolverFactory.getInstance();
    f.registerDefaults();
  }
}
View Full Code Here

Examples of org.jfree.resourceloader.ResourceManager.registerDefaults()

    private OfficeParserUtil()
    {
        props = new DefaultConfiguration();

        final ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();
        try
        {
            final Resource res = resourceManager.createDirectly("res://com/sun/star/report/pentaho/parser/selectors.properties", Properties.class);
            final Properties resProps = (Properties) res.getResource();
            props.putAll(resProps);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  }

  public void testAllReports() throws ResourceException
  {
    final ResourceManager resManager = new ResourceManager();
    resManager.registerDefaults();

    for (int i = 0; i < REPORTS.length; i++)
    {
      final String report = REPORTS[i];
      final URL url = ParseLegacyReportsTest.class.getResource(report);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public void testRunner() throws ResourceException, ReportProcessingException
  {
    final URL url = getClass().getResource("prd-2933.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final EventMonitorFunction eventMonitorFunction = new EventMonitorFunction("Name");
    eventMonitorFunction.setDeepTraversing(true);
    report.addExpression(eventMonitorFunction);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public ImageMap parseFromString (final String imageMapXml)
      throws ResourceKeyCreationException, ResourceCreationException, ResourceLoadingException
  {
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();

    final ImageMapXmlResourceFactory resourceFactory = new ImageMapXmlResourceFactory();
    final InputSource source = new InputSource();
    source.setCharacterStream(new StringReader(imageMapXml));
    return (ImageMap) resourceFactory.parseDirectly
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public void testRunner() throws ResourceException, ReportProcessingException
  {
    final URL url = getClass().getResource("prd-2884.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final EventMonitorFunction eventMonitorFunction = new EventMonitorFunction("Name");
    eventMonitorFunction.setDeepTraversing(true);
    report.addExpression(eventMonitorFunction);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public void testRunner2() throws ResourceException, ReportProcessingException
  {
    final URL url = getClass().getResource("prd-2884-2.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    final PrintReportProcessor prc = new PrintReportProcessor(report);
    if (prc.isError())
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

      throw new NullPointerException("Error: Could not find the expression meta-data description file");
    }
    try
    {
      final ResourceManager resourceManager = new ResourceManager();
      resourceManager.registerDefaults();
      final Resource resource = resourceManager.createDirectly(expressionMetaSource,
          DrillDownProfileCollection.class);
      final DrillDownProfileCollection typeCollection = (DrillDownProfileCollection) resource.getResource();
      final DrillDownProfile[] types = typeCollection.getData();
      for (int i = 0; i < types.length; i++)
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public void testRunner() throws ResourceException, ReportProcessingException
  {
    final URL url = getClass().getResource("prd-2887.prpt");
    assertNotNull(url);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();
    final EventMonitorFunction eventMonitorFunction = new EventMonitorFunction("Name");
    eventMonitorFunction.setDeepTraversing(true);
    report.addExpression(eventMonitorFunction);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  private static void runTest(final String filename)
      throws ResourceException, ContentProcessingException, ReportProcessingException
  {
    logger.debug("Processing " + filename);
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    resourceManager.registerFactory(new TableTestSpecXmlResourceFactory());


    final URL url = TestRuntime.class.getResource(filename);
    final Resource resource = resourceManager.createDirectly(url, ValidationSequence.class);
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.