Package org.pentaho.reporting.engine.classic.core.designtime

Examples of org.pentaho.reporting.engine.classic.core.designtime.DataSourcePlugin.canHandle()


      return;
    }

    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory) == false)
    {
      return;
    }

    final DefaultDataFactoryChangeRecorder recorder = new DefaultDataFactoryChangeRecorder();
View Full Code Here


      return;
    }

    final DataSourcePlugin dataSourcePlugin = metadata.createEditor();
    final DataFactory storedFactory = dataFactory.derive();
    if (dataSourcePlugin.canHandle(dataFactory))
    {
      final ReportDocumentContext activeContext = getActiveContext();
      final AbstractReportDefinition report = activeContext.getReportDefinition();
      final boolean editingActiveQuery = contains(report.getQuery(), dataFactory.getQueryNames());
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(LegacyBandedMDXDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new LegacyBandedMDXDataFactory()));
  }

  public void testEditorRegistered2()
  {
    DataSourcePlugin editor =
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(DenormalizedMDXDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new DenormalizedMDXDataFactory()));
  }

  public void testEditorRegistered3()
  {
    DataSourcePlugin editor =
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(BandedMDXDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new BandedMDXDataFactory()));
  }

}
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(ScriptableDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new ScriptableDataFactory()));
  }

}
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(SQLReportDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new SQLReportDataFactory(new JndiConnectionProvider())));
  }

  public void testEditorRegistered2()
  {
    DataSourcePlugin editor =
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(SimpleSQLReportDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new SimpleSQLReportDataFactory(new JndiConnectionProvider())));
  }

}
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(PmdDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new PmdDataFactory()));
  }

}
View Full Code Here

  {
    DataSourcePlugin editor =
        DataFactoryRegistry.getInstance().getMetaData(SequenceDataFactory.class.getName()).createEditor();
    assertNotNull(editor);

    assertTrue(editor.canHandle(new SequenceDataFactory()));
  }

}
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.